app-builder-lib 27.0.0-alpha.10 → 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.
Files changed (217) hide show
  1. package/dist/asar/asarAlign.d.ts +35 -0
  2. package/dist/asar/asarAlign.d.ts.map +1 -0
  3. package/dist/asar/asarAlign.js +149 -0
  4. package/dist/asar/asarAlign.js.map +1 -0
  5. package/dist/asar/asarUtil.d.ts +15 -1
  6. package/dist/asar/asarUtil.d.ts.map +1 -1
  7. package/dist/asar/asarUtil.js +111 -61
  8. package/dist/asar/asarUtil.js.map +1 -1
  9. package/dist/codeSign/win/authenticodeSignature.d.ts +71 -0
  10. package/dist/codeSign/win/authenticodeSignature.d.ts.map +1 -0
  11. package/dist/codeSign/win/authenticodeSignature.js +241 -0
  12. package/dist/codeSign/win/authenticodeSignature.js.map +1 -0
  13. package/dist/codeSign/win/signtoolBaseSignManager.d.ts +11 -0
  14. package/dist/codeSign/win/signtoolBaseSignManager.d.ts.map +1 -1
  15. package/dist/codeSign/win/signtoolBaseSignManager.js +36 -16
  16. package/dist/codeSign/win/signtoolBaseSignManager.js.map +1 -1
  17. package/dist/codeSign/win/verifyUpdatePublisher.d.ts +25 -0
  18. package/dist/codeSign/win/verifyUpdatePublisher.d.ts.map +1 -0
  19. package/dist/codeSign/win/verifyUpdatePublisher.js +98 -0
  20. package/dist/codeSign/win/verifyUpdatePublisher.js.map +1 -0
  21. package/dist/configuration.d.ts +16 -13
  22. package/dist/configuration.d.ts.map +1 -1
  23. package/dist/configuration.js.map +1 -1
  24. package/dist/electron/ElectronFramework.d.ts +15 -0
  25. package/dist/electron/ElectronFramework.d.ts.map +1 -1
  26. package/dist/electron/ElectronFramework.js +33 -2
  27. package/dist/electron/ElectronFramework.js.map +1 -1
  28. package/dist/electron/mac/asarIntegrityDigest.d.ts +10 -0
  29. package/dist/electron/mac/asarIntegrityDigest.d.ts.map +1 -0
  30. package/dist/electron/mac/asarIntegrityDigest.js +122 -0
  31. package/dist/electron/mac/asarIntegrityDigest.js.map +1 -0
  32. package/dist/electron/mac/electronMac.js +1 -28
  33. package/dist/electron/mac/electronMac.js.map +1 -1
  34. package/dist/electron/mac/electronMacUtils.d.ts +8 -0
  35. package/dist/electron/mac/electronMacUtils.d.ts.map +1 -1
  36. package/dist/electron/mac/electronMacUtils.js +36 -0
  37. package/dist/electron/mac/electronMacUtils.js.map +1 -1
  38. package/dist/fileMatcher.d.ts +47 -12
  39. package/dist/fileMatcher.d.ts.map +1 -1
  40. package/dist/fileMatcher.js +150 -45
  41. package/dist/fileMatcher.js.map +1 -1
  42. package/dist/forge-maker.d.ts +64 -0
  43. package/dist/forge-maker.d.ts.map +1 -1
  44. package/dist/forge-maker.js +104 -2
  45. package/dist/forge-maker.js.map +1 -1
  46. package/dist/index.d.ts +4 -4
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +1 -1
  49. package/dist/index.js.map +1 -1
  50. package/dist/indexInternal.d.ts +5 -3
  51. package/dist/indexInternal.d.ts.map +1 -1
  52. package/dist/indexInternal.js +5 -3
  53. package/dist/indexInternal.js.map +1 -1
  54. package/dist/macPackager.d.ts +6 -0
  55. package/dist/macPackager.d.ts.map +1 -1
  56. package/dist/macPackager.js +48 -2
  57. package/dist/macPackager.js.map +1 -1
  58. package/dist/options/FuseOptionsV1.d.ts +4 -0
  59. package/dist/options/FuseOptionsV1.d.ts.map +1 -1
  60. package/dist/options/FuseOptionsV1.js.map +1 -1
  61. package/dist/options/PlatformSpecificBuildOptions.d.ts +166 -8
  62. package/dist/options/PlatformSpecificBuildOptions.d.ts.map +1 -1
  63. package/dist/options/PlatformSpecificBuildOptions.js.map +1 -1
  64. package/dist/options/SnapOptions.d.ts +36 -15
  65. package/dist/options/SnapOptions.d.ts.map +1 -1
  66. package/dist/options/SnapOptions.js.map +1 -1
  67. package/dist/options/linuxOptions.d.ts +53 -18
  68. package/dist/options/linuxOptions.d.ts.map +1 -1
  69. package/dist/options/linuxOptions.js.map +1 -1
  70. package/dist/options/macOptions.d.ts +15 -1
  71. package/dist/options/macOptions.d.ts.map +1 -1
  72. package/dist/options/macOptions.js.map +1 -1
  73. package/dist/options/winOptions.d.ts +7 -4
  74. package/dist/options/winOptions.d.ts.map +1 -1
  75. package/dist/options/winOptions.js.map +1 -1
  76. package/dist/packager.d.ts +2 -0
  77. package/dist/packager.d.ts.map +1 -1
  78. package/dist/packager.js +6 -0
  79. package/dist/packager.js.map +1 -1
  80. package/dist/platformPackager.d.ts +11 -4
  81. package/dist/platformPackager.d.ts.map +1 -1
  82. package/dist/platformPackager.js +53 -18
  83. package/dist/platformPackager.js.map +1 -1
  84. package/dist/presets/rectCra.js +3 -1
  85. package/dist/presets/rectCra.js.map +1 -1
  86. package/dist/publish/PublishManager.d.ts +6 -1
  87. package/dist/publish/PublishManager.d.ts.map +1 -1
  88. package/dist/publish/PublishManager.js +80 -58
  89. package/dist/publish/PublishManager.js.map +1 -1
  90. package/dist/publish/updateInfoBuilder.d.ts.map +1 -1
  91. package/dist/publish/updateInfoBuilder.js +8 -10
  92. package/dist/publish/updateInfoBuilder.js.map +1 -1
  93. package/dist/targets/ArchiveTarget.d.ts.map +1 -1
  94. package/dist/targets/ArchiveTarget.js +7 -1
  95. package/dist/targets/ArchiveTarget.js.map +1 -1
  96. package/dist/targets/archive.d.ts +12 -0
  97. package/dist/targets/archive.d.ts.map +1 -1
  98. package/dist/targets/archive.js +17 -3
  99. package/dist/targets/archive.js.map +1 -1
  100. package/dist/targets/blockmap/blockmap.d.ts +3 -2
  101. package/dist/targets/blockmap/blockmap.d.ts.map +1 -1
  102. package/dist/targets/blockmap/blockmap.js +3 -2
  103. package/dist/targets/blockmap/blockmap.js.map +1 -1
  104. package/dist/targets/differentialUpdateInfoBuilder.d.ts.map +1 -1
  105. package/dist/targets/differentialUpdateInfoBuilder.js +4 -0
  106. package/dist/targets/differentialUpdateInfoBuilder.js.map +1 -1
  107. package/dist/targets/linux/FlatpakTarget.d.ts +17 -0
  108. package/dist/targets/linux/FlatpakTarget.d.ts.map +1 -1
  109. package/dist/targets/linux/FlatpakTarget.js +238 -48
  110. package/dist/targets/linux/FlatpakTarget.js.map +1 -1
  111. package/dist/targets/linux/FpmTarget.d.ts.map +1 -1
  112. package/dist/targets/linux/FpmTarget.js +10 -14
  113. package/dist/targets/linux/FpmTarget.js.map +1 -1
  114. package/dist/targets/linux/LinuxTargetHelper.d.ts +1 -3
  115. package/dist/targets/linux/LinuxTargetHelper.d.ts.map +1 -1
  116. package/dist/targets/linux/LinuxTargetHelper.js +45 -20
  117. package/dist/targets/linux/LinuxTargetHelper.js.map +1 -1
  118. package/dist/targets/linux/appimage/AppImageTarget.d.ts.map +1 -1
  119. package/dist/targets/linux/appimage/AppImageTarget.js +5 -1
  120. package/dist/targets/linux/appimage/AppImageTarget.js.map +1 -1
  121. package/dist/targets/linux/appimage/appImageUtil.d.ts +3 -1
  122. package/dist/targets/linux/appimage/appImageUtil.d.ts.map +1 -1
  123. package/dist/targets/linux/appimage/appImageUtil.js +2 -2
  124. package/dist/targets/linux/appimage/appImageUtil.js.map +1 -1
  125. package/dist/targets/linux/appimage/appLauncher.d.ts +6 -0
  126. package/dist/targets/linux/appimage/appLauncher.d.ts.map +1 -1
  127. package/dist/targets/linux/appimage/appLauncher.js +13 -9
  128. package/dist/targets/linux/appimage/appLauncher.js.map +1 -1
  129. package/dist/targets/linux/flatpakBundle.d.ts +43 -0
  130. package/dist/targets/linux/flatpakBundle.d.ts.map +1 -0
  131. package/dist/targets/linux/flatpakBundle.js +210 -0
  132. package/dist/targets/linux/flatpakBundle.js.map +1 -0
  133. package/dist/targets/linux/snap/core24.d.ts +0 -18
  134. package/dist/targets/linux/snap/core24.d.ts.map +1 -1
  135. package/dist/targets/linux/snap/core24.js +29 -100
  136. package/dist/targets/linux/snap/core24.js.map +1 -1
  137. package/dist/targets/linux/snap/coreLegacy.d.ts +7 -0
  138. package/dist/targets/linux/snap/coreLegacy.d.ts.map +1 -1
  139. package/dist/targets/linux/snap/coreLegacy.js +25 -6
  140. package/dist/targets/linux/snap/coreLegacy.js.map +1 -1
  141. package/dist/targets/linux/snap/snapPlugs.d.ts +76 -0
  142. package/dist/targets/linux/snap/snapPlugs.d.ts.map +1 -0
  143. package/dist/targets/linux/snap/snapPlugs.js +242 -0
  144. package/dist/targets/linux/snap/snapPlugs.js.map +1 -0
  145. package/dist/targets/mac/MacTargetHelper.d.ts +6 -0
  146. package/dist/targets/mac/MacTargetHelper.d.ts.map +1 -1
  147. package/dist/targets/mac/MacTargetHelper.js +47 -3
  148. package/dist/targets/mac/MacTargetHelper.js.map +1 -1
  149. package/dist/targets/mac/pkg.d.ts.map +1 -1
  150. package/dist/targets/mac/pkg.js +1 -0
  151. package/dist/targets/mac/pkg.js.map +1 -1
  152. package/dist/targets/win/nsis/Defines.d.ts +1 -0
  153. package/dist/targets/win/nsis/Defines.d.ts.map +1 -1
  154. package/dist/targets/win/nsis/Defines.js.map +1 -1
  155. package/dist/targets/win/nsis/NsisTarget.d.ts +8 -1
  156. package/dist/targets/win/nsis/NsisTarget.d.ts.map +1 -1
  157. package/dist/targets/win/nsis/NsisTarget.js +36 -5
  158. package/dist/targets/win/nsis/NsisTarget.js.map +1 -1
  159. package/dist/targets/win/nsis/nsisOptions.d.ts +6 -4
  160. package/dist/targets/win/nsis/nsisOptions.d.ts.map +1 -1
  161. package/dist/targets/win/nsis/nsisOptions.js.map +1 -1
  162. package/dist/targets/win/nsis/nsisUtil.d.ts.map +1 -1
  163. package/dist/targets/win/nsis/nsisUtil.js +7 -2
  164. package/dist/targets/win/nsis/nsisUtil.js.map +1 -1
  165. package/dist/targets/win/winAppUtil.d.ts +2 -2
  166. package/dist/targets/win/winAppUtil.d.ts.map +1 -1
  167. package/dist/targets/win/winAppUtil.js +5 -3
  168. package/dist/targets/win/winAppUtil.js.map +1 -1
  169. package/dist/toolsets/appimage.d.ts.map +1 -1
  170. package/dist/toolsets/appimage.js +19 -19
  171. package/dist/toolsets/appimage.js.map +1 -1
  172. package/dist/toolsets/nsis.js +1 -1
  173. package/dist/toolsets/nsis.js.map +1 -1
  174. package/dist/toolsets/winCodeSign.d.ts +14 -1
  175. package/dist/toolsets/winCodeSign.d.ts.map +1 -1
  176. package/dist/toolsets/winCodeSign.js +14 -1
  177. package/dist/toolsets/winCodeSign.js.map +1 -1
  178. package/dist/util/AppFileWalker.js +9 -1
  179. package/dist/util/AppFileWalker.js.map +1 -1
  180. package/dist/util/appFileCopier.d.ts +15 -2
  181. package/dist/util/appFileCopier.d.ts.map +1 -1
  182. package/dist/util/appFileCopier.js +30 -20
  183. package/dist/util/appFileCopier.js.map +1 -1
  184. package/dist/util/config/config.d.ts +1 -1
  185. package/dist/util/config/config.d.ts.map +1 -1
  186. package/dist/util/config/config.js +42 -19
  187. package/dist/util/config/config.js.map +1 -1
  188. package/dist/util/config/fileOptions.d.ts +52 -0
  189. package/dist/util/config/fileOptions.d.ts.map +1 -0
  190. package/dist/util/config/fileOptions.js +210 -0
  191. package/dist/util/config/fileOptions.js.map +1 -0
  192. package/dist/util/config/legacyConfigGuard.d.ts.map +1 -1
  193. package/dist/util/config/legacyConfigGuard.js +31 -4
  194. package/dist/util/config/legacyConfigGuard.js.map +1 -1
  195. package/dist/util/config/legacyOptions.d.ts +11 -0
  196. package/dist/util/config/legacyOptions.d.ts.map +1 -1
  197. package/dist/util/config/legacyOptions.js +36 -10
  198. package/dist/util/config/legacyOptions.js.map +1 -1
  199. package/dist/util/electronGet.d.ts +13 -0
  200. package/dist/util/electronGet.d.ts.map +1 -1
  201. package/dist/util/electronGet.js +40 -17
  202. package/dist/util/electronGet.js.map +1 -1
  203. package/dist/util/removedEnvVars.d.ts +25 -0
  204. package/dist/util/removedEnvVars.d.ts.map +1 -0
  205. package/dist/util/removedEnvVars.js +54 -0
  206. package/dist/util/removedEnvVars.js.map +1 -0
  207. package/dist/util/trustedSourceRoots.d.ts +59 -0
  208. package/dist/util/trustedSourceRoots.d.ts.map +1 -0
  209. package/dist/util/trustedSourceRoots.js +127 -0
  210. package/dist/util/trustedSourceRoots.js.map +1 -0
  211. package/dist/version.d.ts +1 -1
  212. package/dist/version.js +1 -1
  213. package/dist/version.js.map +1 -1
  214. package/package.json +18 -17
  215. package/scheme.json +421 -436
  216. package/templates/nsis/include/installer.nsh +11 -8
  217. package/templates/nsis/installSection.nsh +5 -0
