app-builder-lib 24.0.0-alpha.9 → 24.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/codeSign/windowsCodeSign.d.ts +1 -1
- package/out/codeSign/windowsCodeSign.js +1 -0
- package/out/codeSign/windowsCodeSign.js.map +1 -1
- package/out/configuration.d.ts +7 -0
- package/out/configuration.js.map +1 -1
- package/out/electron/ElectronFramework.js +7 -2
- package/out/electron/ElectronFramework.js.map +1 -1
- package/out/index.d.ts +1 -0
- package/out/index.js.map +1 -1
- package/out/macPackager.d.ts +4 -4
- package/out/macPackager.js +67 -57
- package/out/macPackager.js.map +1 -1
- package/out/options/MsiWrappedOptions.d.ts +26 -0
- package/out/options/MsiWrappedOptions.js +3 -0
- package/out/options/MsiWrappedOptions.js.map +1 -0
- package/out/options/PlatformSpecificBuildOptions.d.ts +6 -0
- package/out/options/PlatformSpecificBuildOptions.js.map +1 -1
- package/out/options/macOptions.d.ts +1 -1
- package/out/options/macOptions.js.map +1 -1
- package/out/packager.js +10 -1
- package/out/packager.js.map +1 -1
- package/out/platformPackager.d.ts +1 -1
- package/out/platformPackager.js +10 -3
- package/out/platformPackager.js.map +1 -1
- package/out/targets/MsiTarget.d.ts +11 -6
- package/out/targets/MsiTarget.js +28 -22
- package/out/targets/MsiTarget.js.map +1 -1
- package/out/targets/MsiWrappedTarget.d.ts +19 -0
- package/out/targets/MsiWrappedTarget.js +73 -0
- package/out/targets/MsiWrappedTarget.js.map +1 -0
- package/out/targets/snap.js +4 -0
- package/out/targets/snap.js.map +1 -1
- package/out/version.d.ts +1 -1
- package/out/version.js +1 -1
- package/out/version.js.map +1 -1
- package/out/winPackager.d.ts +3 -3
- package/out/winPackager.js +18 -13
- package/out/winPackager.js.map +1 -1
- package/package.json +7 -6
- package/scheme.json +192 -32
- package/templates/msiWrapped/template.xml +56 -0
- package/templates/nsis/uninstaller.nsh +1 -1
package/scheme.json
CHANGED
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
},
|
|
335
335
|
"BitbucketOptions": {
|
|
336
336
|
"additionalProperties": false,
|
|
337
|
-
"description": "Bitbucket options.\nhttps://bitbucket.org/\nDefine `BITBUCKET_TOKEN` environment variable.\n\nFor converting an app password to a usable token, you can utilize this\n```typescript\nconvertAppPassword(owner: string,
|
|
337
|
+
"description": "Bitbucket options.\nhttps://bitbucket.org/\nDefine `BITBUCKET_TOKEN` environment variable.\n\nFor converting an app password to a usable token, you can utilize this\n```typescript\nconvertAppPassword(owner: string, appPassword: string) {\nconst base64encodedData = Buffer.from(`${owner}:${appPassword.trim()}`).toString(\"base64\")\nreturn `Basic ${base64encodedData}`\n}\n```",
|
|
338
338
|
"properties": {
|
|
339
339
|
"channel": {
|
|
340
340
|
"default": "latest",
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
]
|
|
391
391
|
},
|
|
392
392
|
"token": {
|
|
393
|
-
"description": "The
|
|
393
|
+
"description": "The app password (account>settings>app-passwords) to support auto-update from private bitbucket repositories.",
|
|
394
394
|
"type": [
|
|
395
395
|
"null",
|
|
396
396
|
"string"
|
|
@@ -2776,22 +2776,9 @@
|
|
|
2776
2776
|
]
|
|
2777
2777
|
},
|
|
2778
2778
|
"strictVerify": {
|
|
2779
|
-
"anyOf": [
|
|
2780
|
-
{
|
|
2781
|
-
"items": {
|
|
2782
|
-
"type": "string"
|
|
2783
|
-
},
|
|
2784
|
-
"type": "array"
|
|
2785
|
-
},
|
|
2786
|
-
{
|
|
2787
|
-
"type": [
|
|
2788
|
-
"string",
|
|
2789
|
-
"boolean"
|
|
2790
|
-
]
|
|
2791
|
-
}
|
|
2792
|
-
],
|
|
2793
2779
|
"default": true,
|
|
2794
|
-
"description": "Whether to let @electron/osx-sign verify the contents or not."
|
|
2780
|
+
"description": "Whether to let @electron/osx-sign verify the contents or not.",
|
|
2781
|
+
"type": "boolean"
|
|
2795
2782
|
},
|
|
2796
2783
|
"target": {
|
|
2797
2784
|
"anyOf": [
|
|
@@ -3414,22 +3401,9 @@
|
|
|
3414
3401
|
]
|
|
3415
3402
|
},
|
|
3416
3403
|
"strictVerify": {
|
|
3417
|
-
"anyOf": [
|
|
3418
|
-
{
|
|
3419
|
-
"items": {
|
|
3420
|
-
"type": "string"
|
|
3421
|
-
},
|
|
3422
|
-
"type": "array"
|
|
3423
|
-
},
|
|
3424
|
-
{
|
|
3425
|
-
"type": [
|
|
3426
|
-
"string",
|
|
3427
|
-
"boolean"
|
|
3428
|
-
]
|
|
3429
|
-
}
|
|
3430
|
-
],
|
|
3431
3404
|
"default": true,
|
|
3432
|
-
"description": "Whether to let @electron/osx-sign verify the contents or not."
|
|
3405
|
+
"description": "Whether to let @electron/osx-sign verify the contents or not.",
|
|
3406
|
+
"type": "boolean"
|
|
3433
3407
|
},
|
|
3434
3408
|
"target": {
|
|
3435
3409
|
"anyOf": [
|
|
@@ -3699,6 +3673,167 @@
|
|
|
3699
3673
|
},
|
|
3700
3674
|
"type": "object"
|
|
3701
3675
|
},
|
|
3676
|
+
"MsiWrappedOptions": {
|
|
3677
|
+
"additionalProperties": false,
|
|
3678
|
+
"properties": {
|
|
3679
|
+
"additionalWixArgs": {
|
|
3680
|
+
"anyOf": [
|
|
3681
|
+
{
|
|
3682
|
+
"items": {
|
|
3683
|
+
"type": "string"
|
|
3684
|
+
},
|
|
3685
|
+
"type": "array"
|
|
3686
|
+
},
|
|
3687
|
+
{
|
|
3688
|
+
"type": "null"
|
|
3689
|
+
}
|
|
3690
|
+
],
|
|
3691
|
+
"description": "Any additional arguments to be passed to the WiX installer compiler, such as `[\"-ext\", \"WixUtilExtension\"]`"
|
|
3692
|
+
},
|
|
3693
|
+
"artifactName": {
|
|
3694
|
+
"description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
|
|
3695
|
+
"type": [
|
|
3696
|
+
"null",
|
|
3697
|
+
"string"
|
|
3698
|
+
]
|
|
3699
|
+
},
|
|
3700
|
+
"createDesktopShortcut": {
|
|
3701
|
+
"default": true,
|
|
3702
|
+
"description": "Whether to create desktop shortcut. Set to `always` if to recreate also on reinstall (even if removed by user).",
|
|
3703
|
+
"enum": [
|
|
3704
|
+
"always",
|
|
3705
|
+
false,
|
|
3706
|
+
true
|
|
3707
|
+
]
|
|
3708
|
+
},
|
|
3709
|
+
"createStartMenuShortcut": {
|
|
3710
|
+
"default": true,
|
|
3711
|
+
"description": "Whether to create start menu shortcut.",
|
|
3712
|
+
"type": "boolean"
|
|
3713
|
+
},
|
|
3714
|
+
"impersonate": {
|
|
3715
|
+
"default": false,
|
|
3716
|
+
"description": "Determines if the wrapped installer should be executed with impersonation",
|
|
3717
|
+
"type": "boolean"
|
|
3718
|
+
},
|
|
3719
|
+
"menuCategory": {
|
|
3720
|
+
"default": false,
|
|
3721
|
+
"description": "Whether to create submenu for start menu shortcut and program files directory. If `true`, company name will be used. Or string value.",
|
|
3722
|
+
"type": [
|
|
3723
|
+
"string",
|
|
3724
|
+
"boolean"
|
|
3725
|
+
]
|
|
3726
|
+
},
|
|
3727
|
+
"oneClick": {
|
|
3728
|
+
"type": "boolean"
|
|
3729
|
+
},
|
|
3730
|
+
"perMachine": {
|
|
3731
|
+
"default": false,
|
|
3732
|
+
"description": "Whether to install per all users (per-machine).",
|
|
3733
|
+
"type": "boolean"
|
|
3734
|
+
},
|
|
3735
|
+
"publish": {
|
|
3736
|
+
"anyOf": [
|
|
3737
|
+
{
|
|
3738
|
+
"$ref": "#/definitions/GithubOptions"
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
"$ref": "#/definitions/S3Options"
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
"$ref": "#/definitions/SpacesOptions"
|
|
3745
|
+
},
|
|
3746
|
+
{
|
|
3747
|
+
"$ref": "#/definitions/GenericServerOptions"
|
|
3748
|
+
},
|
|
3749
|
+
{
|
|
3750
|
+
"$ref": "#/definitions/CustomPublishOptions"
|
|
3751
|
+
},
|
|
3752
|
+
{
|
|
3753
|
+
"$ref": "#/definitions/KeygenOptions"
|
|
3754
|
+
},
|
|
3755
|
+
{
|
|
3756
|
+
"$ref": "#/definitions/SnapStoreOptions"
|
|
3757
|
+
},
|
|
3758
|
+
{
|
|
3759
|
+
"$ref": "#/definitions/BitbucketOptions"
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
"items": {
|
|
3763
|
+
"anyOf": [
|
|
3764
|
+
{
|
|
3765
|
+
"$ref": "#/definitions/GithubOptions"
|
|
3766
|
+
},
|
|
3767
|
+
{
|
|
3768
|
+
"$ref": "#/definitions/S3Options"
|
|
3769
|
+
},
|
|
3770
|
+
{
|
|
3771
|
+
"$ref": "#/definitions/SpacesOptions"
|
|
3772
|
+
},
|
|
3773
|
+
{
|
|
3774
|
+
"$ref": "#/definitions/GenericServerOptions"
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"$ref": "#/definitions/CustomPublishOptions"
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
"$ref": "#/definitions/KeygenOptions"
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
"$ref": "#/definitions/SnapStoreOptions"
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
"$ref": "#/definitions/BitbucketOptions"
|
|
3787
|
+
},
|
|
3788
|
+
{
|
|
3789
|
+
"type": "string"
|
|
3790
|
+
}
|
|
3791
|
+
]
|
|
3792
|
+
},
|
|
3793
|
+
"type": "array"
|
|
3794
|
+
},
|
|
3795
|
+
{
|
|
3796
|
+
"type": [
|
|
3797
|
+
"null",
|
|
3798
|
+
"string"
|
|
3799
|
+
]
|
|
3800
|
+
}
|
|
3801
|
+
]
|
|
3802
|
+
},
|
|
3803
|
+
"runAfterFinish": {
|
|
3804
|
+
"default": true,
|
|
3805
|
+
"description": "Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.",
|
|
3806
|
+
"type": "boolean"
|
|
3807
|
+
},
|
|
3808
|
+
"shortcutName": {
|
|
3809
|
+
"description": "The name that will be used for all shortcuts. Defaults to the application name.",
|
|
3810
|
+
"type": [
|
|
3811
|
+
"null",
|
|
3812
|
+
"string"
|
|
3813
|
+
]
|
|
3814
|
+
},
|
|
3815
|
+
"upgradeCode": {
|
|
3816
|
+
"description": "The [upgrade code](https://msdn.microsoft.com/en-us/library/windows/desktop/aa372375(v=vs.85).aspx). Optional, by default generated using app id.",
|
|
3817
|
+
"type": [
|
|
3818
|
+
"null",
|
|
3819
|
+
"string"
|
|
3820
|
+
]
|
|
3821
|
+
},
|
|
3822
|
+
"warningsAsErrors": {
|
|
3823
|
+
"default": true,
|
|
3824
|
+
"description": "If `warningsAsErrors` is `true` (default): treat warnings as errors. If `warningsAsErrors` is `false`: allow warnings.",
|
|
3825
|
+
"type": "boolean"
|
|
3826
|
+
},
|
|
3827
|
+
"wrappedInstallerArgs": {
|
|
3828
|
+
"description": "Extra arguments to provide to the wrapped installer (ie: /S for silent install)",
|
|
3829
|
+
"type": [
|
|
3830
|
+
"null",
|
|
3831
|
+
"string"
|
|
3832
|
+
]
|
|
3833
|
+
}
|
|
3834
|
+
},
|
|
3835
|
+
"type": "object"
|
|
3836
|
+
},
|
|
3702
3837
|
"NotarizeOptions": {
|
|
3703
3838
|
"additionalProperties": false,
|
|
3704
3839
|
"properties": {
|
|
@@ -4874,6 +5009,17 @@
|
|
|
4874
5009
|
"null",
|
|
4875
5010
|
"string"
|
|
4876
5011
|
]
|
|
5012
|
+
},
|
|
5013
|
+
"vendor": {
|
|
5014
|
+
"anyOf": [
|
|
5015
|
+
{
|
|
5016
|
+
"typeof": "function"
|
|
5017
|
+
},
|
|
5018
|
+
{
|
|
5019
|
+
"type": "null"
|
|
5020
|
+
}
|
|
5021
|
+
],
|
|
5022
|
+
"description": "Vendor specific information."
|
|
4877
5023
|
}
|
|
4878
5024
|
},
|
|
4879
5025
|
"type": "object"
|
|
@@ -6494,6 +6640,10 @@
|
|
|
6494
6640
|
],
|
|
6495
6641
|
"description": "macOS DMG options."
|
|
6496
6642
|
},
|
|
6643
|
+
"downloadAlternateFFmpeg": {
|
|
6644
|
+
"description": "Whether to download the alternate FFmpeg library from Electron's release assets and replace the default FFmpeg library prior to signing",
|
|
6645
|
+
"type": "boolean"
|
|
6646
|
+
},
|
|
6497
6647
|
"electronBranding": {
|
|
6498
6648
|
"$ref": "#/definitions/ElectronBrandingOptions",
|
|
6499
6649
|
"description": "The branding used by Electron's distributables. This is needed if a fork has modified Electron's BRANDING.json file."
|
|
@@ -6780,6 +6930,16 @@
|
|
|
6780
6930
|
],
|
|
6781
6931
|
"description": "MSI project created on disk - not packed into .msi package yet."
|
|
6782
6932
|
},
|
|
6933
|
+
"msiWrapped": {
|
|
6934
|
+
"anyOf": [
|
|
6935
|
+
{
|
|
6936
|
+
"$ref": "#/definitions/MsiWrappedOptions"
|
|
6937
|
+
},
|
|
6938
|
+
{
|
|
6939
|
+
"type": "null"
|
|
6940
|
+
}
|
|
6941
|
+
]
|
|
6942
|
+
},
|
|
6783
6943
|
"nodeGypRebuild": {
|
|
6784
6944
|
"default": false,
|
|
6785
6945
|
"description": "Whether to execute `node-gyp rebuild` before starting to package the app.\n\nDon't [use](https://github.com/electron-userland/electron-builder/issues/683#issuecomment-241214075) [npm](http://electron.atom.io/docs/tutorial/using-native-node-modules/#using-npm) (neither `.npmrc`) for configuring electron headers. Use `electron-builder node-gyp-rebuild` instead.",
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
|
3
|
+
<!-- https://blogs.msdn.microsoft.com/gremlininthemachine/2006/12/05/msi-wix-and-unicode/ -->
|
|
4
|
+
<!-- https://mistake.computer/2020/04/05/msi-exe-wrapper.html -->
|
|
5
|
+
<Product Id="${productId}" Name="${productName}" UpgradeCode="${upgradeCode}" Version="${version}" Language="1033" Codepage="65001" Manufacturer="${manufacturer}">
|
|
6
|
+
<Package Compressed="yes" InstallerVersion="500"/>
|
|
7
|
+
|
|
8
|
+
<Condition Message="Windows 7 and above is required"><![CDATA[Installed OR VersionNT >= 601]]></Condition>
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
AllowSameVersionUpgrades:
|
|
12
|
+
When set to no (the default), installing a product with the same version and upgrade code (but different product code) is allowed and treated by MSI as two products.
|
|
13
|
+
When set to yes, WiX sets the msidbUpgradeAttributesVersionMaxInclusive attribute, which tells MSI to treat a product with the same version as a major upgrade.
|
|
14
|
+
|
|
15
|
+
So, AllowSameVersionUpgrades="yes" allows to build and test MSI with the same version, and previously installed app will be removed.
|
|
16
|
+
-->
|
|
17
|
+
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage='A newer version of "[ProductName]" is already installed.'/>
|
|
18
|
+
<MediaTemplate CompressionLevel="${compressionLevel}" EmbedCab="yes"/>
|
|
19
|
+
|
|
20
|
+
<Property Id="DISABLEADVTSHORTCUTS" Value="1"/>
|
|
21
|
+
|
|
22
|
+
{{ if (iconPath) { }}
|
|
23
|
+
<Icon Id="${iconId}" SourceFile="${iconPath}"/>
|
|
24
|
+
<Property Id="ARPPRODUCTICON" Value="${iconId}"/>
|
|
25
|
+
{{ } -}}
|
|
26
|
+
|
|
27
|
+
<Property Id="MSIINSTALLPERUSER" Secure="yes" Value="1"/>
|
|
28
|
+
|
|
29
|
+
<!-- Exe path will be embedded directly -->
|
|
30
|
+
<Binary Id="WrappedExe" SourceFile="${exeSourcePath}" />
|
|
31
|
+
|
|
32
|
+
<!-- Custom Action to Execute embedded exe -->
|
|
33
|
+
<CustomAction Id="RunInstaller" Return="check" Execute="deferred"
|
|
34
|
+
HideTarget="no" Impersonate="${impersonate}" BinaryKey="WrappedExe" ExeCommand="${wrappedInstallerArgs}" />
|
|
35
|
+
|
|
36
|
+
<!-- This is just a dummy component to allow wrapping the exe installer -->
|
|
37
|
+
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
38
|
+
<Directory Id="TempFolder">
|
|
39
|
+
<Component Id="EmptyComponent" Guid="7145262D-7149-4F1A-9A69-F377E38F04DA" KeyPath="yes">
|
|
40
|
+
<CreateFolder />
|
|
41
|
+
</Component>
|
|
42
|
+
</Directory>
|
|
43
|
+
</Directory>
|
|
44
|
+
|
|
45
|
+
<!-- Setting the feature to level 0 marks it hidden, so it can't be installed.
|
|
46
|
+
That prevents getting this MSI registered as an installed product,
|
|
47
|
+
because it has no features of its own to install. -->
|
|
48
|
+
<Feature Id="EmptyFeature" Level="0">
|
|
49
|
+
<ComponentRef Id="EmptyComponent" />
|
|
50
|
+
</Feature>
|
|
51
|
+
|
|
52
|
+
<InstallExecuteSequence>
|
|
53
|
+
<Custom Action="RunInstaller" After="ProcessComponents" />
|
|
54
|
+
</InstallExecuteSequence>
|
|
55
|
+
</Product>
|
|
56
|
+
</Wix>
|