app-builder-lib 27.0.0-alpha.11 → 27.0.0-alpha.12
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/codeSign/win/authenticodeSignature.d.ts +71 -0
- package/dist/codeSign/win/authenticodeSignature.d.ts.map +1 -0
- package/dist/codeSign/win/authenticodeSignature.js +241 -0
- package/dist/codeSign/win/authenticodeSignature.js.map +1 -0
- package/dist/codeSign/win/signtoolBaseSignManager.d.ts +11 -0
- package/dist/codeSign/win/signtoolBaseSignManager.d.ts.map +1 -1
- package/dist/codeSign/win/signtoolBaseSignManager.js +36 -16
- package/dist/codeSign/win/signtoolBaseSignManager.js.map +1 -1
- package/dist/codeSign/win/verifyUpdatePublisher.d.ts +25 -0
- package/dist/codeSign/win/verifyUpdatePublisher.d.ts.map +1 -0
- package/dist/codeSign/win/verifyUpdatePublisher.js +98 -0
- package/dist/codeSign/win/verifyUpdatePublisher.js.map +1 -0
- package/dist/configuration.d.ts +11 -10
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js.map +1 -1
- package/dist/electron/ElectronFramework.d.ts +15 -0
- package/dist/electron/ElectronFramework.d.ts.map +1 -1
- package/dist/electron/ElectronFramework.js +33 -2
- package/dist/electron/ElectronFramework.js.map +1 -1
- package/dist/electron/mac/asarIntegrityDigest.d.ts +10 -0
- package/dist/electron/mac/asarIntegrityDigest.d.ts.map +1 -0
- package/dist/electron/mac/asarIntegrityDigest.js +122 -0
- package/dist/electron/mac/asarIntegrityDigest.js.map +1 -0
- package/dist/electron/mac/electronMac.js +1 -28
- package/dist/electron/mac/electronMac.js.map +1 -1
- package/dist/electron/mac/electronMacUtils.d.ts +8 -0
- package/dist/electron/mac/electronMacUtils.d.ts.map +1 -1
- package/dist/electron/mac/electronMacUtils.js +36 -0
- package/dist/electron/mac/electronMacUtils.js.map +1 -1
- package/dist/fileMatcher.d.ts +34 -11
- package/dist/fileMatcher.d.ts.map +1 -1
- package/dist/fileMatcher.js +121 -34
- package/dist/fileMatcher.js.map +1 -1
- package/dist/forge-maker.d.ts +64 -0
- package/dist/forge-maker.d.ts.map +1 -1
- package/dist/forge-maker.js +104 -2
- package/dist/forge-maker.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/indexInternal.d.ts +2 -1
- package/dist/indexInternal.d.ts.map +1 -1
- package/dist/indexInternal.js +2 -1
- package/dist/indexInternal.js.map +1 -1
- package/dist/macPackager.d.ts +6 -0
- package/dist/macPackager.d.ts.map +1 -1
- package/dist/macPackager.js +48 -2
- package/dist/macPackager.js.map +1 -1
- package/dist/options/FuseOptionsV1.d.ts +4 -0
- package/dist/options/FuseOptionsV1.d.ts.map +1 -1
- package/dist/options/FuseOptionsV1.js.map +1 -1
- package/dist/options/PlatformSpecificBuildOptions.d.ts +81 -12
- package/dist/options/PlatformSpecificBuildOptions.d.ts.map +1 -1
- package/dist/options/PlatformSpecificBuildOptions.js.map +1 -1
- package/dist/options/macOptions.d.ts +15 -1
- package/dist/options/macOptions.d.ts.map +1 -1
- package/dist/options/macOptions.js.map +1 -1
- package/dist/options/winOptions.d.ts +7 -4
- package/dist/options/winOptions.d.ts.map +1 -1
- package/dist/options/winOptions.js.map +1 -1
- package/dist/packager.d.ts +2 -0
- package/dist/packager.d.ts.map +1 -1
- package/dist/packager.js +4 -0
- package/dist/packager.js.map +1 -1
- package/dist/platformPackager.d.ts +4 -2
- package/dist/platformPackager.d.ts.map +1 -1
- package/dist/platformPackager.js +12 -2
- package/dist/platformPackager.js.map +1 -1
- package/dist/publish/PublishManager.d.ts +1 -0
- package/dist/publish/PublishManager.d.ts.map +1 -1
- package/dist/publish/PublishManager.js +59 -15
- package/dist/publish/PublishManager.js.map +1 -1
- package/dist/targets/archive.d.ts +6 -0
- package/dist/targets/archive.d.ts.map +1 -1
- package/dist/targets/archive.js +12 -2
- package/dist/targets/archive.js.map +1 -1
- package/dist/targets/differentialUpdateInfoBuilder.d.ts.map +1 -1
- package/dist/targets/differentialUpdateInfoBuilder.js +4 -0
- package/dist/targets/differentialUpdateInfoBuilder.js.map +1 -1
- package/dist/targets/linux/FpmTarget.d.ts.map +1 -1
- package/dist/targets/linux/FpmTarget.js +2 -10
- package/dist/targets/linux/FpmTarget.js.map +1 -1
- package/dist/targets/linux/snap/core24.d.ts.map +1 -1
- package/dist/targets/linux/snap/core24.js +2 -9
- package/dist/targets/linux/snap/core24.js.map +1 -1
- package/dist/targets/mac/MacTargetHelper.d.ts +6 -0
- package/dist/targets/mac/MacTargetHelper.d.ts.map +1 -1
- package/dist/targets/mac/MacTargetHelper.js +47 -3
- package/dist/targets/mac/MacTargetHelper.js.map +1 -1
- package/dist/targets/mac/pkg.d.ts.map +1 -1
- package/dist/targets/mac/pkg.js +1 -0
- package/dist/targets/mac/pkg.js.map +1 -1
- package/dist/targets/win/nsis/NsisTarget.d.ts.map +1 -1
- package/dist/targets/win/nsis/NsisTarget.js +7 -1
- package/dist/targets/win/nsis/NsisTarget.js.map +1 -1
- package/dist/toolsets/winCodeSign.d.ts +14 -1
- package/dist/toolsets/winCodeSign.d.ts.map +1 -1
- package/dist/toolsets/winCodeSign.js +14 -1
- package/dist/toolsets/winCodeSign.js.map +1 -1
- package/dist/util/appFileCopier.d.ts.map +1 -1
- package/dist/util/appFileCopier.js +6 -8
- package/dist/util/appFileCopier.js.map +1 -1
- package/dist/util/config/config.d.ts.map +1 -1
- package/dist/util/config/config.js +9 -1
- package/dist/util/config/config.js.map +1 -1
- package/dist/util/config/fileOptions.d.ts +22 -0
- package/dist/util/config/fileOptions.d.ts.map +1 -1
- package/dist/util/config/fileOptions.js +90 -0
- package/dist/util/config/fileOptions.js.map +1 -1
- package/dist/util/config/legacyOptions.d.ts.map +1 -1
- package/dist/util/config/legacyOptions.js +12 -0
- package/dist/util/config/legacyOptions.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 +11 -9
- package/scheme.json +166 -28
- package/templates/nsis/installSection.nsh +5 -0
package/scheme.json
CHANGED
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
},
|
|
427
427
|
"disableIntegrity": {
|
|
428
428
|
"default": false,
|
|
429
|
-
"description": "Whether to skip computing the ASAR integrity hash.\n\nNormally electron-builder computes and embeds a SHA-256 hash of `app.asar` so that Electron\ncan verify it at startup (when the `
|
|
429
|
+
"description": "Whether to skip computing the ASAR integrity hash.\n\nNormally electron-builder computes and embeds a SHA-256 hash of `app.asar` so that Electron\ncan verify it at startup (when the `enableEmbeddedAsarIntegrityValidation` fuse is enabled). Set to\n`true` only for custom Electron forks with encrypted ASAR support where the header is not\nreadable by standard tools. It also skips the macOS ASAR integrity digest (`mac.asarIntegrityDigest`).",
|
|
430
430
|
"type": "boolean"
|
|
431
431
|
},
|
|
432
432
|
"disableSanityCheck": {
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
},
|
|
1447
1447
|
"FilesBuildOptions": {
|
|
1448
1448
|
"additionalProperties": false,
|
|
1449
|
-
"description": "Which files are copied into the packaged app, and which symlinks among them may lead outside it
|
|
1449
|
+
"description": "Which files are copied into the packaged app, which file extensions are excluded from it, and which symlinks among them may lead outside it,\nset under `fileOptions` at the configuration root or per platform (e.g. `mac.fileOptions`). A platform's file lists are added to the root\nones; a platform's `excludedExts` and `allowExternalLinks` replace the root ones.\nSee [file options](https://www.electron.build/docs/migration/v27-breaking-changes#file-options-fileoptions).",
|
|
1450
1450
|
"properties": {
|
|
1451
1451
|
"allowExternalLinks": {
|
|
1452
1452
|
"anyOf": [
|
|
@@ -1466,6 +1466,26 @@
|
|
|
1466
1466
|
"default": false,
|
|
1467
1467
|
"description": "Whether symlinks among the packaged files may lead outside the app, the workspace and the package-manager store.\n\nOnly the build configuration is trusted, not the files it packages: by default (`false`) electron-builder refuses\n- a file of the app (`app.asar` or `asar: false`) that is a symlink, or is reached through one, whose real path is outside the workspace\n root, the project and app directories and the package-manager store (`npm link`, a `file:../lib` dependency outside the repository,\n a symlink into the home or temp directory),\n- a copied symlink that resolves outside the app: one in `extraResources` / `extraFiles` (other than into the workspace or the store),\n one kept by an `asar: false` copy, and any symlink leaving the app in a target that stores what symlinks point to (Windows `zip` / `7z`,\n the NSIS app package, AppX/MSIX, Squirrel.Windows).\n\nWithout these checks, a symlink planted in a dependency or a copied directory could package files from elsewhere on the build machine (SSH keys,\ncredentials) into the artifact, which is why this is off by default.\n\n- `true` allows any such symlink.\n- A list of paths, relative to the project directory or absolute, allows a symlink only when the real path of what it points to is\n inside the real path of one of them (e.g. `[\"../shared-lib\"]`). A listed path that does not exist fails the build.\n\nAn allowed symlink is packaged: what it points to is copied (or stored by the archive), and a copied symlink is kept\nas it is. A warning is logged once when this allows a symlink.\n\nSet it under `fileOptions`, at the configuration root or per platform; a platform's value (`false` included) replaces the root one\nrather than being added to it:\n```json\n{ \"fileOptions\": { \"allowExternalLinks\": [\"../shared-lib\"] }, \"linux\": { \"fileOptions\": { \"allowExternalLinks\": true } } }\n```\n\nThis does not allow writing through a symlink: a copy or a file written by electron-builder whose destination leads outside the\noutput directory through a symlink is always refused, and a symlink at such a file name is replaced, never followed.\nSee [Symbolic links](https://www.electron.build/docs/contents#symbolic-links)."
|
|
1468
1468
|
},
|
|
1469
|
+
"excludedExts": {
|
|
1470
|
+
"anyOf": [
|
|
1471
|
+
{
|
|
1472
|
+
"items": {
|
|
1473
|
+
"type": "string"
|
|
1474
|
+
},
|
|
1475
|
+
"type": "array"
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"type": [
|
|
1479
|
+
"null",
|
|
1480
|
+
"string"
|
|
1481
|
+
]
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"default": [
|
|
1485
|
+
"default"
|
|
1486
|
+
],
|
|
1487
|
+
"description": "File extensions (without the leading dot) excluded from the packaged app files and the copied `node_modules`.\n\n- `\"default\"` expands to the built-in list of excluded extensions (see the table below).\n- Any other entry adds that extension, e.g. `\"map\"`.\n- An entry starting with `!` removes that extension from the others listed, e.g. `[\"default\", \"!pdb\"]` to keep `.pdb` (Program Database)\n symbol files for Windows crash-dump analysis. `.pdb` files contain symbol names and the source paths of the build machine:\n keep them only in internal builds or builds for a symbol server, or upload them to a symbol server instead of shipping them.\n A list of removals only, such as `[\"!pdb\"]`, is rejected because it would exclude no extension at all: write `[\"default\", \"!pdb\"]`. A `\"!ext\"` in a list that does not otherwise list that extension (e.g. `[\"map\", \"!pdb\"]`) has no effect and logs a warning.\n\nThe built-in list (`\"default\"`):\n\n| Extension | Typically used for |\n| --- | --- |\n| `.iml` | IntelliJ IDEA / WebStorm module file |\n| `.hprof` | Java heap dump |\n| `.orig` | Original copy of a file, left behind by merge tools and `patch` |\n| `.pyc` | Compiled Python bytecode |\n| `.pyo` | Optimized compiled Python bytecode (Python 2) |\n| `.rbc` | Compiled Ruby bytecode (Rubinius) |\n| `.swp` | Vim swap file |\n| `.csproj` | C# (MSBuild) project file |\n| `.sln` | Visual Studio solution file |\n| `.slnx` | Visual Studio XML solution file |\n| `.suo` | Visual Studio solution user options |\n| `.xproj` | .NET Core project file (Visual Studio 2015) |\n| `.cc` | C++ source file, e.g. of a native module |\n| `.d.ts` | TypeScript declaration file |\n| `.mk` | Makefile fragment generated by node-gyp |\n| `.a` | Static library archive from a native build |\n| `.o` | Object file from a native build |\n| `.obj` | Object file from an MSVC native build; also used for Wavefront 3D models, which a `files` pattern can re-include |\n| `.forge-meta` | Metadata `@electron/rebuild` writes next to a rebuilt native module |\n| `.pdb` | Program Database: Windows debug symbols, with symbol names and the build machine's source paths |\n\nThe list replaces the defaults: list `\"default\"` to extend them rather than replace them. `null` (or omitting it) is `[\"default\"]`,\nand an empty array `[]` excludes no extension.\n\nAn invalid list (an entry that is not a file extension, `\"!default\"`, or removals only) fails the build when the configuration is validated, at the root and in every platform section, before anything is packed.\n\n```json\n{ \"fileOptions\": { \"excludedExts\": [\"default\", \"!pdb\", \"map\"] } }\n```\n\nSet it under `fileOptions`, at the configuration root or per platform. Unlike the other lists, a later list replaces an earlier one rather\nthan being merged with it. For the root and for each platform section, the last layer that sets the list wins: the `extends` parents in\norder, then the configuration file, then the programmatic or `-c` configuration. For the `mas` and `mas-dev` targets, a `mas` list then\nreplaces the `mac` one, and a `masDev` list (for `mas-dev`) replaces both. A platform's list then replaces the root one, whichever layer\nset either. A `null` value keeps the earlier list.\n\nA `files` pattern that names an excluded extension includes only the app files it matches: `**\\/*.obj` every `.obj` file outside\n`node_modules` and the build resources and output directories, `models/teapot.obj` only that file.\n\nA single entry may be given as a string, e.g. on the command line: `-c.fileOptions.excludedExts=default`. For several entries, repeat the flag:\n`-c.fileOptions.excludedExts=default -c.fileOptions.excludedExts=!pdb` (in an interactive bash or zsh, write the second one as `'-c.fileOptions.excludedExts=!pdb'`, single-quoted, so that `!pdb` is not expanded)."
|
|
1488
|
+
},
|
|
1469
1489
|
"extraFiles": {
|
|
1470
1490
|
"anyOf": [
|
|
1471
1491
|
{
|
|
@@ -1842,7 +1862,7 @@
|
|
|
1842
1862
|
"type": "boolean"
|
|
1843
1863
|
},
|
|
1844
1864
|
"enableEmbeddedAsarIntegrityValidation": {
|
|
1845
|
-
"description": "Enables ASAR integrity validation — Electron verifies the embedded SHA-256 hash of\n`app.asar` before loading it.\n\nPlatform support:\n- macOS: Electron ≥ 16.0.0\n- Windows: Electron ≥ 30.0.0\n\nFor this fuse to be meaningful, `asar.disableIntegrity` must **not** be\n`true` (otherwise the hash is not embedded).",
|
|
1865
|
+
"description": "Enables ASAR integrity validation — Electron verifies the embedded SHA-256 hash of\n`app.asar` before loading it.\n\nPlatform support:\n- macOS: Electron ≥ 16.0.0\n- Windows: Electron ≥ 30.0.0\n\nFor this fuse to be meaningful, `asar.disableIntegrity` must **not** be\n`true` (otherwise the hash is not embedded).\n\nOn macOS with Electron ≥ 41, electron-builder also embeds a digest of the `Info.plist` hashes\ninto the Electron Framework (see `mac.asarIntegrityDigest`), so they cannot be changed to match\na modified `app.asar` either.",
|
|
1846
1866
|
"type": "boolean"
|
|
1847
1867
|
},
|
|
1848
1868
|
"enableNodeCliInspectArguments": {
|
|
@@ -2505,7 +2525,7 @@
|
|
|
2505
2525
|
"type": "null"
|
|
2506
2526
|
}
|
|
2507
2527
|
],
|
|
2508
|
-
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among
|
|
2528
|
+
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), which file extensions to exclude\nfrom it (`excludedExts`), and whether symlinks among them may lead outside the app and the workspace (`allowExternalLinks`).\nSet at the configuration root, per platform (e.g. `mac.fileOptions`), or both: a platform's file lists are added to the root ones,\nand a platform's `excludedExts` and `allowExternalLinks` replace the root ones.\n\n```json\n{\n \"fileOptions\": {\n \"files\": [\"dist/**\\/*\", \"package.json\"],\n \"extraResources\": [{ \"from\": \"assets/bin\", \"to\": \"bin\" }]\n }\n}\n```\n\n`files`, `extraResources` and `extraFiles` set directly on the configuration or a platform section are moved here\nwhen the configuration is loaded, with a warning. Run `electron-builder migrate-schema` to update the configuration."
|
|
2509
2529
|
},
|
|
2510
2530
|
"forceCodeSigning": {
|
|
2511
2531
|
"default": false,
|
|
@@ -2660,7 +2680,7 @@
|
|
|
2660
2680
|
"type": "null"
|
|
2661
2681
|
}
|
|
2662
2682
|
],
|
|
2663
|
-
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (
|
|
2683
|
+
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` (the PEM file, base64-encoded) / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (its path),\npreferred in CI, or via `signingKey` / `signingKeyFile` below. Leaving this option unset — or `null` — keeps signing required and\nresolves the key from the environment; `null` is not an opt-out.\n\nSet to `false`, the only opt-out, to ship **unsigned** manifests. Every build that produces a manifest then\nlogs a warning. `false` also short-circuits the environment variables, so a leftover\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` in CI cannot re-enable signing by accident.\n\nThe requirement is only enforced when a publish policy is in effect (`--publish`); a build without one\nwarns instead, so local builds and pipelines that sign the manifest in a later step of their own are\nunaffected. It is also waived when every publish provider has `publishAutoUpdate: false`, since no manifest is\nemitted then, and for a build whose targets write no update info (e.g. only snap, flatpak, MSI/MSIX, portable,\nmas/pkg or plain archives). A publishing build checks for the key at build start, before anything is packed\nor uploaded.\n\nSee [Signed Update Manifests](https://www.electron.build/features/signed-update-manifests)."
|
|
2664
2684
|
},
|
|
2665
2685
|
"vendor": {
|
|
2666
2686
|
"description": "The vendor. Defaults to [author](https://www.electron.build/configuration#author).",
|
|
@@ -2952,6 +2972,11 @@
|
|
|
2952
2972
|
"default": true,
|
|
2953
2973
|
"description": "Whether to package the application's source code into an archive, using [Electron's archive format](https://www.electronjs.org/docs/latest/tutorial/asar-archives).\n\nNode modules that must be unpacked will be detected automatically. Use {@link AsarOptions.unpack} to specify additional files to unpack."
|
|
2954
2974
|
},
|
|
2975
|
+
"asarIntegrityDigest": {
|
|
2976
|
+
"default": true,
|
|
2977
|
+
"description": "Whether to embed the [ASAR integrity](https://www.electronjs.org/docs/latest/tutorial/asar-integrity) digest into the Electron Framework binary.\n\nThe digest covers the `ElectronAsarIntegrity` entries of `Info.plist`, so with the `enableEmbeddedAsarIntegrityValidation` fuse (see `electronFuses`) the app refuses to launch if those entries are changed, for example to match a modified `app.asar`. Embedding the digest modifies the Electron Framework, which is then signed again ad hoc; code signing the app replaces that signature.\n\nApplies only when:\n- Electron is 41 or later\n- the build runs on macOS (`codesign` signs the modified framework again)\n- `asar` is enabled and `asar.disableIntegrity` is not `true`\n\nSet to `false` if you change `app.asar` or `Info.plist` after the `afterPack` hook, sign the app yourself in `afterPack`, or merge separately built `x64` and `arm64` apps with `@electron/universal` yourself (build the `universal` arch instead).",
|
|
2978
|
+
"type": "boolean"
|
|
2979
|
+
},
|
|
2955
2980
|
"bundleShortVersion": {
|
|
2956
2981
|
"description": "The `CFBundleShortVersionString`. Do not use it unless you need to.",
|
|
2957
2982
|
"type": [
|
|
@@ -3099,7 +3124,7 @@
|
|
|
3099
3124
|
"type": "null"
|
|
3100
3125
|
}
|
|
3101
3126
|
],
|
|
3102
|
-
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among
|
|
3127
|
+
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), which file extensions to exclude\nfrom it (`excludedExts`), and whether symlinks among them may lead outside the app and the workspace (`allowExternalLinks`).\nSet at the configuration root, per platform (e.g. `mac.fileOptions`), or both: a platform's file lists are added to the root ones,\nand a platform's `excludedExts` and `allowExternalLinks` replace the root ones.\n\n```json\n{\n \"fileOptions\": {\n \"files\": [\"dist/**\\/*\", \"package.json\"],\n \"extraResources\": [{ \"from\": \"assets/bin\", \"to\": \"bin\" }]\n }\n}\n```\n\n`files`, `extraResources` and `extraFiles` set directly on the configuration or a platform section are moved here\nwhen the configuration is loaded, with a warning. Run `electron-builder migrate-schema` to update the configuration."
|
|
3103
3128
|
},
|
|
3104
3129
|
"forceCodeSigning": {
|
|
3105
3130
|
"default": false,
|
|
@@ -3175,7 +3200,7 @@
|
|
|
3175
3200
|
]
|
|
3176
3201
|
},
|
|
3177
3202
|
"notarize": {
|
|
3178
|
-
"description": "Whether to disable electron-builder's [@electron/notarize](https://github.com/electron/notarize) integration.\n\nNote: In order to activate the notarization step You MUST specify one of the following via environment variables:\n\n1. `APPLE_API_KEY
|
|
3203
|
+
"description": "Whether to disable electron-builder's [@electron/notarize](https://github.com/electron/notarize) integration.\n\nNote: In order to activate the notarization step You MUST specify one of the following via environment variables:\n\n1. `APPLE_API_KEY` (path to the `.p8` file, or its contents base64-encoded), `APPLE_API_KEY_ID` and `APPLE_API_ISSUER`.\n2. `APPLE_ID`, `APPLE_APP_SPECIFIC_PASSWORD`, and `APPLE_TEAM_ID`\n3. `APPLE_KEYCHAIN` and `APPLE_KEYCHAIN_PROFILE`\n\nFor security reasons it is recommended to use the first option (see https://github.com/electron-userland/electron-builder/issues/7859)",
|
|
3179
3204
|
"type": "boolean"
|
|
3180
3205
|
},
|
|
3181
3206
|
"protocols": {
|
|
@@ -3339,7 +3364,7 @@
|
|
|
3339
3364
|
"type": "null"
|
|
3340
3365
|
}
|
|
3341
3366
|
],
|
|
3342
|
-
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (
|
|
3367
|
+
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` (the PEM file, base64-encoded) / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (its path),\npreferred in CI, or via `signingKey` / `signingKeyFile` below. Leaving this option unset — or `null` — keeps signing required and\nresolves the key from the environment; `null` is not an opt-out.\n\nSet to `false`, the only opt-out, to ship **unsigned** manifests. Every build that produces a manifest then\nlogs a warning. `false` also short-circuits the environment variables, so a leftover\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` in CI cannot re-enable signing by accident.\n\nThe requirement is only enforced when a publish policy is in effect (`--publish`); a build without one\nwarns instead, so local builds and pipelines that sign the manifest in a later step of their own are\nunaffected. It is also waived when every publish provider has `publishAutoUpdate: false`, since no manifest is\nemitted then, and for a build whose targets write no update info (e.g. only snap, flatpak, MSI/MSIX, portable,\nmas/pkg or plain archives). A publishing build checks for the key at build start, before anything is packed\nor uploaded.\n\nSee [Signed Update Manifests](https://www.electron.build/features/signed-update-manifests)."
|
|
3343
3368
|
}
|
|
3344
3369
|
},
|
|
3345
3370
|
"type": "object"
|
|
@@ -3377,6 +3402,11 @@
|
|
|
3377
3402
|
"default": true,
|
|
3378
3403
|
"description": "Whether to package the application's source code into an archive, using [Electron's archive format](https://www.electronjs.org/docs/latest/tutorial/asar-archives).\n\nNode modules that must be unpacked will be detected automatically. Use {@link AsarOptions.unpack} to specify additional files to unpack."
|
|
3379
3404
|
},
|
|
3405
|
+
"asarIntegrityDigest": {
|
|
3406
|
+
"default": true,
|
|
3407
|
+
"description": "Whether to embed the [ASAR integrity](https://www.electronjs.org/docs/latest/tutorial/asar-integrity) digest into the Electron Framework binary.\n\nThe digest covers the `ElectronAsarIntegrity` entries of `Info.plist`, so with the `enableEmbeddedAsarIntegrityValidation` fuse (see `electronFuses`) the app refuses to launch if those entries are changed, for example to match a modified `app.asar`. Embedding the digest modifies the Electron Framework, which is then signed again ad hoc; code signing the app replaces that signature.\n\nApplies only when:\n- Electron is 41 or later\n- the build runs on macOS (`codesign` signs the modified framework again)\n- `asar` is enabled and `asar.disableIntegrity` is not `true`\n\nSet to `false` if you change `app.asar` or `Info.plist` after the `afterPack` hook, sign the app yourself in `afterPack`, or merge separately built `x64` and `arm64` apps with `@electron/universal` yourself (build the `universal` arch instead).",
|
|
3408
|
+
"type": "boolean"
|
|
3409
|
+
},
|
|
3380
3410
|
"bundleShortVersion": {
|
|
3381
3411
|
"description": "The `CFBundleShortVersionString`. Do not use it unless you need to.",
|
|
3382
3412
|
"type": [
|
|
@@ -3524,7 +3554,7 @@
|
|
|
3524
3554
|
"type": "null"
|
|
3525
3555
|
}
|
|
3526
3556
|
],
|
|
3527
|
-
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among
|
|
3557
|
+
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), which file extensions to exclude\nfrom it (`excludedExts`), and whether symlinks among them may lead outside the app and the workspace (`allowExternalLinks`).\nSet at the configuration root, per platform (e.g. `mac.fileOptions`), or both: a platform's file lists are added to the root ones,\nand a platform's `excludedExts` and `allowExternalLinks` replace the root ones.\n\n```json\n{\n \"fileOptions\": {\n \"files\": [\"dist/**\\/*\", \"package.json\"],\n \"extraResources\": [{ \"from\": \"assets/bin\", \"to\": \"bin\" }]\n }\n}\n```\n\n`files`, `extraResources` and `extraFiles` set directly on the configuration or a platform section are moved here\nwhen the configuration is loaded, with a warning. Run `electron-builder migrate-schema` to update the configuration."
|
|
3528
3558
|
},
|
|
3529
3559
|
"forceCodeSigning": {
|
|
3530
3560
|
"default": false,
|
|
@@ -3600,7 +3630,7 @@
|
|
|
3600
3630
|
]
|
|
3601
3631
|
},
|
|
3602
3632
|
"notarize": {
|
|
3603
|
-
"description": "Whether to disable electron-builder's [@electron/notarize](https://github.com/electron/notarize) integration.\n\nNote: In order to activate the notarization step You MUST specify one of the following via environment variables:\n\n1. `APPLE_API_KEY
|
|
3633
|
+
"description": "Whether to disable electron-builder's [@electron/notarize](https://github.com/electron/notarize) integration.\n\nNote: In order to activate the notarization step You MUST specify one of the following via environment variables:\n\n1. `APPLE_API_KEY` (path to the `.p8` file, or its contents base64-encoded), `APPLE_API_KEY_ID` and `APPLE_API_ISSUER`.\n2. `APPLE_ID`, `APPLE_APP_SPECIFIC_PASSWORD`, and `APPLE_TEAM_ID`\n3. `APPLE_KEYCHAIN` and `APPLE_KEYCHAIN_PROFILE`\n\nFor security reasons it is recommended to use the first option (see https://github.com/electron-userland/electron-builder/issues/7859)",
|
|
3604
3634
|
"type": "boolean"
|
|
3605
3635
|
},
|
|
3606
3636
|
"protocols": {
|
|
@@ -3764,7 +3794,7 @@
|
|
|
3764
3794
|
"type": "null"
|
|
3765
3795
|
}
|
|
3766
3796
|
],
|
|
3767
|
-
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (
|
|
3797
|
+
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` (the PEM file, base64-encoded) / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (its path),\npreferred in CI, or via `signingKey` / `signingKeyFile` below. Leaving this option unset — or `null` — keeps signing required and\nresolves the key from the environment; `null` is not an opt-out.\n\nSet to `false`, the only opt-out, to ship **unsigned** manifests. Every build that produces a manifest then\nlogs a warning. `false` also short-circuits the environment variables, so a leftover\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` in CI cannot re-enable signing by accident.\n\nThe requirement is only enforced when a publish policy is in effect (`--publish`); a build without one\nwarns instead, so local builds and pipelines that sign the manifest in a later step of their own are\nunaffected. It is also waived when every publish provider has `publishAutoUpdate: false`, since no manifest is\nemitted then, and for a build whose targets write no update info (e.g. only snap, flatpak, MSI/MSIX, portable,\nmas/pkg or plain archives). A publishing build checks for the key at build start, before anything is packed\nor uploaded.\n\nSee [Signed Update Manifests](https://www.electron.build/features/signed-update-manifests)."
|
|
3768
3798
|
}
|
|
3769
3799
|
},
|
|
3770
3800
|
"type": "object"
|
|
@@ -6658,9 +6688,88 @@
|
|
|
6658
6688
|
},
|
|
6659
6689
|
"type": "object"
|
|
6660
6690
|
},
|
|
6691
|
+
"S3AwsCredentialsEnvNames": {
|
|
6692
|
+
"additionalProperties": false,
|
|
6693
|
+
"description": "Environment variable names holding the S3 publishing credentials.",
|
|
6694
|
+
"properties": {
|
|
6695
|
+
"accessKeyId": {
|
|
6696
|
+
"description": "The environment variable holding the access key ID.",
|
|
6697
|
+
"type": "string"
|
|
6698
|
+
},
|
|
6699
|
+
"secretAccessKey": {
|
|
6700
|
+
"description": "The environment variable holding the secret access key.",
|
|
6701
|
+
"type": "string"
|
|
6702
|
+
},
|
|
6703
|
+
"sessionToken": {
|
|
6704
|
+
"description": "The environment variable holding the session token, if any.",
|
|
6705
|
+
"type": [
|
|
6706
|
+
"null",
|
|
6707
|
+
"string"
|
|
6708
|
+
]
|
|
6709
|
+
}
|
|
6710
|
+
},
|
|
6711
|
+
"required": [
|
|
6712
|
+
"accessKeyId",
|
|
6713
|
+
"secretAccessKey"
|
|
6714
|
+
],
|
|
6715
|
+
"type": "object"
|
|
6716
|
+
},
|
|
6717
|
+
"S3AwsCredentialsOptions": {
|
|
6718
|
+
"additionalProperties": false,
|
|
6719
|
+
"description": "How the S3 publisher obtains AWS credentials. Only the sources named here are consulted.",
|
|
6720
|
+
"properties": {
|
|
6721
|
+
"configFile": {
|
|
6722
|
+
"default": "~/.aws/config",
|
|
6723
|
+
"description": "The shared config file for `source: \"profile\"` or `source: \"sso-role-chain\"`. `AWS_CONFIG_FILE` is not consulted.",
|
|
6724
|
+
"type": [
|
|
6725
|
+
"null",
|
|
6726
|
+
"string"
|
|
6727
|
+
]
|
|
6728
|
+
},
|
|
6729
|
+
"credentialsFile": {
|
|
6730
|
+
"default": "~/.aws/credentials",
|
|
6731
|
+
"description": "The shared credentials file for `source: \"profile\"` or `source: \"sso-role-chain\"`. `AWS_SHARED_CREDENTIALS_FILE` is not consulted.",
|
|
6732
|
+
"type": [
|
|
6733
|
+
"null",
|
|
6734
|
+
"string"
|
|
6735
|
+
]
|
|
6736
|
+
},
|
|
6737
|
+
"env": {
|
|
6738
|
+
"anyOf": [
|
|
6739
|
+
{
|
|
6740
|
+
"$ref": "#/definitions/S3AwsCredentialsEnvNames"
|
|
6741
|
+
},
|
|
6742
|
+
{
|
|
6743
|
+
"type": "null"
|
|
6744
|
+
}
|
|
6745
|
+
],
|
|
6746
|
+
"description": "Custom environment variable names for `source: \"env\"`, e.g. to keep publish-only keys separate from ambient `AWS_*` variables."
|
|
6747
|
+
},
|
|
6748
|
+
"profile": {
|
|
6749
|
+
"description": "The profile name for `source: \"profile\"` or `source: \"sso-role-chain\"` (required for those sources; `AWS_PROFILE` is not used as a fallback).\nUse `default` to select the `[default]` profile.",
|
|
6750
|
+
"type": [
|
|
6751
|
+
"null",
|
|
6752
|
+
"string"
|
|
6753
|
+
]
|
|
6754
|
+
},
|
|
6755
|
+
"source": {
|
|
6756
|
+
"description": "The credential source (required, no default):\n- `env`: read only `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_SESSION_TOKEN` (or the variable names given in `env`).\n- `profile`: read the named `profile` from the shared config/credentials files. Static keys, IAM Identity Center (SSO), `credential_process` and assume-role profiles are supported.\n An assume-role profile whose `source_profile` chain starts at an SSO profile is rejected; use `sso-role-chain` for it.\n `credential_source`, web identity (`web_identity_token_file`) and `aws login` sessions (`login_session`) anywhere in the chain are rejected: they read ambient credentials or settings.\n- `sso-role-chain`: `profile` names an assume-role profile (`role_arn` + `source_profile`). Its `source_profile` chain (up to 5 assume-role hops, no cycles)\n must end at an IAM Identity Center (SSO) profile. electron-builder resolves that SSO profile from the configured files, then calls STS AssumeRole for each hop\n with the previous hop's credentials. `role_session_name`, `external_id` and `duration_seconds` are honoured per hop; STS uses the named profile's `region`\n (else `us-east-1`) and `sts_regional_endpoints`. `AWS_REGION` and other `AWS_*` variables are not read. `credential_source`, `mfa_serial`, `web_identity_token_file`\n and `credential_process` are rejected in the chain.",
|
|
6757
|
+
"enum": [
|
|
6758
|
+
"env",
|
|
6759
|
+
"profile",
|
|
6760
|
+
"sso-role-chain"
|
|
6761
|
+
],
|
|
6762
|
+
"type": "string"
|
|
6763
|
+
}
|
|
6764
|
+
},
|
|
6765
|
+
"required": [
|
|
6766
|
+
"source"
|
|
6767
|
+
],
|
|
6768
|
+
"type": "object"
|
|
6769
|
+
},
|
|
6661
6770
|
"S3Options": {
|
|
6662
6771
|
"additionalProperties": false,
|
|
6663
|
-
"description": "[Amazon S3](https://aws.amazon.com/s3/) options.\nAWS credentials are required, please see [getting your credentials](
|
|
6772
|
+
"description": "[Amazon S3](https://aws.amazon.com/s3/) options.\nAWS credentials are required, please see [getting your credentials](https://docs.aws.amazon.com/sdkref/latest/guide/access.html).\nPublishing requires choosing where they come from with [awsCredentials](#awsCredentials) `source` (there is no default):\n- `source: \"env\"` reads only the `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and optional `AWS_SESSION_TOKEN` environment variables (or custom names);\n- `source: \"profile\"` reads the named `profile` from the [shared config and credentials files](https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html)\n (static keys, IAM Identity Center / SSO, `credential_process`, assume-role with `source_profile`; `credential_source`, web identity and `login_session` are rejected).\n- `source: \"sso-role-chain\"` reads the named assume-role `profile` from the same files and resolves its `source_profile` chain, which must start at an\n IAM Identity Center (SSO) profile, with the configured files only.\n\nNo credentials are read implicitly: `AWS_PROFILE`, `AWS_SDK_LOAD_CONFIG`, `AWS_CONFIG_FILE`, `AWS_SHARED_CREDENTIALS_FILE` and the `~/.aws` files are never consulted on their own.\n\nExample configuration:\n\n```json\n{\n\"build\":\n \"publish\": {\n \"provider\": \"s3\",\n \"bucket\": \"bucket-name\",\n \"awsCredentials\": { \"source\": \"env\" }\n }\n}\n}\n```",
|
|
6664
6773
|
"properties": {
|
|
6665
6774
|
"accelerate": {
|
|
6666
6775
|
"description": "If set to true, this will enable the s3 accelerated endpoint\nThese endpoints have a particular format of:\n ${bucketname}.s3-accelerate.amazonaws.com",
|
|
@@ -6682,6 +6791,17 @@
|
|
|
6682
6791
|
"default": "public-read",
|
|
6683
6792
|
"description": "The ACL. Set to `null` to not [add](https://github.com/electron-userland/electron-builder/issues/1822).\n\nPlease see [required permissions for the S3 provider](https://github.com/electron-userland/electron-builder/issues/1618#issuecomment-314679128)."
|
|
6684
6793
|
},
|
|
6794
|
+
"awsCredentials": {
|
|
6795
|
+
"anyOf": [
|
|
6796
|
+
{
|
|
6797
|
+
"$ref": "#/definitions/S3AwsCredentialsOptions"
|
|
6798
|
+
},
|
|
6799
|
+
{
|
|
6800
|
+
"type": "null"
|
|
6801
|
+
}
|
|
6802
|
+
],
|
|
6803
|
+
"description": "Where the AWS credentials used for publishing come from. Required to publish (there is no default source);\nbuilds that don't publish don't need it. Build-time only: never written to `app-update.yml`.\n\nExample using an IAM Identity Center (SSO) profile:\n\n```json\n\"awsCredentials\": { \"source\": \"profile\", \"profile\": \"release\" }\n```\n\nExample assuming a role (`role_arn` + `source_profile`) on top of an SSO profile:\n\n```json\n\"awsCredentials\": { \"source\": \"sso-role-chain\", \"profile\": \"deploy\", \"configFile\": \"~/.aws/config\" }\n```"
|
|
6804
|
+
},
|
|
6685
6805
|
"bucket": {
|
|
6686
6806
|
"description": "The bucket name.",
|
|
6687
6807
|
"type": "string"
|
|
@@ -8452,13 +8572,14 @@
|
|
|
8452
8572
|
"1.1.1",
|
|
8453
8573
|
"1.2.1",
|
|
8454
8574
|
"1.3.0",
|
|
8575
|
+
"1.3.1",
|
|
8455
8576
|
"latest"
|
|
8456
8577
|
],
|
|
8457
8578
|
"type": "string"
|
|
8458
8579
|
}
|
|
8459
8580
|
],
|
|
8460
8581
|
"default": "latest",
|
|
8461
|
-
"description": "Version of the `win-codesign` bundle used for Windows code signing and resource editing.\n\nThe bundle ships:\n- **`signtool.exe`** (Windows) / **`osslsigncode`** (macOS & Linux) — used to sign `.exe`,\n `.dll`, and `.msix` artifacts.\n- **`rcedit`** — embeds version metadata and icons into `.exe` files (legacy usage, migrated to npm `resedit` package).\n- **Windows Kits** — used by AppX/MSIX packaging (`makeappx`, `signtool`).\n\nAvailable versions:\n| Version | Notes |\n|---------|-------|\n| `\"0.0.0\"` | Legacy bundle — `winCodeSign-2.6.0` (pre-v27) |\n| `\"1.0.0\"` | Windows Kits 10.0.26100.0, `osslsigncode` v2.9 |\n| `\"1.1.1\"` | Updates `osslsigncode` to v2.11 |\n| `\"1.2.1\"` | Adds native `osslsigncode` arm64 |\n| `\"1.3.0\"` | Includes support for Azure Trusted Signing `signtool` via dlib and .NET 8 runtime |\n\nReleases: https://github.com/electron-userland/electron-builder-binaries/blob/master/packages/win-codesign/CHANGELOG.md"
|
|
8582
|
+
"description": "Version of the `win-codesign` bundle used for Windows code signing and resource editing.\n\nThe bundle ships:\n- **`signtool.exe`** (Windows) / **`osslsigncode`** (macOS & Linux) — used to sign `.exe`,\n `.dll`, and `.msix` artifacts.\n- **`rcedit`** — embeds version metadata and icons into `.exe` files (legacy usage, migrated to npm `resedit` package).\n- **Windows Kits** — used by AppX/MSIX packaging (`makeappx`, `signtool`).\n\nAvailable versions:\n| Version | Notes |\n|---------|-------|\n| `\"0.0.0\"` | Legacy bundle — `winCodeSign-2.6.0` (pre-v27) |\n| `\"1.0.0\"` | Windows Kits 10.0.26100.0, `osslsigncode` v2.9 |\n| `\"1.1.1\"` | Updates `osslsigncode` to v2.11 |\n| `\"1.2.1\"` | Adds native `osslsigncode` arm64 |\n| `\"1.3.0\"` | Includes support for Azure Trusted Signing `signtool` via dlib and .NET 8 runtime |\n| `\"1.3.1\"` | macOS `osslsigncode` bundles its own OpenSSL (no Homebrew `openssl@3` needed) and libp11's PKCS#11 provider |\n\nReleases: https://github.com/electron-userland/electron-builder-binaries/blob/master/packages/win-codesign/CHANGELOG.md"
|
|
8462
8583
|
},
|
|
8463
8584
|
"wine": {
|
|
8464
8585
|
"anyOf": [
|
|
@@ -8506,6 +8627,14 @@
|
|
|
8506
8627
|
"UpdateManifestSigningOptions": {
|
|
8507
8628
|
"additionalProperties": false,
|
|
8508
8629
|
"properties": {
|
|
8630
|
+
"allowSigningKeyOutsideTrustList": {
|
|
8631
|
+
"default": false,
|
|
8632
|
+
"description": "Allows a publishing build to sign its manifests only with keys that are not in `publicKey` - a deliberate\ncutover release that is verified by installs with the old key, but hands them over to the keys listed in\n`publicKey`. Every later release must then be signed by a listed key. Without it such a build fails; a build\nwithout a publish policy only warns. Has no effect when `publicKey` is not set.",
|
|
8633
|
+
"type": [
|
|
8634
|
+
"null",
|
|
8635
|
+
"boolean"
|
|
8636
|
+
]
|
|
8637
|
+
},
|
|
8509
8638
|
"publicKey": {
|
|
8510
8639
|
"anyOf": [
|
|
8511
8640
|
{
|
|
@@ -8521,7 +8650,7 @@
|
|
|
8521
8650
|
]
|
|
8522
8651
|
}
|
|
8523
8652
|
],
|
|
8524
|
-
"description": "The Ed25519 public key(s) (PEM or base64 SPKI) embedded into `app-update.yml` as the updater's trust list.\nThe updater accepts a manifest when any listed key validates one of its signatures. Optional — when\nomitted the public key of every configured signing key is derived and embedded. Set it explicitly to trust\nadditional keys ahead of a rotation (for example `[current, next]`).\n\nA `publicKey` on its own does not satisfy the signing requirement — electron-builder still has no key to\nsign with. An external signer (HSM/KMS) that signs `latest*.yml` in a later step therefore either builds\nwithout a publish policy, where the requirement only warns and the unsigned manifest is written locally, or\nkeeps publishing with `publishAutoUpdate: false` on every publish provider - electron-builder then uploads the\nartifacts and embeds this key, but writes no `latest*.yml`, so the external step has to produce it too."
|
|
8653
|
+
"description": "The Ed25519 public key(s) (PEM or base64 SPKI) embedded into `app-update.yml` as the updater's trust list.\nThe updater accepts a manifest when any listed key validates one of its signatures. Optional — when\nomitted the public key of every configured signing key is derived and embedded. Set it explicitly to trust\nadditional keys ahead of a rotation (for example `[current, next]`).\n\nA `publicKey` on its own does not satisfy the signing requirement — electron-builder still has no key to\nsign with. An external signer (HSM/KMS) that signs `latest*.yml` in a later step therefore either builds\nwithout a publish policy, where the requirement only warns and the unsigned manifest is written locally, or\nkeeps publishing with `publishAutoUpdate: false` on every publish provider - electron-builder then uploads the\nartifacts and embeds this key, but writes no `latest*.yml`, so the external step has to produce it too.\n\nWhen set, it must contain at least one of the signing keys: a publishing build signed only by keys outside this\nlist fails, since its installs would reject manifests signed with them. See `allowSigningKeyOutsideTrustList`."
|
|
8525
8654
|
},
|
|
8526
8655
|
"signingKey": {
|
|
8527
8656
|
"anyOf": [
|
|
@@ -8538,7 +8667,7 @@
|
|
|
8538
8667
|
]
|
|
8539
8668
|
}
|
|
8540
8669
|
],
|
|
8541
|
-
"description": "Ed25519 private key(s) in PEM (PKCS#8) format used to sign the update manifest. A single PEM string may\ncontain several concatenated keys, or pass an array with one key each; the manifest is signed by every key\n(dual-signing for [key rotation](https://www.electron.build/features/key-rotation)) and the first key also\nfills the legacy single `signature` field.\nSecret — prefer the `ELECTRON_BUILDER_UPDATE_SIGN_KEY` environment variable in CI over committing this to config."
|
|
8670
|
+
"description": "Ed25519 private key(s) in PEM (PKCS#8) format used to sign the update manifest. A single PEM string may\ncontain several concatenated keys, or pass an array with one key each; the manifest is signed by every key\n(dual-signing for [key rotation](https://www.electron.build/features/key-rotation)) and the first key also\nfills the legacy single `signature` field.\nSecret — prefer the `ELECTRON_BUILDER_UPDATE_SIGN_KEY` environment variable (the PEM file, base64-encoded) in CI over committing this to config."
|
|
8542
8671
|
},
|
|
8543
8672
|
"signingKeyFile": {
|
|
8544
8673
|
"anyOf": [
|
|
@@ -8736,7 +8865,7 @@
|
|
|
8736
8865
|
"type": "null"
|
|
8737
8866
|
}
|
|
8738
8867
|
],
|
|
8739
|
-
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among
|
|
8868
|
+
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), which file extensions to exclude\nfrom it (`excludedExts`), and whether symlinks among them may lead outside the app and the workspace (`allowExternalLinks`).\nSet at the configuration root, per platform (e.g. `mac.fileOptions`), or both: a platform's file lists are added to the root ones,\nand a platform's `excludedExts` and `allowExternalLinks` replace the root ones.\n\n```json\n{\n \"fileOptions\": {\n \"files\": [\"dist/**\\/*\", \"package.json\"],\n \"extraResources\": [{ \"from\": \"assets/bin\", \"to\": \"bin\" }]\n }\n}\n```\n\n`files`, `extraResources` and `extraFiles` set directly on the configuration or a platform section are moved here\nwhen the configuration is loaded, with a warning. Run `electron-builder migrate-schema` to update the configuration."
|
|
8740
8869
|
},
|
|
8741
8870
|
"forceCodeSigning": {
|
|
8742
8871
|
"default": false,
|
|
@@ -8924,11 +9053,11 @@
|
|
|
8924
9053
|
"type": "null"
|
|
8925
9054
|
}
|
|
8926
9055
|
],
|
|
8927
|
-
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (
|
|
9056
|
+
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` (the PEM file, base64-encoded) / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (its path),\npreferred in CI, or via `signingKey` / `signingKeyFile` below. Leaving this option unset — or `null` — keeps signing required and\nresolves the key from the environment; `null` is not an opt-out.\n\nSet to `false`, the only opt-out, to ship **unsigned** manifests. Every build that produces a manifest then\nlogs a warning. `false` also short-circuits the environment variables, so a leftover\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` in CI cannot re-enable signing by accident.\n\nThe requirement is only enforced when a publish policy is in effect (`--publish`); a build without one\nwarns instead, so local builds and pipelines that sign the manifest in a later step of their own are\nunaffected. It is also waived when every publish provider has `publishAutoUpdate: false`, since no manifest is\nemitted then, and for a build whose targets write no update info (e.g. only snap, flatpak, MSI/MSIX, portable,\nmas/pkg or plain archives). A publishing build checks for the key at build start, before anything is packed\nor uploaded.\n\nSee [Signed Update Manifests](https://www.electron.build/features/signed-update-manifests)."
|
|
8928
9057
|
},
|
|
8929
9058
|
"verifyUpdateCodeSignature": {
|
|
8930
9059
|
"default": true,
|
|
8931
|
-
"description": "Whether the NSIS auto-updater should verify the Authenticode signature of a downloaded update\nbefore installing it.
|
|
9060
|
+
"description": "Whether the NSIS auto-updater should verify the Authenticode signature of a downloaded update\nbefore installing it. The verification itself runs in your app, via electron-updater.\n\nWhen enabled (the default), the resolved [publisher name](#publisherName) is embedded into\n`app-update.yml` at build time. At update time electron-updater inspects the certificate that\nsigned the downloaded installer and compares its subject (Distinguished Name / Common Name)\nagainst that publisher name, refusing to install on a mismatch. This prevents a tampered or\nmaliciously substituted update from being installed.\n\nWhile enabled, electron-builder also checks at build time that the signed NSIS installer (or\nnsis-web stub) is signed by a certificate matching that publisher name, using the same matching\nrules, and fails the build otherwise.\n\nSet to `false` to skip verification — in which case the publisher name is **not** embedded.\nDisable this only if your updates are not Authenticode-signed.",
|
|
8932
9061
|
"type": "boolean"
|
|
8933
9062
|
}
|
|
8934
9063
|
},
|
|
@@ -9029,7 +9158,7 @@
|
|
|
9029
9158
|
}
|
|
9030
9159
|
],
|
|
9031
9160
|
"default": "['sha1', 'sha256']",
|
|
9032
|
-
"description": "The digest (hash) algorithms to sign with, applied via signtool's `/fd` flag (or\nosslsigncode's `-h`). One signing pass runs per entry, in order; listing more than one\n**dual-signs** the file, with each additional signature appended as a nested signature\n(signtool `/as`). Signing with both `sha1` and `sha256` lets a single binary validate on\nlegacy (pre-SHA-2) Windows as well as modern Windows.\n\nSome targets override this: `.msi` cannot be dual-signed
|
|
9161
|
+
"description": "The digest (hash) algorithms to sign with, applied via signtool's `/fd` flag (or\nosslsigncode's `-h`). One signing pass runs per entry, in order; listing more than one\n**dual-signs** the file, with each additional signature appended as a nested signature\n(signtool `/as`). Signing with both `sha1` and `sha256` lets a single binary validate on\nlegacy (pre-SHA-2) Windows as well as modern Windows.\n\nSome targets override this: `.msi` cannot be dual-signed, so it is signed once, with `sha256`\nunless `sha1` is the only algorithm listed, and AppX/MSIX is always `sha256` only."
|
|
9033
9162
|
},
|
|
9034
9163
|
"timeStampServer": {
|
|
9035
9164
|
"default": "http://timestamp.digicert.com",
|
|
@@ -9134,7 +9263,7 @@
|
|
|
9134
9263
|
}
|
|
9135
9264
|
],
|
|
9136
9265
|
"default": "['sha1', 'sha256']",
|
|
9137
|
-
"description": "The digest (hash) algorithms to sign with, applied via signtool's `/fd` flag (or\nosslsigncode's `-h`). One signing pass runs per entry, in order; listing more than one\n**dual-signs** the file, with each additional signature appended as a nested signature\n(signtool `/as`). Signing with both `sha1` and `sha256` lets a single binary validate on\nlegacy (pre-SHA-2) Windows as well as modern Windows.\n\nSome targets override this: `.msi` cannot be dual-signed
|
|
9266
|
+
"description": "The digest (hash) algorithms to sign with, applied via signtool's `/fd` flag (or\nosslsigncode's `-h`). One signing pass runs per entry, in order; listing more than one\n**dual-signs** the file, with each additional signature appended as a nested signature\n(signtool `/as`). Signing with both `sha1` and `sha256` lets a single binary validate on\nlegacy (pre-SHA-2) Windows as well as modern Windows.\n\nSome targets override this: `.msi` cannot be dual-signed, so it is signed once, with `sha256`\nunless `sha1` is the only algorithm listed, and AppX/MSIX is always `sha256` only."
|
|
9138
9267
|
},
|
|
9139
9268
|
"timeStampServer": {
|
|
9140
9269
|
"default": "http://timestamp.digicert.com",
|
|
@@ -9252,7 +9381,7 @@
|
|
|
9252
9381
|
}
|
|
9253
9382
|
],
|
|
9254
9383
|
"default": "['sha1', 'sha256']",
|
|
9255
|
-
"description": "The digest (hash) algorithms to sign with, applied via signtool's `/fd` flag (or\nosslsigncode's `-h`). One signing pass runs per entry, in order; listing more than one\n**dual-signs** the file, with each additional signature appended as a nested signature\n(signtool `/as`). Signing with both `sha1` and `sha256` lets a single binary validate on\nlegacy (pre-SHA-2) Windows as well as modern Windows.\n\nSome targets override this: `.msi` cannot be dual-signed
|
|
9384
|
+
"description": "The digest (hash) algorithms to sign with, applied via signtool's `/fd` flag (or\nosslsigncode's `-h`). One signing pass runs per entry, in order; listing more than one\n**dual-signs** the file, with each additional signature appended as a nested signature\n(signtool `/as`). Signing with both `sha1` and `sha256` lets a single binary validate on\nlegacy (pre-SHA-2) Windows as well as modern Windows.\n\nSome targets override this: `.msi` cannot be dual-signed, so it is signed once, with `sha256`\nunless `sha1` is the only algorithm listed, and AppX/MSIX is always `sha256` only."
|
|
9256
9385
|
},
|
|
9257
9386
|
"timeStampServer": {
|
|
9258
9387
|
"default": "http://timestamp.digicert.com",
|
|
@@ -9709,7 +9838,7 @@
|
|
|
9709
9838
|
"type": "null"
|
|
9710
9839
|
}
|
|
9711
9840
|
],
|
|
9712
|
-
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among
|
|
9841
|
+
"description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), which file extensions to exclude\nfrom it (`excludedExts`), and whether symlinks among them may lead outside the app and the workspace (`allowExternalLinks`).\nSet at the configuration root, per platform (e.g. `mac.fileOptions`), or both: a platform's file lists are added to the root ones,\nand a platform's `excludedExts` and `allowExternalLinks` replace the root ones.\n\n```json\n{\n \"fileOptions\": {\n \"files\": [\"dist/**\\/*\", \"package.json\"],\n \"extraResources\": [{ \"from\": \"assets/bin\", \"to\": \"bin\" }]\n }\n}\n```\n\n`files`, `extraResources` and `extraFiles` set directly on the configuration or a platform section are moved here\nwhen the configuration is loaded, with a warning. Run `electron-builder migrate-schema` to update the configuration."
|
|
9713
9842
|
},
|
|
9714
9843
|
"flatpak": {
|
|
9715
9844
|
"anyOf": [
|
|
@@ -9767,11 +9896,6 @@
|
|
|
9767
9896
|
],
|
|
9768
9897
|
"description": "Names of production dependencies that are excluded from the copied `node_modules`, even if they\nare declared in the `dependencies` section of `package.json`.\n\nelectron-builder copies the resolved production dependency tree into the app. Some packages —\nnotably `electron` — are already provided another way (the Electron runtime is embedded\nseparately), so copying them would just duplicate what is already there. Such packages are\nexcluded from the copy rather than rejected: they remain valid production dependencies for\ntooling purposes (e.g. SBOM, license, and vulnerability tracking) without being shipped twice.\n\nOnly dependencies **declared by the app itself** are eligible: a listed name and the transitive\ndependencies required *only* by it are dropped, while anything also required by another (kept)\nproduction dependency stays bundled. A matching name that appears solely as a transitive\ndependency of a kept package is never excluded. Note that a kept package which `require()`s an\nexcluded name at runtime *without declaring it* (relying on hoisting) will fail with\n`MODULE_NOT_FOUND` — declare such a dependency properly or remove the name from this list.\n\nMatching is by the dependency name as declared in `package.json`: an npm alias\n(`\"custom-electron\": \"npm:electron@^30.0.0\"`) is matched by its alias key (`custom-electron`),\nnever by the underlying package name.\n\nOverriding this option **replaces** the default list, so include `electron` and `electron-builder`\nunless you intend to ship them. The most common reason to override is to *add* a dependency that a\nbundler (Vite, webpack, esbuild, …) already inlines into your app code: keep it in `dependencies`\nso SBOM/license tooling still sees it, and list it here so a duplicate copy is not packaged — e.g.\n`[\"electron\", \"electron-builder\", \"react\", \"react-dom\"]`. Removing a default name keeps that\npackage in the copied `node_modules`. Setting the option to `null` (or omitting it) applies the\ndefault list; to disable exclusion entirely, set it to an empty array `[]`. Each excluded package\nis logged once during packaging."
|
|
9769
9898
|
},
|
|
9770
|
-
"includePdb": {
|
|
9771
|
-
"default": false,
|
|
9772
|
-
"description": "Whether to include `.pdb` (Program Database) symbol files in the output.\n\nPDB files enable Windows crash-dump analysis but significantly increase artifact size. Enable\nfor internal builds where you want symbol information; disable for public distribution.",
|
|
9773
|
-
"type": "boolean"
|
|
9774
|
-
},
|
|
9775
9899
|
"linux": {
|
|
9776
9900
|
"anyOf": [
|
|
9777
9901
|
{
|
|
@@ -9960,6 +10084,20 @@
|
|
|
9960
10084
|
],
|
|
9961
10085
|
"description": "macOS PKG flat-package installer options."
|
|
9962
10086
|
},
|
|
10087
|
+
"pkgDistributionCreated": {
|
|
10088
|
+
"anyOf": [
|
|
10089
|
+
{
|
|
10090
|
+
"typeof": "function"
|
|
10091
|
+
},
|
|
10092
|
+
{
|
|
10093
|
+
"type": [
|
|
10094
|
+
"null",
|
|
10095
|
+
"string"
|
|
10096
|
+
]
|
|
10097
|
+
}
|
|
10098
|
+
],
|
|
10099
|
+
"description": "Called after the `distribution.xml` of a macOS `pkg` installer has been written (synthesized by\n`productbuild --synthesize`, then customized from {@link PkgOptions}) but before `productbuild` builds the\ninstaller from it.\n\nThe hook receives the path to the distribution file as a string. Edit it in place or overwrite it to\ncustomize the installer beyond {@link PkgOptions} (for example, its `<title>`)."
|
|
10100
|
+
},
|
|
9963
10101
|
"portable": {
|
|
9964
10102
|
"anyOf": [
|
|
9965
10103
|
{
|
|
@@ -10136,7 +10274,7 @@
|
|
|
10136
10274
|
"type": "null"
|
|
10137
10275
|
}
|
|
10138
10276
|
],
|
|
10139
|
-
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (
|
|
10277
|
+
"description": "Ed25519 signing of the auto-update manifest (`latest*.yml`). Each manifest is signed and its public key is\nembedded into `app-update.yml`, so electron-updater verifies the signature before downloading an update.\n\n**Signing is required.** Publishing a build that emits auto-update metadata fails unless a signing key\nresolves. Generate one once with `electron-builder create-update-key`, then supply it via\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` (the PEM file, base64-encoded) / `ELECTRON_BUILDER_UPDATE_SIGN_KEY_FILE` (its path),\npreferred in CI, or via `signingKey` / `signingKeyFile` below. Leaving this option unset — or `null` — keeps signing required and\nresolves the key from the environment; `null` is not an opt-out.\n\nSet to `false`, the only opt-out, to ship **unsigned** manifests. Every build that produces a manifest then\nlogs a warning. `false` also short-circuits the environment variables, so a leftover\n`ELECTRON_BUILDER_UPDATE_SIGN_KEY` in CI cannot re-enable signing by accident.\n\nThe requirement is only enforced when a publish policy is in effect (`--publish`); a build without one\nwarns instead, so local builds and pipelines that sign the manifest in a later step of their own are\nunaffected. It is also waived when every publish provider has `publishAutoUpdate: false`, since no manifest is\nemitted then, and for a build whose targets write no update info (e.g. only snap, flatpak, MSI/MSIX, portable,\nmas/pkg or plain archives). A publishing build checks for the key at build start, before anything is packed\nor uploaded.\n\nSee [Signed Update Manifests](https://www.electron.build/features/signed-update-manifests)."
|
|
10140
10278
|
},
|
|
10141
10279
|
"win": {
|
|
10142
10280
|
"anyOf": [
|
|
@@ -27,6 +27,11 @@ StrCpy $appExe "$INSTDIR\${APP_EXECUTABLE_FILENAME}"
|
|
|
27
27
|
GetDlgItem $0 $0 1000
|
|
28
28
|
SendMessage $0 ${WM_SETTEXT} 0 "STR:$(installing)"
|
|
29
29
|
|
|
30
|
+
# SpiderBanner hides the InstFiles page while keyboard focus is still on one of its controls. Pressing Tab then makes the
|
|
31
|
+
# dialog manager search forever for a control it can no longer see, and the installer stops responding (#7526).
|
|
32
|
+
# Move focus to the banner's (visible) status text. This also lets screen readers announce it.
|
|
33
|
+
SendMessage $hwndparent ${WM_NEXTDLGCTL} $0 1
|
|
34
|
+
|
|
30
35
|
StrCpy $1 $hwndparent
|
|
31
36
|
System::Call 'user32::ShutdownBlockReasonCreate(${SYSTYPE_PTR}r1, w "$(installing)")'
|
|
32
37
|
${endif}
|