package/scheme.json CHANGED
@@ -70,7 +70,7 @@
70
70
  "type": "null"
71
71
  }
72
72
  ],
73
- "description": "The compression algorithm passed to the AppImage build tool.\n\n**FUSE2 toolset (`\"0.0.0\"` or unset):** only `\"xz\"` and `\"gzip\"` are forwarded\nto mksquashfs (`-comp <value>`); `\"xz\"` additionally passes `-Xdict-size 100% -b 1048576`.\n`\"zstd\"`, `null`, and unset fall through to the root-level `compression` option:\n- `\"maximum\"` → `\"xz\"`\n- anything else → flag omitted (mksquashfs defaults to gzip)\n\n**Static-runtime toolsets (`>= 1.0.0`):** `\"gzip\"` and `\"zstd\"` are forwarded\ndirectly. `\"xz\"` is mapped to `\"zstd\"` (nearest supported equivalent). `null`\nor unset falls through to the root-level `compression` option:\n- `\"store\"` → `\"gzip\"`\n- `\"normal\"` / `\"maximum\"` / unset → `\"zstd\"`"
73
+ "description": "The compression algorithm passed to the AppImage build tool.\n\n**FUSE2 toolset (`\"0.0.0\"`):** only `\"xz\"` and `\"gzip\"` are forwarded\nto mksquashfs (`-comp <value>`); `\"xz\"` additionally passes `-Xdict-size 100% -b 1048576`.\n`\"zstd\"`, `null`, and unset fall through to the root-level `compression` option:\n- `\"maximum\"` → `\"xz\"`\n- anything else → flag omitted (mksquashfs defaults to gzip)\n\n**Static-runtime toolsets (unset / `\"latest\"` or `>= 1.0.0`):** `\"gzip\"` and `\"zstd\"` are forwarded\ndirectly. `\"xz\"` is mapped to `\"zstd\"` (nearest supported equivalent). `null`\nor unset falls through to the root-level `compression` option:\n- `\"store\"` → `\"gzip\"`\n- `\"normal\"` / `\"maximum\"` / unset → `\"zstd\"`"
74
74
  },
