app-builder-lib 27.0.0-alpha.13 → 27.0.0-alpha.14
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/dist/configuration.d.ts +47 -1
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js.map +1 -1
- package/dist/options/PlatformSpecificBuildOptions.d.ts +4 -1
- package/dist/options/PlatformSpecificBuildOptions.d.ts.map +1 -1
- package/dist/options/PlatformSpecificBuildOptions.js.map +1 -1
- package/dist/packager.d.ts +6 -0
- package/dist/packager.d.ts.map +1 -1
- package/dist/packager.js +14 -3
- package/dist/packager.js.map +1 -1
- package/dist/publish/updateInfoBuilder.d.ts.map +1 -1
- package/dist/publish/updateInfoBuilder.js +7 -5
- package/dist/publish/updateInfoBuilder.js.map +1 -1
- package/dist/targets/blockmap/blockmap.d.ts +30 -0
- package/dist/targets/blockmap/blockmap.d.ts.map +1 -1
- package/dist/targets/blockmap/blockmap.js +99 -31
- package/dist/targets/blockmap/blockmap.js.map +1 -1
- package/dist/targets/blockmap/blockmapV3.d.ts +36 -0
- package/dist/targets/blockmap/blockmapV3.d.ts.map +1 -0
- package/dist/targets/blockmap/blockmapV3.js +41 -0
- package/dist/targets/blockmap/blockmapV3.js.map +1 -0
- package/dist/targets/blockmap/verbatimRange.d.ts +6 -0
- package/dist/targets/blockmap/verbatimRange.d.ts.map +1 -1
- package/dist/targets/blockmap/verbatimRange.js +11 -0
- package/dist/targets/blockmap/verbatimRange.js.map +1 -1
- package/dist/targets/differentialUpdateInfoBuilder.d.ts +92 -4
- package/dist/targets/differentialUpdateInfoBuilder.d.ts.map +1 -1
- package/dist/targets/differentialUpdateInfoBuilder.js +266 -10
- package/dist/targets/differentialUpdateInfoBuilder.js.map +1 -1
- package/dist/targets/linux/FpmTarget.d.ts.map +1 -1
- package/dist/targets/linux/FpmTarget.js +15 -1
- package/dist/targets/linux/FpmTarget.js.map +1 -1
- package/dist/targets/targetFactory.d.ts +1 -1
- package/dist/targets/targetFactory.d.ts.map +1 -1
- package/dist/targets/targetFactory.js +22 -0
- package/dist/targets/targetFactory.js.map +1 -1
- package/dist/targets/win/MsiTarget.d.ts +7 -0
- package/dist/targets/win/MsiTarget.d.ts.map +1 -1
- package/dist/targets/win/MsiTarget.js +140 -21
- package/dist/targets/win/MsiTarget.js.map +1 -1
- package/dist/targets/win/nsis/NsisTarget.d.ts.map +1 -1
- package/dist/targets/win/nsis/NsisTarget.js +14 -6
- package/dist/targets/win/nsis/NsisTarget.js.map +1 -1
- package/dist/toolsets/appimage.d.ts +3 -0
- package/dist/toolsets/appimage.d.ts.map +1 -1
- package/dist/toolsets/appimage.js +4 -1
- package/dist/toolsets/appimage.js.map +1 -1
- package/dist/toolsets/wix.d.ts +44 -0
- package/dist/toolsets/wix.d.ts.map +1 -0
- package/dist/toolsets/wix.js +91 -0
- package/dist/toolsets/wix.js.map +1 -0
- package/dist/util/electronUpdaterCompatibility.d.ts +43 -0
- package/dist/util/electronUpdaterCompatibility.d.ts.map +1 -0
- package/dist/util/electronUpdaterCompatibility.js +53 -0
- package/dist/util/electronUpdaterCompatibility.js.map +1 -0
- package/dist/util/packageMetadata.js +115 -51
- package/dist/util/packageMetadata.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +8 -8
- package/scheme.json +45 -6
- package/templates/msi/template.xml +5 -5
- package/templates/msiWrapped/template.xml +1 -1
- package/templates/nsis/assistedInstaller.nsh +32 -1
package/scheme.json
CHANGED
|
@@ -2888,7 +2888,8 @@
|
|
|
2888
2888
|
"description": "The electron locales to keep. By default, all Electron locales used as-is."
|
|
2889
2889
|
},
|
|
2890
2890
|
"electronUpdaterCompatibility": {
|
|
2891
|
-
"
|
|
2891
|
+
"default": ">=7",
|
|
2892
|
+
"description": "The [electron-updater compatibility](https://www.electron.build/docs/features/auto-update#compatibility) semver range: the\nelectron-updater versions the installed apps ship, which have to read the update files this build writes. It selects the\n`.blockmap` format (see `blockmap`), and the build fails when the app's electron-updater does not satisfy it.",
|
|
2892
2893
|
"type": [
|
|
2893
2894
|
"null",
|
|
2894
2895
|
"string"
|
|
@@ -3481,7 +3482,8 @@
|
|
|
3481
3482
|
"description": "The electron locales to keep. By default, all Electron locales used as-is."
|
|
3482
3483
|
},
|
|
3483
3484
|
"electronUpdaterCompatibility": {
|
|
3484
|
-
"
|
|
3485
|
+
"default": ">=7",
|
|
3486
|
+
"description": "The [electron-updater compatibility](https://www.electron.build/docs/features/auto-update#compatibility) semver range: the\nelectron-updater versions the installed apps ship, which have to read the update files this build writes. It selects the\n`.blockmap` format (see `blockmap`), and the build fails when the app's electron-updater does not satisfy it.",
|
|
3485
3487
|
"type": [
|
|
3486
3488
|
"null",
|
|
3487
3489
|
"string"
|
|
@@ -3911,7 +3913,8 @@
|
|
|
3911
3913
|
"description": "The electron locales to keep. By default, all Electron locales used as-is."
|
|
3912
3914
|
},
|
|
3913
3915
|
"electronUpdaterCompatibility": {
|
|
3914
|
-
"
|
|
3916
|
+
"default": ">=7",
|
|
3917
|
+
"description": "The [electron-updater compatibility](https://www.electron.build/docs/features/auto-update#compatibility) semver range: the\nelectron-updater versions the installed apps ship, which have to read the update files this build writes. It selects the\n`.blockmap` format (see `blockmap`), and the build fails when the app's electron-updater does not satisfy it.",
|
|
3915
3918
|
"type": [
|
|
3916
3919
|
"null",
|
|
3917
3920
|
"string"
|
|
@@ -8909,13 +8912,14 @@
|
|
|
8909
8912
|
"0.0.0",
|
|
8910
8913
|
"1.0.3",
|
|
8911
8914
|
"1.1.0",
|
|
8915
|
+
"1.2.0",
|
|
8912
8916
|
"latest"
|
|
8913
8917
|
],
|
|
8914
8918
|
"type": "string"
|
|
8915
8919
|
}
|
|
8916
8920
|
],
|
|
8917
8921
|
"default": "latest",
|
|
8918
|
-
"description": "Version of the AppImage toolset bundle used for building `.AppImage` files.\n\nThe bundle ships:\n- **`mksquashfs`** — creates the SquashFS filesystem embedded in the AppImage. It also packs legacy-base (core18/core20/core22) snaps built from the snap template app.\n- **`desktop-file-validate`** — validates the generated `.desktop` entry.\n- **AppImage runtime** — the self-executing stub that mounts the SquashFS at launch.\n\nAvailable versions:\n| Version | Runtime date | Notes |\n|---------|-------------|-------|\n| `\"0.0.0\"` | Legacy | FUSE2-based AppImage runtime (pre-v27) |\n| `\"1.0.3\"` | 20251108 | Introduces static AppImage runtime |\n| `\"1.1.0\"` | 20251108 | Adds `unsquashfs` support |\n\nAn explicit version pin always selects exactly that release.\n\nReleases: https://github.com/electron-userland/electron-builder-binaries/blob/master/packages/appimage/CHANGELOG.md"
|
|
8922
|
+
"description": "Version of the AppImage toolset bundle used for building `.AppImage` files.\n\nThe bundle ships:\n- **`mksquashfs`** — creates the SquashFS filesystem embedded in the AppImage. It also packs legacy-base (core18/core20/core22) snaps built from the snap template app.\n- **`desktop-file-validate`** — validates the generated `.desktop` entry.\n- **AppImage runtime** — the self-executing stub that mounts the SquashFS at launch.\n\nAvailable versions:\n| Version | Runtime date | Notes |\n|---------|-------------|-------|\n| `\"0.0.0\"` | Legacy | FUSE2-based AppImage runtime (pre-v27) |\n| `\"1.0.3\"` | 20251108 | Introduces static AppImage runtime |\n| `\"1.1.0\"` | 20251108 | Adds `unsquashfs` support |\n| `\"1.2.0\"` | 20251108 | squashfs-tools 4.7.5 with a statically linked zstd 1.5.7, so Linux and macOS hosts produce identical images |\n\nAn explicit version pin always selects exactly that release.\n\nReleases: https://github.com/electron-userland/electron-builder-binaries/blob/master/packages/appimage/CHANGELOG.md"
|
|
8919
8923
|
},
|
|
8920
8924
|
"executables": {
|
|
8921
8925
|
"anyOf": [
|
|
@@ -9067,6 +9071,23 @@
|
|
|
9067
9071
|
],
|
|
9068
9072
|
"default": "latest",
|
|
9069
9073
|
"description": "Version of the Wine bundle used to run Windows tools (NSIS, rcedit, signtool) on\nnon-Windows hosts (macOS and Linux).\n\nWine is only required when building Windows targets on a non-Windows machine. On Windows,\nthis setting has no effect.\n\nAvailable versions:\n| Version | Wine version | Platform support | Notes |\n|---------|-------------|-----------------|-------|\n| `\"0.0.0\"` | 4.0.1 | macOS | Legacy portable bundle (pre-v27) |\n| `\"1.0.1\"` | 11.0 | macOS | Supports arm64 macOS via Rosetta |\n| `\"system\"` | host install | macOS, Linux | Uses the host Wine at a fixed install location instead of a bundle |\n\n`\"system\"` is the replacement for the `USE_SYSTEM_WINE` environment variable removed in v27, and\nis what `\"latest\"` (the default) currently resolves to on every platform: the published `\"1.0.1\"`\nbundles ship no PE builtins, so a host Wine installation is required to build Windows targets on\nmacOS or Linux.\n\nThe host Wine (`\"system\"`) is started by absolute path, never looked up on `PATH`: it is the `wine` entry of\n{@link executables}, which lists its default install locations and is where a Wine installed elsewhere is set.\nSetting both a bundle that would be used (a `ToolsetCustom` object, or a version on macOS; on Linux a version selects no\nbundle) and `executables.wine` is a configuration error.\n\nTo use a custom Wine bundle, use a `ToolsetCustom` object.\n\nReleases: https://github.com/electron-userland/electron-builder-binaries/blob/master/packages/wine/CHANGELOG.md"
|
|
9074
|
+
},
|
|
9075
|
+
"wix": {
|
|
9076
|
+
"anyOf": [
|
|
9077
|
+
{
|
|
9078
|
+
"$ref": "#/definitions/ToolsetCustom"
|
|
9079
|
+
},
|
|
9080
|
+
{
|
|
9081
|
+
"enum": [
|
|
9082
|
+
"0.0.0",
|
|
9083
|
+
"2.0.0",
|
|
9084
|
+
"latest"
|
|
9085
|
+
],
|
|
9086
|
+
"type": "string"
|
|
9087
|
+
}
|
|
9088
|
+
],
|
|
9089
|
+
"default": "latest",
|
|
9090
|
+
"description": "Version of the WiX Toolset bundle used to build `msi` and `msiWrapped` installers.\n\nThe bundle ships **`candle.exe`** and **`light.exe`** (compile and link the generated `.wxs` project) and the WiX\nextensions (`WixUIExtension` for assisted installers). On macOS and Linux they run under Wine with wine-mono.\n\nAvailable versions:\n| Version | WiX version | Notes |\n|---------|-------------|-------|\n| `\"0.0.0\"` | 4.0.0.5512 (preview) | Legacy bundle (pre-v27). An `arm64` app is packaged in an `x64` MSI, because this toolset has no `arm64` |\n| `\"2.0.0\"` | 3.14.1 | Builds a native `arm64` MSI for `arm64` |\n\nThe `.wxs` project uses the WiX 3 schema with `\"2.0.0\"`: an `msiProjectCreated` hook that inserts elements of a WiX 4\nextension namespace must use the WiX 3 one (for example `http://schemas.microsoft.com/wix/UtilExtension`), or pin `\"0.0.0\"`.\n\nA custom bundle (a {@link ToolsetCustom} object) must have the WiX v3 layout: `candle.exe`, `light.exe` and the\nextensions at its root.\n\nReleases: https://github.com/electron-userland/electron-builder-binaries/blob/master/packages/wix/CHANGELOG.md"
|
|
9070
9091
|
}
|
|
9071
9092
|
},
|
|
9072
9093
|
"type": "object"
|
|
@@ -9303,7 +9324,8 @@
|
|
|
9303
9324
|
"description": "The electron locales to keep. By default, all Electron locales used as-is."
|
|
9304
9325
|
},
|
|
9305
9326
|
"electronUpdaterCompatibility": {
|
|
9306
|
-
"
|
|
9327
|
+
"default": ">=7",
|
|
9328
|
+
"description": "The [electron-updater compatibility](https://www.electron.build/docs/features/auto-update#compatibility) semver range: the\nelectron-updater versions the installed apps ship, which have to read the update files this build writes. It selects the\n`.blockmap` format (see `blockmap`), and the build fails when the app's electron-updater does not satisfy it.",
|
|
9307
9329
|
"type": [
|
|
9308
9330
|
"null",
|
|
9309
9331
|
"string"
|
|
@@ -10086,6 +10108,22 @@
|
|
|
10086
10108
|
],
|
|
10087
10109
|
"description": "Called immediately before electron-builder begins packing the app for each platform/arch\ncombination.\n\nUse this hook to perform last-minute modifications to source files or build resources before\nthey are read by the packager.\n\nReceives a {@link BeforePackContext}."
|
|
10088
10110
|
},
|
|
10111
|
+
"blockmap": {
|
|
10112
|
+
"anyOf": [
|
|
10113
|
+
{
|
|
10114
|
+
"enum": [
|
|
10115
|
+
"latest",
|
|
10116
|
+
"v2",
|
|
10117
|
+
"v3"
|
|
10118
|
+
],
|
|
10119
|
+
"type": "string"
|
|
10120
|
+
},
|
|
10121
|
+
{
|
|
10122
|
+
"type": "null"
|
|
10123
|
+
}
|
|
10124
|
+
],
|
|
10125
|
+
"description": "Format of the `<artifact>.blockmap` file published next to installers and update archives, which electron-updater reads for\ndifferential downloads. The map is read by the updater already installed in your users' apps, so the format follows\n`electronUpdaterCompatibility` (default `\">=7\"`):\n\n- unset: `\"v3\"` when `electronUpdaterCompatibility` includes only electron-updater 7 and later, else `\"v2\"`, with a build\n warning.\n- `\"v3\"`: a binary block map that electron-updater fetches in parts with HTTP `Range` requests (only the parts that changed\n since the installed version), with finer blocks for stored members such as an uncompressed `app.asar`. Needs electron-updater\n 7 or later: with an `electronUpdaterCompatibility` that includes earlier versions, the build fails.\n- `\"v2\"`: the gzipped JSON block map every electron-updater version reads, downloaded in full on every update; the package and\n block map are the same as electron-builder 26 wrote.\n- `\"latest\"`: the newest format the `electronUpdaterCompatibility` range supports (currently the same as unset). A future\n format then costs one full download per user, as below.\n\nApps whose electron-updater cannot read a release's format, or whose cached map is in another format, download that update\nin full once; the next one is differential again, or with an artifact name without `${version}` the one after it.\n\nBlock maps embedded in an artifact (AppImage, the NSIS web installer's app package) are always `\"v2\"`.\nSee [the v27 notes](https://www.electron.build/docs/migration/v27-build-changes#block-map-format-follows-electronupdatercompatibility)."
|
|
10126
|
+
},
|
|
10089
10127
|
"buildNumber": {
|
|
10090
10128
|
"description": "The build number.\n\nMaps to the `--iteration` flag for FPM-based Linux targets and is appended to the version\nstring in `CFBundleVersion` (macOS) and `FileVersion` (Windows) when {@link buildVersion} is\nnot set explicitly.\n\nIf not set, falls back to the first defined environment variable among:\n`BUILD_NUMBER`, `TRAVIS_BUILD_NUMBER`, `APPVEYOR_BUILD_NUMBER`, `CIRCLE_BUILD_NUM`,\n`BUILD_BUILDNUMBER`, `CI_PIPELINE_IID`.",
|
|
10091
10129
|
"type": [
|
|
@@ -10249,7 +10287,8 @@
|
|
|
10249
10287
|
"description": "The electron locales to keep. By default, all Electron locales used as-is."
|
|
10250
10288
|
},
|
|
10251
10289
|
"electronUpdaterCompatibility": {
|
|
10252
|
-
"
|
|
10290
|
+
"default": ">=7",
|
|
10291
|
+
"description": "The [electron-updater compatibility](https://www.electron.build/docs/features/auto-update#compatibility) semver range: the\nelectron-updater versions the installed apps ship, which have to read the update files this build writes. It selects the\n`.blockmap` format (see `blockmap`), and the build fails when the app's electron-updater does not satisfy it.",
|
|
10253
10292
|
"type": [
|
|
10254
10293
|
"null",
|
|
10255
10294
|
"string"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Wix xmlns="
|
|
2
|
+
<Wix xmlns="${wixNamespace}">
|
|
3
3
|
<!-- https://blogs.msdn.microsoft.com/gremlininthemachine/2006/12/05/msi-wix-and-unicode/ -->
|
|
4
4
|
<Product Id="*" Name="${productName}" UpgradeCode="${upgradeCode}" Version="${version}" Language="1033" Codepage="65001" Manufacturer="${manufacturer}">
|
|
5
5
|
<Package Compressed="yes" InstallerVersion="500"/>
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
|
|
83
83
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
84
84
|
<Directory Id="${programFilesId}">
|
|
85
|
-
{{
|
|
86
|
-
<Directory Id="
|
|
85
|
+
{{ for (const companyDirectory of companyDirectories) { }}
|
|
86
|
+
<Directory Id="${companyDirectory.id}" Name="${companyDirectory.name}">
|
|
87
87
|
{{ } -}}
|
|
88
88
|
<Directory Id="APPLICATIONFOLDER" Name="${installationDirectoryWixName}"/>
|
|
89
|
-
{{
|
|
89
|
+
{{ for (const companyDirectory of companyDirectories) { }}
|
|
90
90
|
</Directory>
|
|
91
91
|
{{ } -}}
|
|
92
92
|
</Directory>
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
|
|
110
110
|
{{-dirs}}
|
|
111
111
|
|
|
112
|
-
<ComponentGroup Id="ProductComponents"
|
|
112
|
+
<ComponentGroup Id="ProductComponents"{{-componentGroupDirectoryAttribute}}>
|
|
113
113
|
{{-files}}
|
|
114
114
|
</ComponentGroup>
|
|
115
115
|
</Product>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Wix xmlns="
|
|
2
|
+
<Wix xmlns="${wixNamespace}">
|
|
3
3
|
<!-- https://blogs.msdn.microsoft.com/gremlininthemachine/2006/12/05/msi-wix-and-unicode/ -->
|
|
4
4
|
<!-- https://mistake.computer/2020/04/05/msi-exe-wrapper.html -->
|
|
5
5
|
<Product Id="${productId}" Name="${productName}" UpgradeCode="${upgradeCode}" Version="${version}" Language="1033" Codepage="65001" Manufacturer="${manufacturer}">
|
|
@@ -11,7 +11,38 @@
|
|
|
11
11
|
!endif
|
|
12
12
|
|
|
13
13
|
!ifmacrodef licensePage
|
|
14
|
-
|
|
14
|
+
# Skip only a license accepted in the outer instance, not an .onInit elevation.
|
|
15
|
+
# Back must still reach it, otherwise NSIS closes the installer when all earlier pages are skipped.
|
|
16
|
+
Var isLicensePageSkippedInInnerInstance
|
|
17
|
+
Var isAssistedLicenseAccepted
|
|
18
|
+
|
|
19
|
+
Function assistedLicensePagePre
|
|
20
|
+
${if} ${isUpdated}
|
|
21
|
+
Abort
|
|
22
|
+
${endif}
|
|
23
|
+
|
|
24
|
+
${if} ${UAC_IsInnerInstance}
|
|
25
|
+
${andIf} $isLicensePageSkippedInInnerInstance != "1"
|
|
26
|
+
!insertmacro UAC_AsUser_GetGlobalVar $isAssistedLicenseAccepted
|
|
27
|
+
${if} $isAssistedLicenseAccepted == "1"
|
|
28
|
+
StrCpy $isLicensePageSkippedInInnerInstance "1"
|
|
29
|
+
Abort
|
|
30
|
+
${endif}
|
|
31
|
+
${endif}
|
|
32
|
+
FunctionEnd
|
|
33
|
+
|
|
34
|
+
Function assistedLicensePageLeave
|
|
35
|
+
!ifdef MUI_PAGE_CUSTOMFUNCTION_LEAVE
|
|
36
|
+
Call "${MUI_PAGE_CUSTOMFUNCTION_LEAVE}"
|
|
37
|
+
!undef MUI_PAGE_CUSTOMFUNCTION_LEAVE
|
|
38
|
+
!endif
|
|
39
|
+
${ifNot} ${UAC_IsInnerInstance}
|
|
40
|
+
StrCpy $isAssistedLicenseAccepted "1"
|
|
41
|
+
${endif}
|
|
42
|
+
FunctionEnd
|
|
43
|
+
|
|
44
|
+
!define MUI_PAGE_CUSTOMFUNCTION_PRE assistedLicensePagePre
|
|
45
|
+
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE assistedLicensePageLeave
|
|
15
46
|
!insertmacro licensePage
|
|
16
47
|
!endif
|
|
17
48
|
|