app-builder-lib 24.0.0-alpha.11 → 24.0.0-alpha.13
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 +3 -0
- package/out/configuration.js.map +1 -1
- package/out/index.d.ts +1 -0
- package/out/index.js.map +1 -1
- package/out/macPackager.d.ts +2 -2
- package/out/macPackager.js +13 -16
- 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/packager.js +10 -1
- package/out/packager.js.map +1 -1
- package/out/platformPackager.d.ts +1 -1
- 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/version.d.ts +1 -1
- package/out/version.js +1 -1
- package/out/version.js.map +1 -1
- package/out/winPackager.d.ts +2 -2
- package/out/winPackager.js +15 -11
- package/out/winPackager.js.map +1 -1
- package/package.json +5 -5
- package/scheme.json +171 -0
- package/templates/msiWrapped/template.xml +56 -0
package/scheme.json
CHANGED
|
@@ -3699,6 +3699,167 @@
|
|
|
3699
3699
|
},
|
|
3700
3700
|
"type": "object"
|
|
3701
3701
|
},
|
|
3702
|
+
"MsiWrappedOptions": {
|
|
3703
|
+
"additionalProperties": false,
|
|
3704
|
+
"properties": {
|
|
3705
|
+
"additionalWixArgs": {
|
|
3706
|
+
"anyOf": [
|
|
3707
|
+
{
|
|
3708
|
+
"items": {
|
|
3709
|
+
"type": "string"
|
|
3710
|
+
},
|
|
3711
|
+
"type": "array"
|
|
3712
|
+
},
|
|
3713
|
+
{
|
|
3714
|
+
"type": "null"
|
|
3715
|
+
}
|
|
3716
|
+
],
|
|
3717
|
+
"description": "Any additional arguments to be passed to the WiX installer compiler, such as `[\"-ext\", \"WixUtilExtension\"]`"
|
|
3718
|
+
},
|
|
3719
|
+
"artifactName": {
|
|
3720
|
+
"description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
|
|
3721
|
+
"type": [
|
|
3722
|
+
"null",
|
|
3723
|
+
"string"
|
|
3724
|
+
]
|
|
3725
|
+
},
|
|
3726
|
+
"createDesktopShortcut": {
|
|
3727
|
+
"default": true,
|
|
3728
|
+
"description": "Whether to create desktop shortcut. Set to `always` if to recreate also on reinstall (even if removed by user).",
|
|
3729
|
+
"enum": [
|
|
3730
|
+
"always",
|
|
3731
|
+
false,
|
|
3732
|
+
true
|
|
3733
|
+
]
|
|
3734
|
+
},
|
|
3735
|
+
"createStartMenuShortcut": {
|
|
3736
|
+
"default": true,
|
|
3737
|
+
"description": "Whether to create start menu shortcut.",
|
|
3738
|
+
"type": "boolean"
|
|
3739
|
+
},
|
|
3740
|
+
"impersonate": {
|
|
3741
|
+
"default": false,
|
|
3742
|
+
"description": "Determines if the wrapped installer should be executed with impersonation",
|
|
3743
|
+
"type": "boolean"
|
|
3744
|
+
},
|
|
3745
|
+
"menuCategory": {
|
|
3746
|
+
"default": false,
|
|
3747
|
+
"description": "Whether to create submenu for start menu shortcut and program files directory. If `true`, company name will be used. Or string value.",
|
|
3748
|
+
"type": [
|
|
3749
|
+
"string",
|
|
3750
|
+
"boolean"
|
|
3751
|
+
]
|
|
3752
|
+
},
|
|
3753
|
+
"oneClick": {
|
|
3754
|
+
"type": "boolean"
|
|
3755
|
+
},
|
|
3756
|
+
"perMachine": {
|
|
3757
|
+
"default": false,
|
|
3758
|
+
"description": "Whether to install per all users (per-machine).",
|
|
3759
|
+
"type": "boolean"
|
|
3760
|
+
},
|
|
3761
|
+
"publish": {
|
|
3762
|
+
"anyOf": [
|
|
3763
|
+
{
|
|
3764
|
+
"$ref": "#/definitions/GithubOptions"
|
|
3765
|
+
},
|
|
3766
|
+
{
|
|
3767
|
+
"$ref": "#/definitions/S3Options"
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
"$ref": "#/definitions/SpacesOptions"
|
|
3771
|
+
},
|
|
3772
|
+
{
|
|
3773
|
+
"$ref": "#/definitions/GenericServerOptions"
|
|
3774
|
+
},
|
|
3775
|
+
{
|
|
3776
|
+
"$ref": "#/definitions/CustomPublishOptions"
|
|
3777
|
+
},
|
|
3778
|
+
{
|
|
3779
|
+
"$ref": "#/definitions/KeygenOptions"
|
|
3780
|
+
},
|
|
3781
|
+
{
|
|
3782
|
+
"$ref": "#/definitions/SnapStoreOptions"
|
|
3783
|
+
},
|
|
3784
|
+
{
|
|
3785
|
+
"$ref": "#/definitions/BitbucketOptions"
|
|
3786
|
+
},
|
|
3787
|
+
{
|
|
3788
|
+
"items": {
|
|
3789
|
+
"anyOf": [
|
|
3790
|
+
{
|
|
3791
|
+
"$ref": "#/definitions/GithubOptions"
|
|
3792
|
+
},
|
|
3793
|
+
{
|
|
3794
|
+
"$ref": "#/definitions/S3Options"
|
|
3795
|
+
},
|
|
3796
|
+
{
|
|
3797
|
+
"$ref": "#/definitions/SpacesOptions"
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"$ref": "#/definitions/GenericServerOptions"
|
|
3801
|
+
},
|
|
3802
|
+
{
|
|
3803
|
+
"$ref": "#/definitions/CustomPublishOptions"
|
|
3804
|
+
},
|
|
3805
|
+
{
|
|
3806
|
+
"$ref": "#/definitions/KeygenOptions"
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
"$ref": "#/definitions/SnapStoreOptions"
|
|
3810
|
+
},
|
|
3811
|
+
{
|
|
3812
|
+
"$ref": "#/definitions/BitbucketOptions"
|
|
3813
|
+
},
|
|
3814
|
+
{
|
|
3815
|
+
"type": "string"
|
|
3816
|
+
}
|
|
3817
|
+
]
|
|
3818
|
+
},
|
|
3819
|
+
"type": "array"
|
|
3820
|
+
},
|
|
3821
|
+
{
|
|
3822
|
+
"type": [
|
|
3823
|
+
"null",
|
|
3824
|
+
"string"
|
|
3825
|
+
]
|
|
3826
|
+
}
|
|
3827
|
+
]
|
|
3828
|
+
},
|
|
3829
|
+
"runAfterFinish": {
|
|
3830
|
+
"default": true,
|
|
3831
|
+
"description": "Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.",
|
|
3832
|
+
"type": "boolean"
|
|
3833
|
+
},
|
|
3834
|
+
"shortcutName": {
|
|
3835
|
+
"description": "The name that will be used for all shortcuts. Defaults to the application name.",
|
|
3836
|
+
"type": [
|
|
3837
|
+
"null",
|
|
3838
|
+
"string"
|
|
3839
|
+
]
|
|
3840
|
+
},
|
|
3841
|
+
"upgradeCode": {
|
|
3842
|
+
"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.",
|
|
3843
|
+
"type": [
|
|
3844
|
+
"null",
|
|
3845
|
+
"string"
|
|
3846
|
+
]
|
|
3847
|
+
},
|
|
3848
|
+
"warningsAsErrors": {
|
|
3849
|
+
"default": true,
|
|
3850
|
+
"description": "If `warningsAsErrors` is `true` (default): treat warnings as errors. If `warningsAsErrors` is `false`: allow warnings.",
|
|
3851
|
+
"type": "boolean"
|
|
3852
|
+
},
|
|
3853
|
+
"wrappedInstallerArgs": {
|
|
3854
|
+
"description": "Extra arguments to provide to the wrapped installer (ie: /S for silent install)",
|
|
3855
|
+
"type": [
|
|
3856
|
+
"null",
|
|
3857
|
+
"string"
|
|
3858
|
+
]
|
|
3859
|
+
}
|
|
3860
|
+
},
|
|
3861
|
+
"type": "object"
|
|
3862
|
+
},
|
|
3702
3863
|
"NotarizeOptions": {
|
|
3703
3864
|
"additionalProperties": false,
|
|
3704
3865
|
"properties": {
|
|
@@ -6791,6 +6952,16 @@
|
|
|
6791
6952
|
],
|
|
6792
6953
|
"description": "MSI project created on disk - not packed into .msi package yet."
|
|
6793
6954
|
},
|
|
6955
|
+
"msiWrapped": {
|
|
6956
|
+
"anyOf": [
|
|
6957
|
+
{
|
|
6958
|
+
"$ref": "#/definitions/MsiWrappedOptions"
|
|
6959
|
+
},
|
|
6960
|
+
{
|
|
6961
|
+
"type": "null"
|
|
6962
|
+
}
|
|
6963
|
+
]
|
|
6964
|
+
},
|
|
6794
6965
|
"nodeGypRebuild": {
|
|
6795
6966
|
"default": false,
|
|
6796
6967
|
"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>
|