75
75
  "description": {
76
76
  "description": "As [description](https://www.electron.build/configuration#description) from application package.json, but allows you to specify different for Linux.",
@@ -416,9 +416,17 @@
416
416
  "AsarOptions": {
417
417
  "additionalProperties": false,
418
418
  "properties": {
419
+ "contentAlignment": {
420
+ "default": 0,
421
+ "description": "Align the start of every packed file's content inside `app.asar` to a multiple of this many bytes\n(zero padding between files). Off when unset or `0`.\n\nMeant for differential updates with `nsis.differentialPackage: \"store-asar\"`: the asar header stores\nevery file's absolute content offset, so without alignment a change that grows a file by a single byte\nshifts the offset of every later file and most of the header has to be re-downloaded. With alignment\na file can grow within its slot and no other offset moves. Measured on a 32 MB asar with 3,000 files:\n`512` cut a small length-changing edit from 414 KB to 139 KB of differential download for 2.2 % more\nasar size. Padding does not help when a file is added or removed (a new header entry shifts all later\noffsets) or when growth crosses the slot. File order, sizes and per-file integrity are unchanged;\nElectron and `@electron/asar` read files by offset + size and ignore the gaps.\n\nMust be a positive integer; values above 64 KiB log a warning because every file is padded up to the\nboundary. The alignment is applied when electron-builder packs `app.asar`, so it is lost when the\narchive is rebuilt afterwards: macOS universal builds with `mac.universal.mergeASARs` (the default)\nrepack the merged asar, and `--prepackaged` skips packing entirely.",
422
+ "type": [
423
+ "null",
424
+ "number"
425
+ ]
426
+ },
419
427
  "disableIntegrity": {
420
428
  "default": false,
421
- "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 `embeddedAsarIntegrityValidation` 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.",
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`).",
422
430
  "type": "boolean"
423
431
  },
424
432
  "disableSanityCheck": {
@@ -427,7 +435,7 @@
427
435
  "type": "boolean"
428
436
  },
429
437
  "ordering": {
430
- "description": "Path to a file containing the order in which files should be packed into the asar archive.\nEach line of the file is a relative path from the app directory. Files listed first are\npacked first, which can improve app startup time by front-loading frequently accessed modules.\nSee the [asar documentation](https://github.com/electron/asar) for details.",
438
+ "description": "Path to a file containing the order in which files should be packed into the asar archive.\nEach line of the file is a relative path from the app directory. Files listed first are\npacked first, which can improve app startup time by front-loading frequently accessed modules.\nSee the [asar documentation](https://github.com/electron/asar) for details.\n\nLines use the same syntax `@electron/asar` accepts: the path may carry a leading `/` or a\n`<count>:` prefix (as written by a load counter), and blank lines are ignored. There is no comment\nsyntax, and `\\` separators are accepted. Directory entries are moved to the front in their original\nrelative order (they hold no data), listed files follow in the order of the file, and every other\nfile keeps its original order after them. Lines naming a directory are ignored, and listed files\nthat are not in the archive are skipped.\n\nThe path is resolved like other build resources: relative to the [build resources directory](#directories)\nfirst, then to the project directory. A missing file fails the build. Packing files ahead of the default\ndependencies-first layout can increase differential update download size.",
431
439
  "type": [
432
440
  "null",
433
441
  "string"
@@ -460,7 +468,7 @@
460
468
  },
461
469
  "BitbucketOptions": {
462
470
  "additionalProperties": false,
463
- "description": "Bitbucket options.\nhttps://bitbucket.org/\nDefine `BITBUCKET_TOKEN` environment variable.\n\nBitbucket Cloud is [retiring app passwords](https://www.atlassian.com/blog/bitbucket/bitbucket-cloud-transitions-to-api-tokens) in favor of API tokens and access tokens. Authentication is selected by whether a `username` is provided:\n- With `username` — the token is sent via HTTP Basic auth. Use a Bitbucket username + [app password](https://bitbucket.org/account/settings/app-passwords), or an Atlassian account email + [API token](https://support.atlassian.com/bitbucket-cloud/docs/using-api-tokens/).\n- Without `username` — the token is sent as a repository/project/workspace [access token](https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/) via Bearer auth.\n\nFor the auto-updater on a private repository, pass the matching header to `autoUpdater.addAuthHeader(...)`:\n```typescript\n// access token (no username)\nautoUpdater.addAuthHeader(`Bearer ${token}`)\n// app password or API token (with username)\nautoUpdater.addAuthHeader(`Basic ${Buffer.from(`${username}:${token}`).toString(\"base64\")}`)\n```",
471
+ "description": "Bitbucket options.\nhttps://bitbucket.org/\nDefine `BITBUCKET_TOKEN` environment variable.\n\nBitbucket Cloud is [retiring app passwords](https://www.atlassian.com/blog/bitbucket/bitbucket-cloud-transitions-to-api-tokens-enhancing-security-with-app-password-deprecation) in favor of API tokens and access tokens. Authentication is selected by whether a `username` is provided:\n- With `username` — the token is sent via HTTP Basic auth. Use a Bitbucket username + [app password](https://bitbucket.org/account/settings/app-passwords/), or an Atlassian account email + [API token](https://support.atlassian.com/bitbucket-cloud/docs/using-api-tokens/).\n- Without `username` — the token is sent as a repository/project/workspace [access token](https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/) via Bearer auth.\n\nFor the auto-updater on a private repository, pass the matching header to `autoUpdater.addAuthHeader(...)`:\n```typescript\n// access token (no username)\nautoUpdater.addAuthHeader(`Bearer ${token}`)\n// app password or API token (with username)\nautoUpdater.addAuthHeader(`Basic ${Buffer.from(`${username}:${token}`).toString(\"base64\")}`)\n```",
464
472
  "properties": {
465
473
  "channel": {
466
474
  "default": "latest",
@@ -514,7 +522,7 @@
514
522
  ]
515
523
  },
516
524
  "token": {
517
- "description": "The token to support auto-update from private bitbucket repositories. Depending on `username`, this is a Bitbucket [app password](https://bitbucket.org/account/settings/app-passwords), an Atlassian [API token](https://support.atlassian.com/bitbucket-cloud/docs/using-api-tokens/), or a repository/project/workspace [access token](https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/).",
525
+ "description": "The token to support auto-update from private bitbucket repositories. Depending on `username`, this is a Bitbucket [app password](https://bitbucket.org/account/settings/app-passwords/), an Atlassian [API token](https://support.atlassian.com/bitbucket-cloud/docs/using-api-tokens/), or a repository/project/workspace [access token](https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/).",
518
526
  "type": [
519
527
  "null",
520
528
  "string"
@@ -1275,7 +1283,7 @@
1275
1283
  "description": "Defines files that will be skipped during the code signing process.\nThis property accepts a regex, function or an array of regexes and functions.\nElements of other types are treated as `RegExp`.\n\nFile paths matching a regex or returning a `true` value from a function will be ignored."
1276
1284
  },
1277
1285
  "preAutoEntitlements": {
1278
- "description": "Flag to enable/disable entitlements automation tasks necessary for code signing most Electron apps.\n* Adds [`com.apple.security.application-groups`](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_application-groups) to the entitlements file\n* Fills in the `ElectronTeamID` property in `Info.plist` with the provisioning profile's Team Identifier or by parsing the identity name.",
1286
+ "description": "Flag to enable/disable entitlements automation tasks necessary for code signing most Electron apps.\nThe automation runs when the app's entitlements enable `com.apple.security.app-sandbox`, or when a\n{@link OnlySignOptions.provisioningProfileprovisioning profile} is supplied (a profile only grants\nits restricted entitlements to code carrying the matching identifier entitlements below).\n* Fills in the `ElectronTeamID` property in `Info.plist` with the provisioning profile's Team Identifier or by parsing the identity name.\n* Adds `com.apple.application-identifier` and `com.apple.developer.team-identifier` to the entitlements file.\n* For sandboxed apps, also adds [`com.apple.security.application-groups`](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_application-groups) to the entitlements file.",
1279
1287
  "type": "boolean"
1280
1288
  },
1281
1289
  "preEmbedProvisioningProfile": {
@@ -1436,9 +1444,195 @@
1436
1444
  },
1437
1445
  "type": "object"
1438
1446
  },
1447
+ "FilesBuildOptions": {
1448
+ "additionalProperties": false,
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
+ "properties": {
1451
+ "allowExternalLinks": {
1452
+ "anyOf": [
1453
+ {
1454
+ "items": {
1455
+ "type": "string"
1456
+ },
1457
+ "type": "array"
1458
+ },
1459
+ {
1460
+ "type": [
1461
+ "null",
1462
+ "boolean"
1463
+ ]
1464
+ }
1465
+ ],
1466
+ "default": false,
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
+ },
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
+ },
1489
+ "extraFiles": {
1490
+ "anyOf": [
1491
+ {
1492
+ "$ref": "#/definitions/FileSet"
1493
+ },
1494
+ {
1495
+ "items": {
1496
+ "anyOf": [
1497
+ {
1498
+ "$ref": "#/definitions/FileSet"
1499
+ },
1500
+ {
1501
+ "type": "string"
1502
+ }
1503
+ ]
1504
+ },
1505
+ "type": "array"
1506
+ },
1507
+ {
1508
+ "type": [
1509
+ "null",
1510
+ "string"
1511
+ ]
1512
+ }
1513
+ ],
1514
+ "description": "The same as [extraResources](#extraresources) but copy into the app's content directory (`Contents` for MacOS, root directory for Linux and Windows)."
1515
+ },
1516
+ "extraResources": {
1517
+ "anyOf": [
1518
+ {
1519
+ "$ref": "#/definitions/FileSet"
1520
+ },
1521
+ {
1522
+ "items": {
1523
+ "anyOf": [
1524
+ {
1525
+ "$ref": "#/definitions/FileSet"
1526
+ },
1527
+ {
1528
+ "type": "string"
1529
+ }
1530
+ ]
1531
+ },
1532
+ "type": "array"
1533
+ },
1534
+ {
1535
+ "type": [
1536
+ "null",
1537
+ "string"
1538
+ ]
1539
+ }
1540
+ ],
1541
+ "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the project directory, when specified, copy the file or directory with matching names directly into the app's resources directory (`Contents/Resources` for MacOS, `resources` for Linux and Windows).\n\nFile patterns (and support for `from` and `to` fields) the same as for [files](#files)."
1542
+ },
1543
+ "files": {
1544
+ "anyOf": [
1545
+ {
1546
+ "$ref": "#/definitions/FileSet"
1547
+ },
1548
+ {
1549
+ "items": {
1550
+ "anyOf": [
1551
+ {
1552
+ "$ref": "#/definitions/FileSet"
1553
+ },
1554
+ {
1555
+ "type": "string"
1556
+ }
1557
+ ]
1558
+ },
1559
+ "type": "array"
1560
+ },
1561
+ {
1562
+ "type": [
1563
+ "null",
1564
+ "string"
1565
+ ]
1566
+ }
1567
+ ],
1568
+ "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](https://www.electron.build/configuration#directories), which specifies which files to include when copying files to create the package.\n\nDefaults to:\n```json\n[\n\"**\\/*\",\n\"!**\\/node_modules/*\\/{CHANGELOG.md,README.md,README,readme.md,readme}\",\n\"!**\\/node_modules/*\\/{test,__tests__,tests,powered-test,example,examples}\",\n\"!**\\/node_modules/*.d.ts\",\n\"!**\\/node_modules/.bin\",\n\"!**\\/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,slnx,xproj}\",\n\"!.editorconfig\",\n\"!**\\/._*\",\n\"!**\\/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}\",\n\"!**\\/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}\",\n\"!**\\/{appveyor.yml,.travis.yml,circle.yml}\",\n\"!**\\/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}\"\n]\n```\n\nDevelopment dependencies are never copied in any case. You don't need to ignore it explicitly. Hidden files are not ignored by default, but all files that should be ignored, are ignored by default.\n\nDefault pattern \\`**\\/*\\` **is not added to your custom** if some of your patterns is not ignore (i.e. not starts with `!`). `package.json` and \\`**\\/node_modules/**\\/*` (only production dependencies will be copied) is added to your custom in any case. All default ignores are added in any case — you don't need to repeat it if you configure own patterns.\n\nMay be specified in the platform options as well (e.g. `mac.fileOptions.files`, see [mac](https://www.electron.build/mac)).\n\nYou may also specify custom source and destination directories by using `FileSet` objects instead of simple glob patterns.\n\n```json\n[\n{\n\"from\": \"path/to/source\",\n\"to\": \"path/to/destination\",\n\"filter\": [\"**\\/*\", \"!foo/*.js\"]\n}\n]\n```\n\nYou can use [file macros](https://www.electron.build/file-patterns#file-macros) in the `from` and `to` fields as well. `from` and `to` can be files and you can use this to [rename](https://github.com/electron-userland/electron-builder/issues/1119) a file while packaging."
1569
+ }
1570
+ },
1571
+ "type": "object"
1572
+ },
1573
+ "FlatpakAdditionalArgs": {
1574
+ "additionalProperties": false,
1575
+ "description": "Additional arguments for the tools that build a flatpak bundle.",
1576
+ "properties": {
1577
+ "buildBundle": {
1578
+ "anyOf": [
1579
+ {
1580
+ "items": {
1581
+ "type": "string"
1582
+ },
1583
+ "type": "array"
1584
+ },
1585
+ {
1586
+ "type": "null"
1587
+ }
1588
+ ],
1589
+ "description": "Passed to `flatpak build-bundle`.\n\nExample: `[\"--runtime-repo=https://dl.flathub.org/repo/flathub.flatpakrepo\"]`"
1590
+ },
1591
+ "buildExport": {
1592
+ "anyOf": [
1593
+ {
1594
+ "items": {
1595
+ "type": "string"
1596
+ },
1597
+ "type": "array"
1598
+ },
1599
+ {
1600
+ "type": "null"
1601
+ }
1602
+ ],
1603
+ "description": "Passed to `flatpak build-export`.\n\nExample: `[\"--disable-sandbox\"]`, which runs the icon validator without its sandbox and is required where bubblewrap cannot create namespaces, typically in unprivileged containers."
1604
+ },
1605
+ "flatpakBuilder": {
1606
+ "anyOf": [
1607
+ {
1608
+ "items": {
1609
+ "type": "string"
1610
+ },
1611
+ "type": "array"
1612
+ },
1613
+ {
1614
+ "type": "null"
1615
+ }
1616
+ ],
1617
+ "description": "Passed to `flatpak-builder`, on both of its invocations (the one that builds and the one that finishes the app).\n\nExample: `[\"--disable-rofiles-fuse\"]`, which is required where FUSE is not available, typically in unprivileged containers."
1618
+ }
1619
+ },
1620
+ "type": "object"
1621
+ },
1439
1622
  "FlatpakOptions": {
1440
1623
  "additionalProperties": false,
1441
1624
  "properties": {
1625
+ "additionalArgs": {
1626
+ "anyOf": [
1627
+ {
1628
+ "$ref": "#/definitions/FlatpakAdditionalArgs"
1629
+ },
1630
+ {
1631
+ "type": "null"
1632
+ }
1633
+ ],
1634
+ "description": "*Advanced only* Additional arguments for the tools that build the bundle, by tool. Nothing is added unless it is set.\n\nA build in an unprivileged container, which has neither FUSE nor user namespaces for bubblewrap, needs `{ flatpakBuilder: [\"--disable-rofiles-fuse\"], buildExport: [\"--disable-sandbox\"] }`."
1635
+ },
1442
1636
  "artifactName": {
1443
1637
  "description": "The [artifact file name template](https://www.electron.build/configuration#artifact-file-name-template).",
1444
1638
  "type": [
@@ -1451,7 +1645,7 @@
1451
1645
  "type": "string"
1452
1646
  },
1453
1647
  "baseVersion": {
1454
- "description": "Use this specific version of the application specified in base. Defaults to `20.08`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
1648
+ "description": "Use this specific version of the application specified in base. It is not derived from `runtimeVersion`. Defaults to `26.08`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
1455
1649
  "type": "string"
1456
1650
  },
1457
1651
  "branch": {
@@ -1498,7 +1692,7 @@
1498
1692
  "description": "The executable parameters. Pass to executableName"
1499
1693
  },
1500
1694
  "files": {
1501
- "description": "Files to copy directly into the app. Should be a list of [source, dest] tuples. Source should be a relative/absolute path to a file/directory to copy into the flatpak, and dest should be the path inside the app install prefix (e.g. /share/applications/).\n\nSee [@malept/flatpak-bundler documentation](https://github.com/malept/flatpak-bundler#build-options).",
1695
+ "description": "Extra files and directories for the app, as `[source, destination]` pairs. A source is a path on the build machine; a relative one is resolved against the current working directory. A destination is a path relative to the app prefix, which is `/app` inside the sandbox: `[\"build/extra.so\", \"/lib/extra.so\"]` ends up at `/app/lib/extra.so`. A directory is merged into a destination that already exists. For a file, the destination is the path of the file itself, not of the directory that receives it. The pairs are copied in order, after the app itself, so a later pair can replace what an earlier one placed. A destination outside the app prefix (one that climbs out of it with `..`, or that leads out of it through a symlink placed by the base app, a module or an earlier pair) fails the build.",
1502
1696
  "items": {
1503
1697
  "items": [
1504
1698
  {
@@ -1515,12 +1709,35 @@
1515
1709
  "type": "array"
1516
1710
  },
1517
1711
  "finishArgs": {
1518
- "description": "An array of arguments passed to the flatpak build-finish command. Defaults to:\n```json\n[\n // Wayland/X11 Rendering\n \"--socket=wayland\",\n \"--socket=x11\",\n \"--share=ipc\",\n // Open GL\n \"--device=dri\",\n // Audio output\n \"--socket=pulseaudio\",\n // Read/write home directory access\n \"--filesystem=home\",\n // Allow communication with network\n \"--share=network\",\n // System notifications with libnotify\n \"--talk-name=org.freedesktop.Notifications\",\n]\n```\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
1712
+ "description": "An array of arguments passed to the flatpak build-finish command: the permissions of the sandboxed app. Setting it replaces the default list. The defaults are broad grants for a typical Electron app, not requirements: each one widens what code running in the app can reach, see [Finish Args](https://www.electron.build/docs/flatpak#finish-args-permissions). Defaults to:\n```json\n[\n // Wayland/X11 Rendering\n \"--socket=wayland\",\n \"--socket=x11\",\n \"--share=ipc\",\n // Open GL\n \"--device=dri\",\n // Sound: playback and recording (microphone included), MIDI and the /dev/snd devices\n \"--socket=pulseaudio\",\n // Read/write access to the Downloads folder only\n \"--filesystem=xdg-download\",\n // Allow communication with network\n \"--share=network\",\n]\n```\n\nWhen `base` is the default `org.electronjs.Electron2.BaseApp` and `baseVersion` is older than `23.08`, the default list also has `\"--talk-name=org.freedesktop.Notifications\"`, for system notifications: those base apps ship a libnotify older than 0.8, which talks to the notification daemon instead of the notification portal.\n\nBefore v27 the default list had `--filesystem=home`, read/write access to the whole home directory, instead of `--filesystem=xdg-download`, and always had `--talk-name=org.freedesktop.Notifications`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
1519
1713
  "items": {
1520
1714
  "type": "string"
1521
1715
  },
1522
1716
  "type": "array"
1523
1717
  },
1718
+ "installOrUpdateRefs": {
1719
+ "anyOf": [
1720
+ {
1721
+ "items": {
1722
+ "enum": [
1723
+ "base",
1724
+ "runtime",
1725
+ "sdk"
1726
+ ],
1727
+ "type": "string"
1728
+ },
1729
+ "type": "array"
1730
+ },
1731
+ {
1732
+ "const": "all",
1733
+ "type": "string"
1734
+ },
1735
+ {
1736
+ "type": "null"
1737
+ }
1738
+ ],
1739
+ "description": "Which of the runtime, the SDK and the base app the build installs when they are missing and updates when they are installed: `\"all\"`, or a list of `\"runtime\"`, `\"sdk\"` and `\"base\"`. A ref that is left out is neither installed nor updated: the build uses it as it is installed on the build machine, for the user or system-wide, and fails before it installs or builds anything if it is not installed. Set `[]` to build with the refs that are already installed, for example in an image that has them, without network access, or where the build user cannot update them. Defaults to `\"all\"`."
1740
+ },
1524
1741
  "license": {
1525
1742
  "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). Only plain text is supported.",
1526
1743
  "type": [
@@ -1543,7 +1760,7 @@
1543
1760
  "description": "The mime types in addition to specified in the file associations. Use it if you don't want to register a new mime type, but reuse existing."
1544
1761
  },
1545
1762
  "modules": {
1546
- "description": "An array of objects specifying the modules to be built in order.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
1763
+ "description": "An array of objects specifying the modules to be built in order. Modules are built in a bubblewrap sandbox, so they cannot be built where bubblewrap cannot create namespaces, such as an unprivileged container.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
1547
1764
  "items": {},
1548
1765
  "type": "array"
1549
1766
  },
@@ -1598,7 +1815,7 @@
1598
1815
  "type": "string"
1599
1816
  },
1600
1817
  "runtimeVersion": {
1601
- "description": "The version of the runtime that the application uses. Defaults to `20.08`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
1818
+ "description": "The version of the runtime that the application uses, which is also the version of the SDK. Defaults to `26.08`. Set it together with `baseVersion`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
1602
1819
  "type": "string"
1603
1820
  },
1604
1821
  "sdk": {
@@ -1606,7 +1823,7 @@
1606
1823
  "type": "string"
1607
1824
  },
1608
1825
  "symlinks": {
1609
- "description": "Symlinks to create in the app files. Should be a list of [target, location] symlink tuples. Target can be either a relative or absolute path inside the app install prefix, and location should be a absolute path inside the prefix to create the symlink at.\n\nSee [@malept/flatpak-bundler documentation](https://github.com/malept/flatpak-bundler#build-options).",
1826
+ "description": "Symlinks for the app, as `[target, link]` pairs. Both are paths relative to the app prefix, which is `/app` inside the sandbox: `[\"/lib/tool\", \"/bin/tool\"]` creates `/app/bin/tool`, pointing at `/app/lib/tool`. The links are created after the files are copied. A link outside the app prefix (also through a symlink that leads out of it) fails the build.",
1610
1827
  "items": {
1611
1828
  "items": [
1612
1829
  {
@@ -1630,7 +1847,7 @@
1630
1847
  ]
1631
1848
  },
1632
1849
  "useWaylandFlags": {
1633
- "description": "Whether to enable the Wayland specific flags (`--enable-features=UseOzonePlatform --ozone-platform=wayland`) in the wrapper script. These flags are only available starting with Electron version 12. Defaults to `false`.",
1850
+ "description": "Whether the wrapper script makes Electron use Wayland when the session is a Wayland one (`XDG_SESSION_TYPE` is `wayland`). The flags depend on the Electron version: none from Electron 38, which picks Wayland there by itself (the build logs that the option has no effect), `--ozone-platform=wayland` from Electron 16, and `--enable-features=UseOzonePlatform --ozone-platform=wayland` before that. Electron 12 or later is required. Defaults to `false`.",
1634
1851
  "type": "boolean"
1635
1852
  }
1636
1853
  },
@@ -1645,7 +1862,7 @@
1645
1862
  "type": "boolean"
1646
1863
  },
1647
1864
  "enableEmbeddedAsarIntegrityValidation": {
1648
- "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.",
1649
1866
  "type": "boolean"
1650
1867
  },
1651
1868
  "enableNodeCliInspectArguments": {
@@ -2178,7 +2395,7 @@
2178
2395
  }
2179
2396
  ],
2180
2397
  "default": true,
2181
- "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules that must be unpacked will be detected automatically. Use {@link AsarOptions.unpack} to specify additional files to unpack."
2398
+ "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."
2182
2399
  },
2183
2400
  "category": {
2184
2401
  "description": "The [application category](https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry).",
@@ -2285,60 +2502,6 @@
2285
2502
  "string"
2286
2503
  ]
2287
2504
  },
2288
- "extraFiles": {
2289
- "anyOf": [
2290
- {
2291
- "$ref": "#/definitions/FileSet"
2292
- },
2293
- {
2294
- "items": {
2295
- "anyOf": [
2296
- {
2297
- "$ref": "#/definitions/FileSet"
2298
- },
2299
- {
2300
- "type": "string"
2301
- }
2302
- ]
2303
- },
2304
- "type": "array"
2305
- },
2306
- {
2307
- "type": [
2308
- "null",
2309
- "string"
2310
- ]
2311
- }
2312
- ],
2313
- "description": "The same as [extraResources](#extraresources) but copy into the app's content directory (`Contents` for MacOS, root directory for Linux and Windows)."
2314
- },
2315
- "extraResources": {
2316
- "anyOf": [
2317
- {
2318
- "$ref": "#/definitions/FileSet"
2319
- },
2320
- {
2321
- "items": {
2322
- "anyOf": [
2323
- {
2324
- "$ref": "#/definitions/FileSet"
2325
- },
2326
- {
2327
- "type": "string"
2328
- }
2329
- ]
2330
- },
2331
- "type": "array"
2332
- },
2333
- {
2334
- "type": [
2335
- "null",
2336
- "string"
2337
- ]
2338
- }
2339
- ],
2340
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the project directory, when specified, copy the file or directory with matching names directly into the app's resources directory (`Contents/Resources` for MacOS, `resources` for Linux and Windows).\n\nFile patterns (and support for `from` and `to` fields) the same as for [files](#files)."
2341
- },
2342
2505
  "fileAssociations": {
2343
2506
  "anyOf": [
2344
2507
  {
@@ -2353,32 +2516,16 @@
2353
2516
  ],
2354
2517
  "description": "The file associations."
2355
2518
  },
2356
- "files": {
2519
+ "fileOptions": {
2357
2520
  "anyOf": [
2358
2521
  {
2359
- "$ref": "#/definitions/FileSet"
2360
- },
2361
- {
2362
- "items": {
2363
- "anyOf": [
2364
- {
2365
- "$ref": "#/definitions/FileSet"
2366
- },
2367
- {
2368
- "type": "string"
2369
- }
2370
- ]
2371
- },
2372
- "type": "array"
2522
+ "$ref": "#/definitions/FilesBuildOptions"
2373
2523
  },
2374
2524
  {
2375
- "type": [
2376
- "null",
2377
- "string"
2378
- ]
2525
+ "type": "null"
2379
2526
  }
2380
2527
  ],
2381
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](https://www.electron.build/configuration#directories), which specifies which files to include when copying files to create the package.\n\nDefaults to:\n```json\n[\n\"**\\/*\",\n\"!**\\/node_modules/*\\/{CHANGELOG.md,README.md,README,readme.md,readme}\",\n\"!**\\/node_modules/*\\/{test,__tests__,tests,powered-test,example,examples}\",\n\"!**\\/node_modules/*.d.ts\",\n\"!**\\/node_modules/.bin\",\n\"!**\\/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,slnx,xproj}\",\n\"!.editorconfig\",\n\"!**\\/._*\",\n\"!**\\/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}\",\n\"!**\\/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}\",\n\"!**\\/{appveyor.yml,.travis.yml,circle.yml}\",\n\"!**\\/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}\"\n]\n```\n\nDevelopment dependencies are never copied in any case. You don't need to ignore it explicitly. Hidden files are not ignored by default, but all files that should be ignored, are ignored by default.\n\nDefault pattern \\`**\\/*\\` **is not added to your custom** if some of your patterns is not ignore (i.e. not starts with `!`). `package.json` and \\`**\\/node_modules/**\\/*` (only production dependencies will be copied) is added to your custom in any case. All default ignores are added in any case — you don't need to repeat it if you configure own patterns.\n\nMay be specified in the platform options (e.g. in the [mac](https://www.electron.build/mac)).\n\nYou may also specify custom source and destination directories by using `FileSet` objects instead of simple glob patterns.\n\n```json\n[\n{\n\"from\": \"path/to/source\",\n\"to\": \"path/to/destination\",\n\"filter\": [\"**\\/*\", \"!foo/*.js\"]\n}\n]\n```\n\nYou can use [file macros](https://www.electron.build/file-patterns#file-macros) in the `from` and `to` fields as well. `from` and `to` can be files and you can use this to [rename](https://github.com/electron-userland/electron-builder/issues/1119) a file while packaging."
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."
2382
2529
  },
2383
2530
  "forceCodeSigning": {
2384
2531
  "default": false,
@@ -2533,7 +2680,7 @@
2533
2680
  "type": "null"
2534
2681
  }
2535
2682
  ],
2536
- "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` (preferred in CI) or via\n`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)."
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)."
2537
2684
  },
2538
2685
  "vendor": {
2539
2686
  "description": "The vendor. Defaults to [author](https://www.electron.build/configuration#author).",
@@ -2558,7 +2705,7 @@
2558
2705
  "type": "null"
2559
2706
  }
2560
2707
  ],
2561
- "description": "`[Desktop Actions <ActionName>]` metadata entries (name to value).\n\nConfig Example:\n```js\ndesktopActions: {\n NewWindow: {\n Name: 'New Window',\n Exec: 'app --new-window',\n }\n}\n```"
2708
+ "description": "`[Desktop Actions <ActionName>]` metadata entries (name to value).\n\nAn action name must not contain `[`, `]` or control characters. Its keys and values follow the rules of `entry`.\n\nConfig Example:\n```js\ndesktopActions: {\n NewWindow: {\n Name: 'New Window',\n Exec: 'app --new-window',\n }\n}\n```"
2562
2709
  },
2563
2710
  "entry": {
2564
2711
  "anyOf": [
@@ -2569,7 +2716,7 @@
2569
2716
  "type": "null"
2570
2717
  }
2571
2718
  ],
2572
- "description": "`[Desktop Entry]` metadata entries (name to value). Overwrites default values calculated by electron-builder"
2719
+ "description": "`[Desktop Entry]` metadata entries (name to value). Overwrites default values calculated by electron-builder\n\nKeys and values are written as given. A key must not be empty or contain `=` or a line break, and brackets are only allowed around a trailing locale of letters, digits, `-`, `_`, `.` and `@`, right after the key, such as `Name[de]`. A value must be on one line: a line break inside a value fails the build (write a newline in a string value as `\\n`), and line breaks at its end are dropped."
2573
2720
  }
2574
2721
  },
2575
2722
  "type": "object"
@@ -2823,7 +2970,12 @@
2823
2970
  }
2824
2971
  ],
2825
2972
  "default": true,
2826
- "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules that must be unpacked will be detected automatically. Use {@link AsarOptions.unpack} to specify additional files to unpack."
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."
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"
2827
2979
  },
2828
2980
  "bundleShortVersion": {
2829
2981
  "description": "The `CFBundleShortVersionString`. Do not use it unless you need to.",
@@ -2949,60 +3101,6 @@
2949
3101
  ],
2950
3102
  "description": "Extra files to put in archive. Not applicable for `tar.*`."
2951
3103
  },
2952
- "extraFiles": {
2953
- "anyOf": [
2954
- {
2955
- "$ref": "#/definitions/FileSet"
2956
- },
2957
- {
2958
- "items": {
2959
- "anyOf": [
2960
- {
2961
- "$ref": "#/definitions/FileSet"
2962
- },
2963
- {
2964
- "type": "string"
2965
- }
2966
- ]
2967
- },
2968
- "type": "array"
2969
- },
2970
- {
2971
- "type": [
2972
- "null",
2973
- "string"
2974
- ]
2975
- }
2976
- ],
2977
- "description": "The same as [extraResources](#extraresources) but copy into the app's content directory (`Contents` for MacOS, root directory for Linux and Windows)."
2978
- },
2979
- "extraResources": {
2980
- "anyOf": [
2981
- {
2982
- "$ref": "#/definitions/FileSet"
2983
- },
2984
- {
2985
- "items": {
2986
- "anyOf": [
2987
- {
2988
- "$ref": "#/definitions/FileSet"
2989
- },
2990
- {
2991
- "type": "string"
2992
- }
2993
- ]
2994
- },
2995
- "type": "array"
2996
- },
2997
- {
2998
- "type": [
2999
- "null",
3000
- "string"
3001
- ]
3002
- }
3003
- ],
3004
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the project directory, when specified, copy the file or directory with matching names directly into the app's resources directory (`Contents/Resources` for MacOS, `resources` for Linux and Windows).\n\nFile patterns (and support for `from` and `to` fields) the same as for [files](#files)."
3005
- },
3006
3104
  "fileAssociations": {
3007
3105
  "anyOf": [
3008
3106
  {
@@ -3017,32 +3115,16 @@
3017
3115
  ],
3018
3116
  "description": "The file associations."
3019
3117
  },
3020
- "files": {
3118
+ "fileOptions": {
3021
3119
  "anyOf": [
3022
3120
  {
3023
- "$ref": "#/definitions/FileSet"
3024
- },
3025
- {
3026
- "items": {
3027
- "anyOf": [
3028
- {
3029
- "$ref": "#/definitions/FileSet"
3030
- },
3031
- {
3032
- "type": "string"
3033
- }
3034
- ]
3035
- },
3036
- "type": "array"
3121
+ "$ref": "#/definitions/FilesBuildOptions"
3037
3122
  },
3038
3123
  {
3039
- "type": [
3040
- "null",
3041
- "string"
3042
- ]
3124
+ "type": "null"
3043
3125
  }
3044
3126
  ],
3045
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](https://www.electron.build/configuration#directories), which specifies which files to include when copying files to create the package.\n\nDefaults to:\n```json\n[\n\"**\\/*\",\n\"!**\\/node_modules/*\\/{CHANGELOG.md,README.md,README,readme.md,readme}\",\n\"!**\\/node_modules/*\\/{test,__tests__,tests,powered-test,example,examples}\",\n\"!**\\/node_modules/*.d.ts\",\n\"!**\\/node_modules/.bin\",\n\"!**\\/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,slnx,xproj}\",\n\"!.editorconfig\",\n\"!**\\/._*\",\n\"!**\\/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}\",\n\"!**\\/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}\",\n\"!**\\/{appveyor.yml,.travis.yml,circle.yml}\",\n\"!**\\/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}\"\n]\n```\n\nDevelopment dependencies are never copied in any case. You don't need to ignore it explicitly. Hidden files are not ignored by default, but all files that should be ignored, are ignored by default.\n\nDefault pattern \\`**\\/*\\` **is not added to your custom** if some of your patterns is not ignore (i.e. not starts with `!`). `package.json` and \\`**\\/node_modules/**\\/*` (only production dependencies will be copied) is added to your custom in any case. All default ignores are added in any case — you don't need to repeat it if you configure own patterns.\n\nMay be specified in the platform options (e.g. in the [mac](https://www.electron.build/mac)).\n\nYou may also specify custom source and destination directories by using `FileSet` objects instead of simple glob patterns.\n\n```json\n[\n{\n\"from\": \"path/to/source\",\n\"to\": \"path/to/destination\",\n\"filter\": [\"**\\/*\", \"!foo/*.js\"]\n}\n]\n```\n\nYou can use [file macros](https://www.electron.build/file-patterns#file-macros) in the `from` and `to` fields as well. `from` and `to` can be files and you can use this to [rename](https://github.com/electron-userland/electron-builder/issues/1119) a file while packaging."
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."
3046
3128
  },
3047
3129
  "forceCodeSigning": {
3048
3130
  "default": false,
@@ -3118,7 +3200,7 @@
3118
3200
  ]
3119
3201
  },
3120
3202
  "notarize": {
3121
- "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`, `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)",
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)",
3122
3204
  "type": "boolean"
3123
3205
  },
3124
3206
  "protocols": {
@@ -3282,7 +3364,7 @@
3282
3364
  "type": "null"
3283
3365
  }
3284
3366
  ],
3285
- "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` (preferred in CI) or via\n`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)."
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)."
3286
3368
  }
3287
3369
  },
3288
3370
  "type": "object"
@@ -3318,7 +3400,12 @@
3318
3400
  }
3319
3401
  ],
3320
3402
  "default": true,
3321
- "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules that must be unpacked will be detected automatically. Use {@link AsarOptions.unpack} to specify additional files to unpack."
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."
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"
3322
3409
  },
3323
3410
  "bundleShortVersion": {
3324
3411
  "description": "The `CFBundleShortVersionString`. Do not use it unless you need to.",
@@ -3422,70 +3509,16 @@
3422
3509
  "type": [
3423
3510
  "null",
3424
3511
  "string"
3425
- ]
3426
- },
3427
- "extendInfo": {
3428
- "description": "The extra entries for `Info.plist`."
3429
- },
3430
- "extraDistFiles": {
3431
- "anyOf": [
3432
- {
3433
- "items": {
3434
- "type": "string"
3435
- },
3436
- "type": "array"
3437
- },
3438
- {
3439
- "type": [
3440
- "null",
3441
- "string"
3442
- ]
3443
- }
3444
- ],
3445
- "description": "Extra files to put in archive. Not applicable for `tar.*`."
3446
- },
3447
- "extraFiles": {
3448
- "anyOf": [
3449
- {
3450
- "$ref": "#/definitions/FileSet"
3451
- },
3452
- {
3453
- "items": {
3454
- "anyOf": [
3455
- {
3456
- "$ref": "#/definitions/FileSet"
3457
- },
3458
- {
3459
- "type": "string"
3460
- }
3461
- ]
3462
- },
3463
- "type": "array"
3464
- },
3465
- {
3466
- "type": [
3467
- "null",
3468
- "string"
3469
- ]
3470
- }
3471
- ],
3472
- "description": "The same as [extraResources](#extraresources) but copy into the app's content directory (`Contents` for MacOS, root directory for Linux and Windows)."
3512
+ ]
3473
3513
  },
3474
- "extraResources": {
3514
+ "extendInfo": {
3515
+ "description": "The extra entries for `Info.plist`."
3516
+ },
3517
+ "extraDistFiles": {
3475
3518
  "anyOf": [
3476
- {
3477
- "$ref": "#/definitions/FileSet"
3478
- },
3479
3519
  {
3480
3520
  "items": {
3481
- "anyOf": [
3482
- {
3483
- "$ref": "#/definitions/FileSet"
3484
- },
3485
- {
3486
- "type": "string"
3487
- }
3488
- ]
3521
+ "type": "string"
3489
3522
  },
3490
3523
  "type": "array"
3491
3524
  },
@@ -3496,7 +3529,7 @@
3496
3529
  ]
3497
3530
  }
3498
3531
  ],
3499
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the project directory, when specified, copy the file or directory with matching names directly into the app's resources directory (`Contents/Resources` for MacOS, `resources` for Linux and Windows).\n\nFile patterns (and support for `from` and `to` fields) the same as for [files](#files)."
3532
+ "description": "Extra files to put in archive. Not applicable for `tar.*`."
3500
3533
  },
3501
3534
  "fileAssociations": {
3502
3535
  "anyOf": [
@@ -3512,32 +3545,16 @@
3512
3545
  ],
3513
3546
  "description": "The file associations."
3514
3547
  },
3515
- "files": {
3548
+ "fileOptions": {
3516
3549
  "anyOf": [
3517
3550
  {
3518
- "$ref": "#/definitions/FileSet"
3519
- },
3520
- {
3521
- "items": {
3522
- "anyOf": [
3523
- {
3524
- "$ref": "#/definitions/FileSet"
3525
- },
3526
- {
3527
- "type": "string"
3528
- }
3529
- ]
3530
- },
3531
- "type": "array"
3551
+ "$ref": "#/definitions/FilesBuildOptions"
3532
3552
  },
3533
3553
  {
3534
- "type": [
3535
- "null",
3536
- "string"
3537
- ]
3554
+ "type": "null"
3538
3555
  }
3539
3556
  ],
3540
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](https://www.electron.build/configuration#directories), which specifies which files to include when copying files to create the package.\n\nDefaults to:\n```json\n[\n\"**\\/*\",\n\"!**\\/node_modules/*\\/{CHANGELOG.md,README.md,README,readme.md,readme}\",\n\"!**\\/node_modules/*\\/{test,__tests__,tests,powered-test,example,examples}\",\n\"!**\\/node_modules/*.d.ts\",\n\"!**\\/node_modules/.bin\",\n\"!**\\/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,slnx,xproj}\",\n\"!.editorconfig\",\n\"!**\\/._*\",\n\"!**\\/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}\",\n\"!**\\/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}\",\n\"!**\\/{appveyor.yml,.travis.yml,circle.yml}\",\n\"!**\\/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}\"\n]\n```\n\nDevelopment dependencies are never copied in any case. You don't need to ignore it explicitly. Hidden files are not ignored by default, but all files that should be ignored, are ignored by default.\n\nDefault pattern \\`**\\/*\\` **is not added to your custom** if some of your patterns is not ignore (i.e. not starts with `!`). `package.json` and \\`**\\/node_modules/**\\/*` (only production dependencies will be copied) is added to your custom in any case. All default ignores are added in any case — you don't need to repeat it if you configure own patterns.\n\nMay be specified in the platform options (e.g. in the [mac](https://www.electron.build/mac)).\n\nYou may also specify custom source and destination directories by using `FileSet` objects instead of simple glob patterns.\n\n```json\n[\n{\n\"from\": \"path/to/source\",\n\"to\": \"path/to/destination\",\n\"filter\": [\"**\\/*\", \"!foo/*.js\"]\n}\n]\n```\n\nYou can use [file macros](https://www.electron.build/file-patterns#file-macros) in the `from` and `to` fields as well. `from` and `to` can be files and you can use this to [rename](https://github.com/electron-userland/electron-builder/issues/1119) a file while packaging."
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."
3541
3558
  },
3542
3559
  "forceCodeSigning": {
3543
3560
  "default": false,
@@ -3613,7 +3630,7 @@
3613
3630
  ]
3614
3631
  },
3615
3632
  "notarize": {
3616
- "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`, `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)",
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)",
3617
3634
  "type": "boolean"
3618
3635
  },
3619
3636
  "protocols": {
@@ -3777,7 +3794,7 @@
3777
3794
  "type": "null"
3778
3795
  }
3779
3796
  ],
3780
- "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` (preferred in CI) or via\n`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)."
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)."
3781
3798
  }
3782
3799
  },
3783
3800
  "type": "object"
@@ -3795,7 +3812,7 @@
3795
3812
  },
3796
3813
  "buildResources": {
3797
3814
  "default": "build",
3798
- "description": "The directory that contains static build resources (icons, background images, license files,\ncustom NSIS scripts, etc.) that electron-builder reads during packaging.\n\n**Build resources are not copied into the packaged app.** If you need runtime access to a\nfile (e.g. a tray icon), include it explicitly via the `files` option:\n```json\n{ \"files\": [\"**\\/*\", \"build/icon.*\"] }\n```",
3815
+ "description": "The directory that contains static build resources (icons, background images, license files,\ncustom NSIS scripts, etc.) that electron-builder reads during packaging.\n\n**Build resources are not copied into the packaged app.** If you need runtime access to a\nfile (e.g. a tray icon), include it explicitly via the `fileOptions.files` option:\n```json\n{ \"fileOptions\": { \"files\": [\"**\\/*\", \"build/icon.*\"] } }\n```",
3799
3816
  "type": [
3800
3817
  "null",
3801
3818
  "string"
@@ -4447,7 +4464,7 @@
4447
4464
  },
4448
4465
  "differentialPackage": {
4449
4466
  "default": true,
4450
- "description": "Marks the package as built with differential download support for the update server, and selects how the\napp package is compressed:\n\n- `false` — no differential download support.\n- `\"store-asar\"` — differential-aware, with the app's `resources/app.asar` stored uncompressed (7-Zip\n `Copy`) inside the package. The differential updater diffs the *compressed* package with a\n content-defined blockmap, and the asar is a single compressed member — so any change to app code\n re-downloads the entire compressed asar (~100% of the member; its header rewrite alone diverges every\n block). Storing it keeps unchanged regions byte-identical between releases, making the delta\n proportional to what actually changed (measured on a ~32 MB asar: a one-line source change cost 0.2%\n instead of 100%). The stored asar's byte range is also chunked with finer content-defined blocks\n (4/8/16 KiB instead of the 8/16/32 KiB used for the rest of the installer), so a small change costs\n proportionally fewer bytes still. Trade-off: the installer and full package grow by roughly what\n compressing the asar saved. Without an `app.asar` (e.g. `asar` is disabled) there is nothing to store,\n so it behaves like `true`. Upgrading from an electron-builder without the finer chunking changes the\n block boundaries once: the first differential update from an installer built before it re-downloads\n close to the whole asar, and updates between installers built with it are proportional again.\n- anything else (`true`, `\"compressed\"`, unset) — differential-aware, whole package compressed.",
4467
+ "description": "Marks the package as built with differential download support for the update server, and selects how the\napp package is compressed:\n\n- `false` — no differential download support.\n- `\"store-asar\"` — differential-aware, with the app's `resources/app.asar` stored uncompressed (7-Zip\n `Copy`) inside the package. The differential updater diffs the *compressed* package with a\n content-defined blockmap, and the asar is a single compressed member — so any change to app code\n re-downloads the entire compressed asar (~100% of the member; its header rewrite alone diverges every\n block). Storing it keeps unchanged regions byte-identical between releases, making the delta\n proportional to what actually changed (measured on a ~32 MB asar: a one-line source change cost 0.2%\n instead of 100%). The stored asar's byte range is also chunked with finer content-defined blocks\n (4/8/16 KiB instead of the 8/16/32 KiB used for the rest of the installer), so a small change costs\n proportionally fewer bytes still. Trade-off: the installer and full package grow by roughly what\n compressing the asar saved. Without an `app.asar` (e.g. `asar` is disabled) there is nothing to store,\n so it behaves like `true`. Upgrading from an electron-builder without the finer chunking changes the\n block boundaries once: the first differential update from an installer built before it re-downloads\n close to the whole asar, and updates between installers built with it are proportional again. Pair it\n with `asar.contentAlignment` (e.g. `512`) so that a change which grows a file does not shift every\n later file's offset in the asar header.\n- anything else (`true`, `\"compressed\"`, unset) — differential-aware, whole package compressed.",
4451
4468
  "enum": [
4452
4469
  "compressed",
4453
4470
  false,
@@ -4482,7 +4499,7 @@
4482
4499
  ]
4483
4500
  }
4484
4501
  ],
4485
- "description": "The path to NSIS include script to customize installer, or an array of such paths to include multiple scripts. Defaults to `build/installer.nsh`. See [Custom NSIS script](#custom-nsis-script).\n\nEach path is resolved relative to the [build resources directory](https://www.electron.build/docs/configuration#buildresources) first and then relative to the project directory.\nWhen an array is provided, all scripts are included in the specified order."
4502
+ "description": "The path to NSIS include script to customize installer, or an array of such paths to include multiple scripts. Defaults to `build/installer.nsh`. See [Custom NSIS script](#custom-nsis-script).\n\nEach path is resolved relative to the [build resources directory](https://www.electron.build/docs/configuration#directories) first and then relative to the project directory.\nWhen an array is provided, all scripts are included in the specified order."
4486
4503
  },
4487
4504
  "installerDebugLogging": {
4488
4505
  "default": false,
@@ -4807,7 +4824,7 @@
4807
4824
  },
4808
4825
  "differentialPackage": {
4809
4826
  "default": true,
4810
- "description": "Marks the package as built with differential download support for the update server, and selects how the\napp package is compressed:\n\n- `false` — no differential download support.\n- `\"store-asar\"` — differential-aware, with the app's `resources/app.asar` stored uncompressed (7-Zip\n `Copy`) inside the package. The differential updater diffs the *compressed* package with a\n content-defined blockmap, and the asar is a single compressed member — so any change to app code\n re-downloads the entire compressed asar (~100% of the member; its header rewrite alone diverges every\n block). Storing it keeps unchanged regions byte-identical between releases, making the delta\n proportional to what actually changed (measured on a ~32 MB asar: a one-line source change cost 0.2%\n instead of 100%). The stored asar's byte range is also chunked with finer content-defined blocks\n (4/8/16 KiB instead of the 8/16/32 KiB used for the rest of the installer), so a small change costs\n proportionally fewer bytes still. Trade-off: the installer and full package grow by roughly what\n compressing the asar saved. Without an `app.asar` (e.g. `asar` is disabled) there is nothing to store,\n so it behaves like `true`. Upgrading from an electron-builder without the finer chunking changes the\n block boundaries once: the first differential update from an installer built before it re-downloads\n close to the whole asar, and updates between installers built with it are proportional again.\n- anything else (`true`, `\"compressed\"`, unset) — differential-aware, whole package compressed.",
4827
+ "description": "Marks the package as built with differential download support for the update server, and selects how the\napp package is compressed:\n\n- `false` — no differential download support.\n- `\"store-asar\"` — differential-aware, with the app's `resources/app.asar` stored uncompressed (7-Zip\n `Copy`) inside the package. The differential updater diffs the *compressed* package with a\n content-defined blockmap, and the asar is a single compressed member — so any change to app code\n re-downloads the entire compressed asar (~100% of the member; its header rewrite alone diverges every\n block). Storing it keeps unchanged regions byte-identical between releases, making the delta\n proportional to what actually changed (measured on a ~32 MB asar: a one-line source change cost 0.2%\n instead of 100%). The stored asar's byte range is also chunked with finer content-defined blocks\n (4/8/16 KiB instead of the 8/16/32 KiB used for the rest of the installer), so a small change costs\n proportionally fewer bytes still. Trade-off: the installer and full package grow by roughly what\n compressing the asar saved. Without an `app.asar` (e.g. `asar` is disabled) there is nothing to store,\n so it behaves like `true`. Upgrading from an electron-builder without the finer chunking changes the\n block boundaries once: the first differential update from an installer built before it re-downloads\n close to the whole asar, and updates between installers built with it are proportional again. Pair it\n with `asar.contentAlignment` (e.g. `512`) so that a change which grows a file does not shift every\n later file's offset in the asar header.\n- anything else (`true`, `\"compressed\"`, unset) — differential-aware, whole package compressed.",
4811
4828
  "enum": [
4812
4829
  "compressed",
4813
4830
  false,
@@ -4842,7 +4859,7 @@
4842
4859
  ]
4843
4860
  }
4844
4861
  ],
4845
- "description": "The path to NSIS include script to customize installer, or an array of such paths to include multiple scripts. Defaults to `build/installer.nsh`. See [Custom NSIS script](#custom-nsis-script).\n\nEach path is resolved relative to the [build resources directory](https://www.electron.build/docs/configuration#buildresources) first and then relative to the project directory.\nWhen an array is provided, all scripts are included in the specified order."
4862
+ "description": "The path to NSIS include script to customize installer, or an array of such paths to include multiple scripts. Defaults to `build/installer.nsh`. See [Custom NSIS script](#custom-nsis-script).\n\nEach path is resolved relative to the [build resources directory](https://www.electron.build/docs/configuration#directories) first and then relative to the project directory.\nWhen an array is provided, all scripts are included in the specified order."
4846
4863
  },
4847
4864
  "installerDebugLogging": {
4848
4865
  "default": false,
@@ -6071,7 +6088,7 @@
6071
6088
  ]
6072
6089
  }
6073
6090
  ],
6074
- "description": "The path to NSIS include script to customize the portable launcher, or an array of such paths to include multiple scripts. See [Custom NSIS script](#custom-nsis-script).\n\nEach path is resolved relative to the [build resources directory](https://www.electron.build/docs/configuration#buildresources) first and then relative to the project directory.\nWhen an array is provided, all scripts are included in the specified order.\n\nUnlike the installer targets, the portable target does **not** fall back to `build/installer.nsh` — a custom script is only included when this option is explicitly set."
6091
+ "description": "The path to NSIS include script to customize the portable launcher, or an array of such paths to include multiple scripts. See [Custom NSIS script](#custom-nsis-script).\n\nEach path is resolved relative to the [build resources directory](https://www.electron.build/docs/configuration#directories) first and then relative to the project directory.\nWhen an array is provided, all scripts are included in the specified order.\n\nUnlike the installer targets, the portable target does **not** fall back to `build/installer.nsh` — a custom script is only included when this option is explicitly set."
6075
6092
  },
6076
6093
  "publish": {
6077
6094
  "anyOf": [
@@ -6671,9 +6688,88 @@
6671
6688
  },
6672
6689
  "type": "object"
6673
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
+ },
6674
6770
  "S3Options": {
6675
6771
  "additionalProperties": false,
6676
- "description": "[Amazon S3](https://aws.amazon.com/s3/) options.\nAWS credentials are required, please see [getting your credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-your-credentials.html).\nTo set credentials define `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [environment variables](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-environment.html) directly,\nor use [~/.aws/credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html) file,\nor use [~/.aws/config](https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html) file. For the last method to work you will also need to define `AWS_SDK_LOAD_CONFIG=1` environment variable.\n\nExample configuration:\n\n```json\n{\n\"build\":\n \"publish\": {\n \"provider\": \"s3\",\n \"bucket\": \"bucket-name\"\n }\n}\n}\n```",
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```",
6677
6773
  "properties": {
6678
6774
  "accelerate": {
6679
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",
@@ -6695,6 +6791,17 @@
6695
6791
  "default": "public-read",
6696
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)."
6697
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
+ },
6698
6805
  "bucket": {
6699
6806
  "description": "The bucket name.",
6700
6807
  "type": "string"
@@ -6956,7 +7063,7 @@
6956
7063
  }
6957
7064
  ],
6958
7065
  "default": "strict",
6959
- "description": "The type of [confinement](https://snapcraft.io/docs/reference/confinement) supported by the snap."
7066
+ "description": "The type of [confinement](https://snapcraft.io/docs/snap-confinement) supported by the snap."
6960
7067
  },
6961
7068
  "description": {
6962
7069
  "description": "As [description](https://www.electron.build/configuration#description) from application package.json, but allows you to specify different for Linux.",
@@ -7016,7 +7123,7 @@
7016
7123
  "type": "null"
7017
7124
  }
7018
7125
  ],
7019
- "description": "[Snapcraft extensions](https://snapcraft.io/docs/snapcraft-extensions) to apply to the app.\nDefaults to `[\"gnome\"]` in normal builds (recommended for Electron apps on Ubuntu 24.04+).\nAutomatically set to `[]` in `useDestructiveMode` builds, where the gnome extension is\nincompatible. Explicitly including `\"gnome\"` while `useDestructiveMode` is set will throw.\nSee: https://snapcraft.io/docs/gnome-extension"
7126
+ "description": "[Snapcraft extensions](https://snapcraft.io/docs/snapcraft-extensions) to apply to the app.\nDefaults to `[\"gnome\"]` in normal builds (recommended for Electron apps on Ubuntu 24.04+).\nAutomatically set to `[]` in `useDestructiveMode` builds, where the gnome extension is\nincompatible. Explicitly including `\"gnome\"` while `useDestructiveMode` is set will throw.\nSee: https://documentation.ubuntu.com/snapcraft/stable/reference/extensions/gnome-extension/"
7020
7127
  },
7021
7128
  "forceX11": {
7022
7129
  "description": "Set to `true` to force X11 by injecting `--ozone-platform=x11` into the snap command line.\nWhen unset or `false`, no flag is injected and native Wayland is allowed.\nUnlike the legacy `snap.allowNativeWayland`, there is no electron-version-based default here —\ncore24 always allows Wayland unless this is explicitly `true`.",
@@ -7043,7 +7150,7 @@
7043
7150
  },
7044
7151
  "hooks": {
7045
7152
  "default": "build/snap-hooks",
7046
- "description": "Directory containing [snap hooks](https://snapcraft.io/docs/snap-hooks), relative to\nthe build resources directory.",
7153
+ "description": "Directory containing [snap hooks](https://snapcraft.io/docs/supported-snap-hooks), relative to\nthe build resources directory.",
7047
7154
  "type": [
7048
7155
  "null",
7049
7156
  "string"
@@ -7096,7 +7203,7 @@
7096
7203
  "type": "null"
7097
7204
  }
7098
7205
  ],
7099
- "description": "[Plugs](https://snapcraft.io/docs/reference/interfaces) (consumed interfaces) for the app.\nWhen the `gnome` extension is active, content-snap plugs (themes, GNOME platform, GPU)\nare added automatically — only list custom plugs here.\nWithout any extension, defaults to the standard Electron plug set.\n\nSupports descriptor objects for plugs with attributes:\n```json\n[{ \"browser-sandbox\": { \"interface\": \"browser-support\", \"allow-sandbox\": true } }]\n```"
7206
+ "description": "[Plugs](https://snapcraft.io/docs/reference/interfaces) (consumed interfaces) for the app.\n\nWhen unset, electron-builder declares its default plug set: `browser-support` (without\n`allow-sandbox`, so the app is launched with `--no-sandbox`), plus — unless the `gnome` extension\nsupplies them — the app-level plugs `[\"desktop\", \"desktop-legacy\", \"home\", \"x11\", \"wayland\",\n\"unity7\", \"network\", \"gsettings\", \"audio-playback\", \"pulseaudio\", \"opengl\"]` and, for strict builds\nthat are not host/destructive-mode, the content-snap plugs `gtk-3-themes`, `icon-themes`,\n`sound-themes`, `gnome-46-2404` and `gpu-2404`.\n\nInclude `\"default\"` to add to that set instead of replacing it: the result is the full default\nset (the app-level plugs above plus everything the build flavor declares on its own) together with\nyour other entries, deduplicated by plug name. A descriptor object named like a default plug\noverrides that plug's attributes. A `null` descriptor resets a default plug named like its interface\n(`browser-support`) to the snapd defaults, and removes a default content-snap plug (`gtk-3-themes`,\n`icon-themes`, `sound-themes`, `gnome-46-2404`, `gpu-2404`) from the snap; the default `layout`\nbinds into `gnome-46-2404` and `gpu-2404`, so set `layout` too when removing those.\nWithout `\"default\"`, the list replaces the defaults entirely.\n```json\n[\"default\", \"camera\", { \"home\": { \"read\": \"all\" } }]\n```\n\nSupports descriptor objects for plugs with attributes:\n```json\n[{ \"dot-config-app\": { \"interface\": \"personal-files\", \"write\": [\"$HOME/.config/app\"] } }]\n```\nThe Snap Store reserves `browser-support`'s `allow-sandbox` attribute for vetted publishers and\nrejects other uploads that request it; electron-builder warns when it is set."
7100
7207
  },
7101
7208
  "publish": {
7102
7209
  "anyOf": [
@@ -7208,7 +7315,7 @@
7208
7315
  ]
7209
7316
  },
7210
7317
  "title": {
7211
- "description": "An optional display title (may contain uppercase letters and spaces). Defaults to `productName`.\nSee [snap format](https://snapcraft.io/docs/snap-format).",
7318
+ "description": "An optional display title (may contain uppercase letters and spaces). Defaults to `productName`.\nSee [snap format](https://snapcraft.io/docs/the-snap-format).",
7212
7319
  "type": [
7213
7320
  "null",
7214
7321
  "string"
@@ -7359,7 +7466,7 @@
7359
7466
  "type": "null"
7360
7467
  }
7361
7468
  ],
7362
- "description": "Compression algorithm for the snap SquashFS image.\n- `xz` — smaller file, slower decompression (good for distribution).\n- `lzo` — larger file, faster decompression (good for development iteration).\nOmit to use snapcraft's default (`xz`).\n\nWhen not set, `linux.compression` is mapped automatically:\n`\"store\"` → `\"lzo\"`, `\"maximum\"` → `\"xz\"`, `\"normal\"` → snapcraft default.\nExplicitly setting this field always overrides the mapped value."
7469
+ "description": "Compression algorithm for the snap SquashFS image.\n- `xz` — smaller file, slower decompression (good for distribution).\n- `lzo` — larger file, faster decompression (good for development iteration).\nOmit to use snapcraft's default (`xz`).\n\nWhen not set, `linux.compression` is mapped automatically:\n`\"store\"` → `\"lzo\"`, `\"maximum\"` → `\"xz\"`, `\"normal\"` → snapcraft default.\nExplicitly setting this field always overrides the mapped value.\n\nTemplate app builds (`useTemplateApp`) pack the image with the `mksquashfs` from the `toolsets.appimage` bundle. `lzo` requires a toolset other than the legacy `\"0.0.0\"`, whose `mksquashfs` supports only `gzip` and `xz`."
7363
7470
  },
7364
7471
  "confinement": {
7365
7472
  "anyOf": [
@@ -7376,7 +7483,7 @@
7376
7483
  }
7377
7484
  ],
7378
7485
  "default": "strict",
7379
- "description": "The type of [snap confinement](https://snapcraft.io/docs/reference/confinement).\n- `strict` — recommended; the snap runs in a fully isolated sandbox.\n- `devmode` — sandbox violations are logged but not enforced; for development only.\n- `classic` — no confinement; equivalent to a traditionally packaged application.\n Requires Snap Store approval before publishing."
7486
+ "description": "The type of [snap confinement](https://snapcraft.io/docs/snap-confinement).\n- `strict` — recommended; the snap runs in a fully isolated sandbox.\n- `devmode` — sandbox violations are logged but not enforced; for development only.\n- `classic` — no confinement; equivalent to a traditionally packaged application.\n Requires Snap Store approval before publishing."
7380
7487
  },
7381
7488
  "description": {
7382
7489
  "description": "As [description](https://www.electron.build/configuration#description) from application package.json, but allows you to specify different for Linux.",
@@ -7442,7 +7549,7 @@
7442
7549
  },
7443
7550
  "hooks": {
7444
7551
  "default": "build/snap-hooks",
7445
- "description": "Directory containing [snap hooks](https://snapcraft.io/docs/snap-hooks), relative to\nthe build resources directory (`build/`).",
7552
+ "description": "Directory containing [snap hooks](https://snapcraft.io/docs/supported-snap-hooks), relative to\nthe build resources directory (`build/`).",
7446
7553
  "type": [
7447
7554
  "null",
7448
7555
  "string"
@@ -7495,7 +7602,7 @@
7495
7602
  "type": "null"
7496
7603
  }
7497
7604
  ],
7498
- "description": "[Plugs](https://snapcraft.io/docs/reference/interfaces) (consumed interfaces) to declare\nfor the app entry point.\nDefaults to `[\"desktop\", \"desktop-legacy\", \"home\", \"x11\", \"wayland\", \"unity7\",\n\"browser-support\", \"network\", \"gsettings\", \"audio-playback\", \"pulseaudio\", \"opengl\"]`.\n\nUse `\"default\"` in the list to keep the defaults and append extras:\n`[\"default\", \"camera\"]` adds `camera` to the standard set.\n\nTo configure plug attributes (e.g. `allow-sandbox` for Chromium's internal sandbox),\nuse a descriptor object:\n```json\n[\n { \"browser-sandbox\": { \"interface\": \"browser-support\", \"allow-sandbox\": true } },\n \"another-simple-plug-name\"\n]\n```"
7605
+ "description": "[Plugs](https://snapcraft.io/docs/reference/interfaces) (consumed interfaces) to declare\nfor the app entry point.\nDefaults to `[\"desktop\", \"desktop-legacy\", \"home\", \"x11\", \"wayland\", \"unity7\",\n\"browser-support\", \"network\", \"gsettings\", \"audio-playback\", \"pulseaudio\", \"opengl\"]`.\n\nUse `\"default\"` in the list to keep the defaults and append extras:\n`[\"default\", \"camera\"]` adds `camera` to the standard set.\n\nTo configure plug attributes, use a descriptor object:\n```json\n[\n { \"browser-sandbox\": { \"interface\": \"browser-support\", \"allow-sandbox\": true } },\n \"another-simple-plug-name\"\n]\n```\nNote that the Snap Store reserves `allow-sandbox` (which keeps Chromium's internal sandbox) for\nvetted publishers and rejects other uploads that request it; electron-builder warns when it is set."
7499
7606
  },
7500
7607
  "publish": {
7501
7608
  "anyOf": [
@@ -7582,7 +7689,7 @@
7582
7689
  "description": "Ubuntu packages to **stage** alongside the app (equivalent to `depends` for deb).\nDefaults to `[\"libnspr4\", \"libnss3\", \"libxss1\", \"libappindicator3-1\", \"libsecret-1-0\"]`.\n\nUse the `\"default\"` keyword to extend the default list:\n`[\"default\", \"my-extra-lib\"]` appends `my-extra-lib` to the defaults."
7583
7690
  },
7584
7691
  "summary": {
7585
- "description": "A short summary of the snap (max 78 characters).\nDefaults to [productName](./configuration.md#productName).",
7692
+ "description": "A short summary of the snap (max 78 characters).\nDefaults to [productName](https://www.electron.build/docs/configuration#productname).",
7586
7693
  "type": [
7587
7694
  "null",
7588
7695
  "string"
@@ -7596,7 +7703,7 @@
7596
7703
  ]
7597
7704
  },
7598
7705
  "title": {
7599
- "description": "Display title for the snap (may contain uppercase letters and spaces).\nDefaults to `productName`.\nSee [snap format](https://snapcraft.io/docs/snap-format).",
7706
+ "description": "Display title for the snap (may contain uppercase letters and spaces).\nDefaults to `productName`.\nSee [snap format](https://snapcraft.io/docs/the-snap-format).",
7600
7707
  "type": [
7601
7708
  "null",
7602
7709
  "string"
@@ -8351,7 +8458,7 @@
8351
8458
  }
8352
8459
  ],
8353
8460
  "default": "latest",
8354
- "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.\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\nReleases: https://github.com/electron-userland/electron-builder-binaries/blob/master/packages/appimage/CHANGELOG.md"
8461
+ "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"
8355
8462
  },
8356
8463
  "fpm": {
8357
8464
  "anyOf": [
@@ -8465,13 +8572,14 @@
8465
8572
  "1.1.1",
8466
8573
  "1.2.1",
8467
8574
  "1.3.0",
8575
+ "1.3.1",
8468
8576
  "latest"
8469
8577
  ],
8470
8578
  "type": "string"
8471
8579
  }
8472
8580
  ],
8473
8581
  "default": "latest",
8474
- "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"
8475
8583
  },
8476
8584
  "wine": {
8477
8585
  "anyOf": [
@@ -8519,6 +8627,14 @@
8519
8627
  "UpdateManifestSigningOptions": {
8520
8628
  "additionalProperties": false,
8521
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
+ },
8522
8638
  "publicKey": {
8523
8639
  "anyOf": [
8524
8640
  {
@@ -8534,7 +8650,7 @@
8534
8650
  ]
8535
8651
  }
8536
8652
  ],
8537
- "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`."
8538
8654
  },
8539
8655
  "signingKey": {
8540
8656
  "anyOf": [
@@ -8551,7 +8667,7 @@
8551
8667
  ]
8552
8668
  }
8553
8669
  ],
8554
- "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."
8555
8671
  },
8556
8672
  "signingKeyFile": {
8557
8673
  "anyOf": [
@@ -8658,7 +8774,7 @@
8658
8774
  }
8659
8775
  ],
8660
8776
  "default": true,
8661
- "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules that must be unpacked will be detected automatically. Use {@link AsarOptions.unpack} to specify additional files to unpack."
8777
+ "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."
8662
8778
  },
8663
8779
  "compression": {
8664
8780
  "anyOf": [
@@ -8726,60 +8842,6 @@
8726
8842
  "string"
8727
8843
  ]
8728
8844
  },
8729
- "extraFiles": {
8730
- "anyOf": [
8731
- {
8732
- "$ref": "#/definitions/FileSet"
8733
- },
8734
- {
8735
- "items": {
8736
- "anyOf": [
8737
- {
8738
- "$ref": "#/definitions/FileSet"
8739
- },
8740
- {
8741
- "type": "string"
8742
- }
8743
- ]
8744
- },
8745
- "type": "array"
8746
- },
8747
- {
8748
- "type": [
8749
- "null",
8750
- "string"
8751
- ]
8752
- }
8753
- ],
8754
- "description": "The same as [extraResources](#extraresources) but copy into the app's content directory (`Contents` for MacOS, root directory for Linux and Windows)."
8755
- },
8756
- "extraResources": {
8757
- "anyOf": [
8758
- {
8759
- "$ref": "#/definitions/FileSet"
8760
- },
8761
- {
8762
- "items": {
8763
- "anyOf": [
8764
- {
8765
- "$ref": "#/definitions/FileSet"
8766
- },
8767
- {
8768
- "type": "string"
8769
- }
8770
- ]
8771
- },
8772
- "type": "array"
8773
- },
8774
- {
8775
- "type": [
8776
- "null",
8777
- "string"
8778
- ]
8779
- }
8780
- ],
8781
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the project directory, when specified, copy the file or directory with matching names directly into the app's resources directory (`Contents/Resources` for MacOS, `resources` for Linux and Windows).\n\nFile patterns (and support for `from` and `to` fields) the same as for [files](#files)."
8782
- },
8783
8845
  "fileAssociations": {
8784
8846
  "anyOf": [
8785
8847
  {
@@ -8794,32 +8856,16 @@
8794
8856
  ],
8795
8857
  "description": "The file associations."
8796
8858
  },
8797
- "files": {
8859
+ "fileOptions": {
8798
8860
  "anyOf": [
8799
8861
  {
8800
- "$ref": "#/definitions/FileSet"
8801
- },
8802
- {
8803
- "items": {
8804
- "anyOf": [
8805
- {
8806
- "$ref": "#/definitions/FileSet"
8807
- },
8808
- {
8809
- "type": "string"
8810
- }
8811
- ]
8812
- },
8813
- "type": "array"
8862
+ "$ref": "#/definitions/FilesBuildOptions"
8814
8863
  },
8815
8864
  {
8816
- "type": [
8817
- "null",
8818
- "string"
8819
- ]
8865
+ "type": "null"
8820
8866
  }
8821
8867
  ],
8822
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](https://www.electron.build/configuration#directories), which specifies which files to include when copying files to create the package.\n\nDefaults to:\n```json\n[\n\"**\\/*\",\n\"!**\\/node_modules/*\\/{CHANGELOG.md,README.md,README,readme.md,readme}\",\n\"!**\\/node_modules/*\\/{test,__tests__,tests,powered-test,example,examples}\",\n\"!**\\/node_modules/*.d.ts\",\n\"!**\\/node_modules/.bin\",\n\"!**\\/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,slnx,xproj}\",\n\"!.editorconfig\",\n\"!**\\/._*\",\n\"!**\\/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}\",\n\"!**\\/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}\",\n\"!**\\/{appveyor.yml,.travis.yml,circle.yml}\",\n\"!**\\/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}\"\n]\n```\n\nDevelopment dependencies are never copied in any case. You don't need to ignore it explicitly. Hidden files are not ignored by default, but all files that should be ignored, are ignored by default.\n\nDefault pattern \\`**\\/*\\` **is not added to your custom** if some of your patterns is not ignore (i.e. not starts with `!`). `package.json` and \\`**\\/node_modules/**\\/*` (only production dependencies will be copied) is added to your custom in any case. All default ignores are added in any case — you don't need to repeat it if you configure own patterns.\n\nMay be specified in the platform options (e.g. in the [mac](https://www.electron.build/mac)).\n\nYou may also specify custom source and destination directories by using `FileSet` objects instead of simple glob patterns.\n\n```json\n[\n{\n\"from\": \"path/to/source\",\n\"to\": \"path/to/destination\",\n\"filter\": [\"**\\/*\", \"!foo/*.js\"]\n}\n]\n```\n\nYou can use [file macros](https://www.electron.build/file-patterns#file-macros) in the `from` and `to` fields as well. `from` and `to` can be files and you can use this to [rename](https://github.com/electron-userland/electron-builder/issues/1119) a file while packaging."
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."
8823
8869
  },
8824
8870
  "forceCodeSigning": {
8825
8871
  "default": false,
@@ -9007,11 +9053,11 @@
9007
9053
  "type": "null"
9008
9054
  }
9009
9055
  ],
9010
- "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` (preferred in CI) or via\n`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)."
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)."
9011
9057
  },
9012
9058
  "verifyUpdateCodeSignature": {
9013
9059
  "default": true,
9014
- "description": "Whether the NSIS auto-updater should verify the Authenticode signature of a downloaded update\nbefore installing it. This is a **runtime** check performed by your app via electron-updater,\nnot a build-time check.\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\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.",
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.",
9015
9061
  "type": "boolean"
9016
9062
  }
9017
9063
  },
@@ -9112,7 +9158,7 @@
9112
9158
  }
9113
9159
  ],
9114
9160
  "default": "['sha1', 'sha256']",
9115
- "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 (a single hash is used) and AppX/MSIX\nis always `sha256` only."
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."
9116
9162
  },
9117
9163
  "timeStampServer": {
9118
9164
  "default": "http://timestamp.digicert.com",
@@ -9217,7 +9263,7 @@
9217
9263
  }
9218
9264
  ],
9219
9265
  "default": "['sha1', 'sha256']",
9220
- "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 (a single hash is used) and AppX/MSIX\nis always `sha256` only."
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."
9221
9267
  },
9222
9268
  "timeStampServer": {
9223
9269
  "default": "http://timestamp.digicert.com",
@@ -9335,7 +9381,7 @@
9335
9381
  }
9336
9382
  ],
9337
9383
  "default": "['sha1', 'sha256']",
9338
- "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 (a single hash is used) and AppX/MSIX\nis always `sha256` only."
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."
9339
9385
  },
9340
9386
  "timeStampServer": {
9341
9387
  "default": "http://timestamp.digicert.com",
@@ -9536,7 +9582,7 @@
9536
9582
  }
9537
9583
  ],
9538
9584
  "default": true,
9539
- "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules that must be unpacked will be detected automatically. Use {@link AsarOptions.unpack} to specify additional files to unpack."
9585
+ "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."
9540
9586
  },
9541
9587
  "beforeBuild": {
9542
9588
  "anyOf": [
@@ -9766,63 +9812,9 @@
9766
9812
  ],
9767
9813
  "description": "One or more configuration presets or file paths to merge into this configuration.\n\nAccepts a string or array of strings, each of which is either:\n- A built-in preset name (`\"react-cra\"` is the only currently supported value).\n- A path to a JS/JSON config file relative to the project directory.\n\nConfigs are merged left-to-right using a deep-assign strategy that properly combines `files`\nglob patterns rather than replacing them.\n\nThe `react-cra` preset is applied automatically when `react-scripts` is found in\n`dependencies`. Set `extends: null` to opt out of automatic preset detection."
9768
9814
  },
9769
- "extraFiles": {
9770
- "anyOf": [
9771
- {
9772
- "$ref": "#/definitions/FileSet"
9773
- },
9774
- {
9775
- "items": {
9776
- "anyOf": [
9777
- {
9778
- "$ref": "#/definitions/FileSet"
9779
- },
9780
- {
9781
- "type": "string"
9782
- }
9783
- ]
9784
- },
9785
- "type": "array"
9786
- },
9787
- {
9788
- "type": [
9789
- "null",
9790
- "string"
9791
- ]
9792
- }
9793
- ],
9794
- "description": "The same as [extraResources](#extraresources) but copy into the app's content directory (`Contents` for MacOS, root directory for Linux and Windows)."
9795
- },
9796
9815
  "extraMetadata": {
9797
9816
  "description": "Additional properties to deep-merge into the app's `package.json` at build time.\n\nUseful for injecting build-time metadata (e.g., a git commit hash or CI build URL) that\nshould be readable at runtime via `require('./package.json')` or `import.meta.url`."
9798
9817
  },
9799
- "extraResources": {
9800
- "anyOf": [
9801
- {
9802
- "$ref": "#/definitions/FileSet"
9803
- },
9804
- {
9805
- "items": {
9806
- "anyOf": [
9807
- {
9808
- "$ref": "#/definitions/FileSet"
9809
- },
9810
- {
9811
- "type": "string"
9812
- }
9813
- ]
9814
- },
9815
- "type": "array"
9816
- },
9817
- {
9818
- "type": [
9819
- "null",
9820
- "string"
9821
- ]
9822
- }
9823
- ],
9824
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the project directory, when specified, copy the file or directory with matching names directly into the app's resources directory (`Contents/Resources` for MacOS, `resources` for Linux and Windows).\n\nFile patterns (and support for `from` and `to` fields) the same as for [files](#files)."
9825
- },
9826
9818
  "fileAssociations": {
9827
9819
  "anyOf": [
9828
9820
  {
@@ -9837,32 +9829,16 @@
9837
9829
  ],
9838
9830
  "description": "The file associations."
9839
9831
  },
9840
- "files": {
9832
+ "fileOptions": {
9841
9833
  "anyOf": [
9842
9834
  {
9843
- "$ref": "#/definitions/FileSet"
9835
+ "$ref": "#/definitions/FilesBuildOptions"
9844
9836
  },
9845
9837
  {
9846
- "items": {
9847
- "anyOf": [
9848
- {
9849
- "$ref": "#/definitions/FileSet"
9850
- },
9851
- {
9852
- "type": "string"
9853
- }
9854
- ]
9855
- },
9856
- "type": "array"
9857
- },
9858
- {
9859
- "type": [
9860
- "null",
9861
- "string"
9862
- ]
9838
+ "type": "null"
9863
9839
  }
9864
9840
  ],
9865
- "description": "A [glob patterns](https://www.electron.build/file-patterns) relative to the [app directory](https://www.electron.build/configuration#directories), which specifies which files to include when copying files to create the package.\n\nDefaults to:\n```json\n[\n\"**\\/*\",\n\"!**\\/node_modules/*\\/{CHANGELOG.md,README.md,README,readme.md,readme}\",\n\"!**\\/node_modules/*\\/{test,__tests__,tests,powered-test,example,examples}\",\n\"!**\\/node_modules/*.d.ts\",\n\"!**\\/node_modules/.bin\",\n\"!**\\/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,slnx,xproj}\",\n\"!.editorconfig\",\n\"!**\\/._*\",\n\"!**\\/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}\",\n\"!**\\/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}\",\n\"!**\\/{appveyor.yml,.travis.yml,circle.yml}\",\n\"!**\\/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}\"\n]\n```\n\nDevelopment dependencies are never copied in any case. You don't need to ignore it explicitly. Hidden files are not ignored by default, but all files that should be ignored, are ignored by default.\n\nDefault pattern \\`**\\/*\\` **is not added to your custom** if some of your patterns is not ignore (i.e. not starts with `!`). `package.json` and \\`**\\/node_modules/**\\/*` (only production dependencies will be copied) is added to your custom in any case. All default ignores are added in any case — you don't need to repeat it if you configure own patterns.\n\nMay be specified in the platform options (e.g. in the [mac](https://www.electron.build/mac)).\n\nYou may also specify custom source and destination directories by using `FileSet` objects instead of simple glob patterns.\n\n```json\n[\n{\n\"from\": \"path/to/source\",\n\"to\": \"path/to/destination\",\n\"filter\": [\"**\\/*\", \"!foo/*.js\"]\n}\n]\n```\n\nYou can use [file macros](https://www.electron.build/file-patterns#file-macros) in the `from` and `to` fields as well. `from` and `to` can be files and you can use this to [rename](https://github.com/electron-userland/electron-builder/issues/1119) a file while packaging."
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."
9866
9842
  },
9867
9843
  "flatpak": {
9868
9844
  "anyOf": [
@@ -9920,11 +9896,6 @@
9920
9896
  ],
9921
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."
9922
9898
  },
9923
- "includePdb": {
9924
- "default": false,
9925
- "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.",
9926
- "type": "boolean"
9927
- },
9928
9899
  "linux": {
9929
9900
  "anyOf": [
9930
9901
  {
@@ -10113,6 +10084,20 @@
10113
10084
  ],
10114
10085
  "description": "macOS PKG flat-package installer options."
10115
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
+ },
10116
10101
  "portable": {
10117
10102
  "anyOf": [
10118
10103
  {
@@ -10289,7 +10274,7 @@
10289
10274
  "type": "null"
10290
10275
  }
10291
10276
  ],
10292
- "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` (preferred in CI) or via\n`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)."
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)."
10293
10278
  },
10294
10279
  "win": {
10295
10280
  "anyOf": [