app-builder-lib 27.0.0-alpha.10 → 27.0.0-alpha.11

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 (157) 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/configuration.d.ts +5 -3
  10. package/dist/configuration.d.ts.map +1 -1
  11. package/dist/configuration.js.map +1 -1
  12. package/dist/fileMatcher.d.ts +13 -1
  13. package/dist/fileMatcher.d.ts.map +1 -1
  14. package/dist/fileMatcher.js +29 -11
  15. package/dist/fileMatcher.js.map +1 -1
  16. package/dist/index.d.ts +3 -3
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/indexInternal.d.ts +3 -2
  20. package/dist/indexInternal.d.ts.map +1 -1
  21. package/dist/indexInternal.js +3 -2
  22. package/dist/indexInternal.js.map +1 -1
  23. package/dist/options/PlatformSpecificBuildOptions.d.ts +92 -3
  24. package/dist/options/PlatformSpecificBuildOptions.d.ts.map +1 -1
  25. package/dist/options/PlatformSpecificBuildOptions.js.map +1 -1
  26. package/dist/options/SnapOptions.d.ts +36 -15
  27. package/dist/options/SnapOptions.d.ts.map +1 -1
  28. package/dist/options/SnapOptions.js.map +1 -1
  29. package/dist/options/linuxOptions.d.ts +53 -18
  30. package/dist/options/linuxOptions.d.ts.map +1 -1
  31. package/dist/options/linuxOptions.js.map +1 -1
  32. package/dist/packager.d.ts.map +1 -1
  33. package/dist/packager.js +2 -0
  34. package/dist/packager.js.map +1 -1
  35. package/dist/platformPackager.d.ts +7 -2
  36. package/dist/platformPackager.d.ts.map +1 -1
  37. package/dist/platformPackager.js +41 -16
  38. package/dist/platformPackager.js.map +1 -1
  39. package/dist/presets/rectCra.js +3 -1
  40. package/dist/presets/rectCra.js.map +1 -1
  41. package/dist/publish/PublishManager.d.ts +5 -1
  42. package/dist/publish/PublishManager.d.ts.map +1 -1
  43. package/dist/publish/PublishManager.js +22 -44
  44. package/dist/publish/PublishManager.js.map +1 -1
  45. package/dist/publish/updateInfoBuilder.d.ts.map +1 -1
  46. package/dist/publish/updateInfoBuilder.js +8 -10
  47. package/dist/publish/updateInfoBuilder.js.map +1 -1
  48. package/dist/targets/ArchiveTarget.d.ts.map +1 -1
  49. package/dist/targets/ArchiveTarget.js +7 -1
  50. package/dist/targets/ArchiveTarget.js.map +1 -1
  51. package/dist/targets/archive.d.ts +6 -0
  52. package/dist/targets/archive.d.ts.map +1 -1
  53. package/dist/targets/archive.js +5 -1
  54. package/dist/targets/archive.js.map +1 -1
  55. package/dist/targets/blockmap/blockmap.d.ts +3 -2
  56. package/dist/targets/blockmap/blockmap.d.ts.map +1 -1
  57. package/dist/targets/blockmap/blockmap.js +3 -2
  58. package/dist/targets/blockmap/blockmap.js.map +1 -1
  59. package/dist/targets/linux/FlatpakTarget.d.ts +17 -0
  60. package/dist/targets/linux/FlatpakTarget.d.ts.map +1 -1
  61. package/dist/targets/linux/FlatpakTarget.js +238 -48
  62. package/dist/targets/linux/FlatpakTarget.js.map +1 -1
  63. package/dist/targets/linux/FpmTarget.d.ts.map +1 -1
  64. package/dist/targets/linux/FpmTarget.js +8 -4
  65. package/dist/targets/linux/FpmTarget.js.map +1 -1
  66. package/dist/targets/linux/LinuxTargetHelper.d.ts +1 -3
  67. package/dist/targets/linux/LinuxTargetHelper.d.ts.map +1 -1
  68. package/dist/targets/linux/LinuxTargetHelper.js +45 -20
  69. package/dist/targets/linux/LinuxTargetHelper.js.map +1 -1
  70. package/dist/targets/linux/appimage/AppImageTarget.d.ts.map +1 -1
  71. package/dist/targets/linux/appimage/AppImageTarget.js +5 -1
  72. package/dist/targets/linux/appimage/AppImageTarget.js.map +1 -1
  73. package/dist/targets/linux/appimage/appImageUtil.d.ts +3 -1
  74. package/dist/targets/linux/appimage/appImageUtil.d.ts.map +1 -1
  75. package/dist/targets/linux/appimage/appImageUtil.js +2 -2
  76. package/dist/targets/linux/appimage/appImageUtil.js.map +1 -1
  77. package/dist/targets/linux/appimage/appLauncher.d.ts +6 -0
  78. package/dist/targets/linux/appimage/appLauncher.d.ts.map +1 -1
  79. package/dist/targets/linux/appimage/appLauncher.js +13 -9
  80. package/dist/targets/linux/appimage/appLauncher.js.map +1 -1
  81. package/dist/targets/linux/flatpakBundle.d.ts +43 -0
  82. package/dist/targets/linux/flatpakBundle.d.ts.map +1 -0
  83. package/dist/targets/linux/flatpakBundle.js +210 -0
  84. package/dist/targets/linux/flatpakBundle.js.map +1 -0
  85. package/dist/targets/linux/snap/core24.d.ts +0 -18
  86. package/dist/targets/linux/snap/core24.d.ts.map +1 -1
  87. package/dist/targets/linux/snap/core24.js +27 -91
  88. package/dist/targets/linux/snap/core24.js.map +1 -1
  89. package/dist/targets/linux/snap/coreLegacy.d.ts +7 -0
  90. package/dist/targets/linux/snap/coreLegacy.d.ts.map +1 -1
  91. package/dist/targets/linux/snap/coreLegacy.js +25 -6
  92. package/dist/targets/linux/snap/coreLegacy.js.map +1 -1
  93. package/dist/targets/linux/snap/snapPlugs.d.ts +76 -0
  94. package/dist/targets/linux/snap/snapPlugs.d.ts.map +1 -0
  95. package/dist/targets/linux/snap/snapPlugs.js +242 -0
  96. package/dist/targets/linux/snap/snapPlugs.js.map +1 -0
  97. package/dist/targets/win/nsis/Defines.d.ts +1 -0
  98. package/dist/targets/win/nsis/Defines.d.ts.map +1 -1
  99. package/dist/targets/win/nsis/Defines.js.map +1 -1
  100. package/dist/targets/win/nsis/NsisTarget.d.ts +8 -1
  101. package/dist/targets/win/nsis/NsisTarget.d.ts.map +1 -1
  102. package/dist/targets/win/nsis/NsisTarget.js +29 -4
  103. package/dist/targets/win/nsis/NsisTarget.js.map +1 -1
  104. package/dist/targets/win/nsis/nsisOptions.d.ts +6 -4
  105. package/dist/targets/win/nsis/nsisOptions.d.ts.map +1 -1
  106. package/dist/targets/win/nsis/nsisOptions.js.map +1 -1
  107. package/dist/targets/win/nsis/nsisUtil.d.ts.map +1 -1
  108. package/dist/targets/win/nsis/nsisUtil.js +7 -2
  109. package/dist/targets/win/nsis/nsisUtil.js.map +1 -1
  110. package/dist/targets/win/winAppUtil.d.ts +2 -2
  111. package/dist/targets/win/winAppUtil.d.ts.map +1 -1
  112. package/dist/targets/win/winAppUtil.js +5 -3
  113. package/dist/targets/win/winAppUtil.js.map +1 -1
  114. package/dist/toolsets/appimage.d.ts.map +1 -1
  115. package/dist/toolsets/appimage.js +19 -19
  116. package/dist/toolsets/appimage.js.map +1 -1
  117. package/dist/toolsets/nsis.js +1 -1
  118. package/dist/toolsets/nsis.js.map +1 -1
  119. package/dist/util/AppFileWalker.js +9 -1
  120. package/dist/util/AppFileWalker.js.map +1 -1
  121. package/dist/util/appFileCopier.d.ts +15 -2
  122. package/dist/util/appFileCopier.d.ts.map +1 -1
  123. package/dist/util/appFileCopier.js +24 -12
  124. package/dist/util/appFileCopier.js.map +1 -1
  125. package/dist/util/config/config.d.ts +1 -1
  126. package/dist/util/config/config.d.ts.map +1 -1
  127. package/dist/util/config/config.js +34 -19
  128. package/dist/util/config/config.js.map +1 -1
  129. package/dist/util/config/fileOptions.d.ts +30 -0
  130. package/dist/util/config/fileOptions.d.ts.map +1 -0
  131. package/dist/util/config/fileOptions.js +120 -0
  132. package/dist/util/config/fileOptions.js.map +1 -0
  133. package/dist/util/config/legacyConfigGuard.d.ts.map +1 -1
  134. package/dist/util/config/legacyConfigGuard.js +31 -4
  135. package/dist/util/config/legacyConfigGuard.js.map +1 -1
  136. package/dist/util/config/legacyOptions.d.ts +11 -0
  137. package/dist/util/config/legacyOptions.d.ts.map +1 -1
  138. package/dist/util/config/legacyOptions.js +24 -10
  139. package/dist/util/config/legacyOptions.js.map +1 -1
  140. package/dist/util/electronGet.d.ts +13 -0
  141. package/dist/util/electronGet.d.ts.map +1 -1
  142. package/dist/util/electronGet.js +40 -17
  143. package/dist/util/electronGet.js.map +1 -1
  144. package/dist/util/removedEnvVars.d.ts +25 -0
  145. package/dist/util/removedEnvVars.d.ts.map +1 -0
  146. package/dist/util/removedEnvVars.js +54 -0
  147. package/dist/util/removedEnvVars.js.map +1 -0
  148. package/dist/util/trustedSourceRoots.d.ts +59 -0
  149. package/dist/util/trustedSourceRoots.d.ts.map +1 -0
  150. package/dist/util/trustedSourceRoots.js +127 -0
  151. package/dist/util/trustedSourceRoots.js.map +1 -0
  152. package/dist/version.d.ts +1 -1
  153. package/dist/version.js +1 -1
  154. package/dist/version.js.map +1 -1
  155. package/package.json +15 -16
  156. package/scheme.json +266 -419
  157. package/templates/nsis/include/installer.nsh +11 -8
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,6 +416,14 @@
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
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 `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.",
@@ -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,175 @@
1436
1444
  },
1437
1445
  "type": "object"
1438
1446
  },
1447
+ "FilesBuildOptions": {
1448
+ "additionalProperties": false,
1449
+ "description": "Which files are copied into the packaged app, and which symlinks among them may lead outside it, set under `fileOptions` at the\nconfiguration root or per platform (e.g. `mac.fileOptions`). A platform's lists are added to the root ones; a platform's\n`allowExternalLinks` replaces the root one.\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
+ "extraFiles": {
1470
+ "anyOf": [
1471
+ {
1472
+ "$ref": "#/definitions/FileSet"
1473
+ },
1474
+ {
1475
+ "items": {
1476
+ "anyOf": [
1477
+ {
1478
+ "$ref": "#/definitions/FileSet"
1479
+ },
1480
+ {
1481
+ "type": "string"
1482
+ }
1483
+ ]
1484
+ },
1485
+ "type": "array"
1486
+ },
1487
+ {
1488
+ "type": [
1489
+ "null",
1490
+ "string"
1491
+ ]
1492
+ }
1493
+ ],
1494
+ "description": "The same as [extraResources](#extraresources) but copy into the app's content directory (`Contents` for MacOS, root directory for Linux and Windows)."
1495
+ },
1496
+ "extraResources": {
1497
+ "anyOf": [
1498
+ {
1499
+ "$ref": "#/definitions/FileSet"
1500
+ },
1501
+ {
1502
+ "items": {
1503
+ "anyOf": [
1504
+ {
1505
+ "$ref": "#/definitions/FileSet"
1506
+ },
1507
+ {
1508
+ "type": "string"
1509
+ }
1510
+ ]
1511
+ },
1512
+ "type": "array"
1513
+ },
1514
+ {
1515
+ "type": [
1516
+ "null",
1517
+ "string"
1518
+ ]
1519
+ }
1520
+ ],
1521
+ "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)."
1522
+ },
1523
+ "files": {
1524
+ "anyOf": [
1525
+ {
1526
+ "$ref": "#/definitions/FileSet"
1527
+ },
1528
+ {
1529
+ "items": {
1530
+ "anyOf": [
1531
+ {
1532
+ "$ref": "#/definitions/FileSet"
1533
+ },
1534
+ {
1535
+ "type": "string"
1536
+ }
1537
+ ]
1538
+ },
1539
+ "type": "array"
1540
+ },
1541
+ {
1542
+ "type": [
1543
+ "null",
1544
+ "string"
1545
+ ]
1546
+ }
1547
+ ],
1548
+ "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."
1549
+ }
1550
+ },
1551
+ "type": "object"
1552
+ },
1553
+ "FlatpakAdditionalArgs": {
1554
+ "additionalProperties": false,
1555
+ "description": "Additional arguments for the tools that build a flatpak bundle.",
1556
+ "properties": {
1557
+ "buildBundle": {
1558
+ "anyOf": [
1559
+ {
1560
+ "items": {
1561
+ "type": "string"
1562
+ },
1563
+ "type": "array"
1564
+ },
1565
+ {
1566
+ "type": "null"
1567
+ }
1568
+ ],
1569
+ "description": "Passed to `flatpak build-bundle`.\n\nExample: `[\"--runtime-repo=https://dl.flathub.org/repo/flathub.flatpakrepo\"]`"
1570
+ },
1571
+ "buildExport": {
1572
+ "anyOf": [
1573
+ {
1574
+ "items": {
1575
+ "type": "string"
1576
+ },
1577
+ "type": "array"
1578
+ },
1579
+ {
1580
+ "type": "null"
1581
+ }
1582
+ ],
1583
+ "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."
1584
+ },
1585
+ "flatpakBuilder": {
1586
+ "anyOf": [
1587
+ {
1588
+ "items": {
1589
+ "type": "string"
1590
+ },
1591
+ "type": "array"
1592
+ },
1593
+ {
1594
+ "type": "null"
1595
+ }
1596
+ ],
1597
+ "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."
1598
+ }
1599
+ },
1600
+ "type": "object"
1601
+ },
1439
1602
  "FlatpakOptions": {
1440
1603
  "additionalProperties": false,
1441
1604
  "properties": {
1605
+ "additionalArgs": {
1606
+ "anyOf": [
1607
+ {
1608
+ "$ref": "#/definitions/FlatpakAdditionalArgs"
1609
+ },
1610
+ {
1611
+ "type": "null"
1612
+ }
1613
+ ],
1614
+ "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\"] }`."
1615
+ },
1442
1616
  "artifactName": {
1443
1617
  "description": "The [artifact file name template](https://www.electron.build/configuration#artifact-file-name-template).",
1444
1618
  "type": [
@@ -1451,7 +1625,7 @@
1451
1625
  "type": "string"
1452
1626
  },
1453
1627
  "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).",
1628
+ "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
1629
  "type": "string"
1456
1630
  },
1457
1631
  "branch": {
@@ -1498,7 +1672,7 @@
1498
1672
  "description": "The executable parameters. Pass to executableName"
1499
1673
  },
1500
1674
  "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).",
1675
+ "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
1676
  "items": {
1503
1677
  "items": [
1504
1678
  {
@@ -1515,12 +1689,35 @@
1515
1689
  "type": "array"
1516
1690
  },
1517
1691
  "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).",
1692
+ "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
1693
  "items": {
1520
1694
  "type": "string"
1521
1695
  },
1522
1696
  "type": "array"
1523
1697
  },
1698
+ "installOrUpdateRefs": {
1699
+ "anyOf": [
1700
+ {
1701
+ "items": {
1702
+ "enum": [
1703
+ "base",
1704
+ "runtime",
1705
+ "sdk"
1706
+ ],
1707
+ "type": "string"
1708
+ },
1709
+ "type": "array"
1710
+ },
1711
+ {
1712
+ "const": "all",
1713
+ "type": "string"
1714
+ },
1715
+ {
1716
+ "type": "null"
1717
+ }
1718
+ ],
1719
+ "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\"`."
1720
+ },
1524
1721
  "license": {
1525
1722
  "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). Only plain text is supported.",
1526
1723
  "type": [
@@ -1543,7 +1740,7 @@
1543
1740
  "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
1741
  },
1545
1742
  "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).",
1743
+ "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
1744
  "items": {},
1548
1745
  "type": "array"
1549
1746
  },
@@ -1598,7 +1795,7 @@
1598
1795
  "type": "string"
1599
1796
  },
1600
1797
  "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).",
1798
+ "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
1799
  "type": "string"
1603
1800
  },
1604
1801
  "sdk": {
@@ -1606,7 +1803,7 @@
1606
1803
  "type": "string"
1607
1804
  },
1608
1805
  "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).",
1806
+ "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
1807
  "items": {
1611
1808
  "items": [
1612
1809
  {
@@ -1630,7 +1827,7 @@
1630
1827
  ]
1631
1828
  },
1632
1829
  "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`.",
1830
+ "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
1831
  "type": "boolean"
1635
1832
  }
1636
1833
  },
@@ -2178,7 +2375,7 @@
2178
2375
  }
2179
2376
  ],
2180
2377
  "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."
2378
+ "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
2379
  },
2183
2380
  "category": {
2184
2381
  "description": "The [application category](https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry).",
@@ -2285,60 +2482,6 @@
2285
2482
  "string"
2286
2483
  ]
2287
2484
  },
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
2485
  "fileAssociations": {
2343
2486
  "anyOf": [
2344
2487
  {
@@ -2353,32 +2496,16 @@
2353
2496
  ],
2354
2497
  "description": "The file associations."
2355
2498
  },
2356
- "files": {
2499
+ "fileOptions": {
2357
2500
  "anyOf": [
2358
2501
  {
2359
- "$ref": "#/definitions/FileSet"
2502
+ "$ref": "#/definitions/FilesBuildOptions"
2360
2503
  },
2361
2504
  {
2362
- "items": {
2363
- "anyOf": [
2364
- {
2365
- "$ref": "#/definitions/FileSet"
2366
- },
2367
- {
2368
- "type": "string"
2369
- }
2370
- ]
2371
- },
2372
- "type": "array"
2373
- },
2374
- {
2375
- "type": [
2376
- "null",
2377
- "string"
2378
- ]
2505
+ "type": "null"
2379
2506
  }
2380
2507
  ],
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."
2508
+ "description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among\nthem 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 lists are added to the root ones,\nand a platform's `allowExternalLinks` replaces the root one.\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
2509
  },
2383
2510
  "forceCodeSigning": {
2384
2511
  "default": false,
@@ -2558,7 +2685,7 @@
2558
2685
  "type": "null"
2559
2686
  }
2560
2687
  ],
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```"
2688
+ "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
2689
  },
2563
2690
  "entry": {
2564
2691
  "anyOf": [
@@ -2569,7 +2696,7 @@
2569
2696
  "type": "null"
2570
2697
  }
2571
2698
  ],
2572
- "description": "`[Desktop Entry]` metadata entries (name to value). Overwrites default values calculated by electron-builder"
2699
+ "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
2700
  }
2574
2701
  },
2575
2702
  "type": "object"
@@ -2823,7 +2950,7 @@
2823
2950
  }
2824
2951
  ],
2825
2952
  "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."
2953
+ "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."
2827
2954
  },
2828
2955
  "bundleShortVersion": {
2829
2956
  "description": "The `CFBundleShortVersionString`. Do not use it unless you need to.",
@@ -2922,75 +3049,21 @@
2922
3049
  "string"
2923
3050
  ]
2924
3051
  },
2925
- "executableName": {
2926
- "description": "The executable name. Defaults to `productName`\nNote: Except for Linux, where this would constitute a breaking change in previous behavior and lead to both invalid executable names and Desktop files. Ref comments in: https://github.com/electron-userland/electron-builder/pull/9068",
2927
- "type": [
2928
- "null",
2929
- "string"
2930
- ]
2931
- },
2932
- "extendInfo": {
2933
- "description": "The extra entries for `Info.plist`."
2934
- },
2935
- "extraDistFiles": {
2936
- "anyOf": [
2937
- {
2938
- "items": {
2939
- "type": "string"
2940
- },
2941
- "type": "array"
2942
- },
2943
- {
2944
- "type": [
2945
- "null",
2946
- "string"
2947
- ]
2948
- }
2949
- ],
2950
- "description": "Extra files to put in archive. Not applicable for `tar.*`."
2951
- },
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)."
3052
+ "executableName": {
3053
+ "description": "The executable name. Defaults to `productName`\nNote: Except for Linux, where this would constitute a breaking change in previous behavior and lead to both invalid executable names and Desktop files. Ref comments in: https://github.com/electron-userland/electron-builder/pull/9068",
3054
+ "type": [
3055
+ "null",
3056
+ "string"
3057
+ ]
2978
3058
  },
2979
- "extraResources": {
3059
+ "extendInfo": {
3060
+ "description": "The extra entries for `Info.plist`."
3061
+ },
3062
+ "extraDistFiles": {
2980
3063
  "anyOf": [
2981
- {
2982
- "$ref": "#/definitions/FileSet"
2983
- },
2984
3064
  {
2985
3065
  "items": {
2986
- "anyOf": [
2987
- {
2988
- "$ref": "#/definitions/FileSet"
2989
- },
2990
- {
2991
- "type": "string"
2992
- }
2993
- ]
3066
+ "type": "string"
2994
3067
  },
2995
3068
  "type": "array"
2996
3069
  },
@@ -3001,7 +3074,7 @@
3001
3074
  ]
3002
3075
  }
3003
3076
  ],
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)."
3077
+ "description": "Extra files to put in archive. Not applicable for `tar.*`."
3005
3078
  },
3006
3079
  "fileAssociations": {
3007
3080
  "anyOf": [
@@ -3017,32 +3090,16 @@
3017
3090
  ],
3018
3091
  "description": "The file associations."
3019
3092
  },
3020
- "files": {
3093
+ "fileOptions": {
3021
3094
  "anyOf": [
3022
3095
  {
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"
3096
+ "$ref": "#/definitions/FilesBuildOptions"
3037
3097
  },
3038
3098
  {
3039
- "type": [
3040
- "null",
3041
- "string"
3042
- ]
3099
+ "type": "null"
3043
3100
  }
3044
3101
  ],
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."
3102
+ "description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among\nthem 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 lists are added to the root ones,\nand a platform's `allowExternalLinks` replaces the root one.\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
3103
  },
3047
3104
  "forceCodeSigning": {
3048
3105
  "default": false,
@@ -3318,7 +3375,7 @@
3318
3375
  }
3319
3376
  ],
3320
3377
  "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."
3378
+ "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."
3322
3379
  },
3323
3380
  "bundleShortVersion": {
3324
3381
  "description": "The `CFBundleShortVersionString`. Do not use it unless you need to.",
@@ -3444,60 +3501,6 @@
3444
3501
  ],
3445
3502
  "description": "Extra files to put in archive. Not applicable for `tar.*`."
3446
3503
  },
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)."
3473
- },
3474
- "extraResources": {
3475
- "anyOf": [
3476
- {
3477
- "$ref": "#/definitions/FileSet"
3478
- },
3479
- {
3480
- "items": {
3481
- "anyOf": [
3482
- {
3483
- "$ref": "#/definitions/FileSet"
3484
- },
3485
- {
3486
- "type": "string"
3487
- }
3488
- ]
3489
- },
3490
- "type": "array"
3491
- },
3492
- {
3493
- "type": [
3494
- "null",
3495
- "string"
3496
- ]
3497
- }
3498
- ],
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)."
3500
- },
3501
3504
  "fileAssociations": {
3502
3505
  "anyOf": [
3503
3506
  {
@@ -3512,32 +3515,16 @@
3512
3515
  ],
3513
3516
  "description": "The file associations."
3514
3517
  },
3515
- "files": {
3518
+ "fileOptions": {
3516
3519
  "anyOf": [
3517
3520
  {
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"
3521
+ "$ref": "#/definitions/FilesBuildOptions"
3532
3522
  },
3533
3523
  {
3534
- "type": [
3535
- "null",
3536
- "string"
3537
- ]
3524
+ "type": "null"
3538
3525
  }
3539
3526
  ],
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."
3527
+ "description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among\nthem 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 lists are added to the root ones,\nand a platform's `allowExternalLinks` replaces the root one.\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
3528
  },
3542
3529
  "forceCodeSigning": {
3543
3530
  "default": false,
@@ -3795,7 +3782,7 @@
3795
3782
  },
3796
3783
  "buildResources": {
3797
3784
  "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```",
3785
+ "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
3786
  "type": [
3800
3787
  "null",
3801
3788
  "string"
@@ -4447,7 +4434,7 @@
4447
4434
  },
4448
4435
  "differentialPackage": {
4449
4436
  "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.",
4437
+ "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
4438
  "enum": [
4452
4439
  "compressed",
4453
4440
  false,
@@ -4482,7 +4469,7 @@
4482
4469
  ]
4483
4470
  }
4484
4471
  ],
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."
4472
+ "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
4473
  },
4487
4474
  "installerDebugLogging": {
4488
4475
  "default": false,
@@ -4807,7 +4794,7 @@
4807
4794
  },
4808
4795
  "differentialPackage": {
4809
4796
  "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.",
4797
+ "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
4798
  "enum": [
4812
4799
  "compressed",
4813
4800
  false,
@@ -4842,7 +4829,7 @@
4842
4829
  ]
4843
4830
  }
4844
4831
  ],
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."
4832
+ "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
4833
  },
4847
4834
  "installerDebugLogging": {
4848
4835
  "default": false,
@@ -6071,7 +6058,7 @@
6071
6058
  ]
6072
6059
  }
6073
6060
  ],
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."
6061
+ "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
6062
  },
6076
6063
  "publish": {
6077
6064
  "anyOf": [
@@ -6956,7 +6943,7 @@
6956
6943
  }
6957
6944
  ],
6958
6945
  "default": "strict",
6959
- "description": "The type of [confinement](https://snapcraft.io/docs/reference/confinement) supported by the snap."
6946
+ "description": "The type of [confinement](https://snapcraft.io/docs/snap-confinement) supported by the snap."
6960
6947
  },
6961
6948
  "description": {
6962
6949
  "description": "As [description](https://www.electron.build/configuration#description) from application package.json, but allows you to specify different for Linux.",
@@ -7016,7 +7003,7 @@
7016
7003
  "type": "null"
7017
7004
  }
7018
7005
  ],
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"
7006
+ "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
7007
  },
7021
7008
  "forceX11": {
7022
7009
  "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 +7030,7 @@
7043
7030
  },
7044
7031
  "hooks": {
7045
7032
  "default": "build/snap-hooks",
7046
- "description": "Directory containing [snap hooks](https://snapcraft.io/docs/snap-hooks), relative to\nthe build resources directory.",
7033
+ "description": "Directory containing [snap hooks](https://snapcraft.io/docs/supported-snap-hooks), relative to\nthe build resources directory.",
7047
7034
  "type": [
7048
7035
  "null",
7049
7036
  "string"
@@ -7096,7 +7083,7 @@
7096
7083
  "type": "null"
7097
7084
  }
7098
7085
  ],
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```"
7086
+ "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
7087
  },
7101
7088
  "publish": {
7102
7089
  "anyOf": [
@@ -7208,7 +7195,7 @@
7208
7195
  ]
7209
7196
  },
7210
7197
  "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).",
7198
+ "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
7199
  "type": [
7213
7200
  "null",
7214
7201
  "string"
@@ -7359,7 +7346,7 @@
7359
7346
  "type": "null"
7360
7347
  }
7361
7348
  ],
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."
7349
+ "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
7350
  },
7364
7351
  "confinement": {
7365
7352
  "anyOf": [
@@ -7376,7 +7363,7 @@
7376
7363
  }
7377
7364
  ],
7378
7365
  "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."
7366
+ "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
7367
  },
7381
7368
  "description": {
7382
7369
  "description": "As [description](https://www.electron.build/configuration#description) from application package.json, but allows you to specify different for Linux.",
@@ -7442,7 +7429,7 @@
7442
7429
  },
7443
7430
  "hooks": {
7444
7431
  "default": "build/snap-hooks",
7445
- "description": "Directory containing [snap hooks](https://snapcraft.io/docs/snap-hooks), relative to\nthe build resources directory (`build/`).",
7432
+ "description": "Directory containing [snap hooks](https://snapcraft.io/docs/supported-snap-hooks), relative to\nthe build resources directory (`build/`).",
7446
7433
  "type": [
7447
7434
  "null",
7448
7435
  "string"
@@ -7495,7 +7482,7 @@
7495
7482
  "type": "null"
7496
7483
  }
7497
7484
  ],
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```"
7485
+ "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
7486
  },
7500
7487
  "publish": {
7501
7488
  "anyOf": [
@@ -7582,7 +7569,7 @@
7582
7569
  "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
7570
  },
7584
7571
  "summary": {
7585
- "description": "A short summary of the snap (max 78 characters).\nDefaults to [productName](./configuration.md#productName).",
7572
+ "description": "A short summary of the snap (max 78 characters).\nDefaults to [productName](https://www.electron.build/docs/configuration#productname).",
7586
7573
  "type": [
7587
7574
  "null",
7588
7575
  "string"
@@ -7596,7 +7583,7 @@
7596
7583
  ]
7597
7584
  },
7598
7585
  "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).",
7586
+ "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
7587
  "type": [
7601
7588
  "null",
7602
7589
  "string"
@@ -8351,7 +8338,7 @@
8351
8338
  }
8352
8339
  ],
8353
8340
  "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"
8341
+ "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
8342
  },
8356
8343
  "fpm": {
8357
8344
  "anyOf": [
@@ -8658,7 +8645,7 @@
8658
8645
  }
8659
8646
  ],
8660
8647
  "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."
8648
+ "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
8649
  },
8663
8650
  "compression": {
8664
8651
  "anyOf": [
@@ -8726,60 +8713,6 @@
8726
8713
  "string"
8727
8714
  ]
8728
8715
  },
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
8716
  "fileAssociations": {
8784
8717
  "anyOf": [
8785
8718
  {
@@ -8794,32 +8727,16 @@
8794
8727
  ],
8795
8728
  "description": "The file associations."
8796
8729
  },
8797
- "files": {
8730
+ "fileOptions": {
8798
8731
  "anyOf": [
8799
8732
  {
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"
8733
+ "$ref": "#/definitions/FilesBuildOptions"
8814
8734
  },
8815
8735
  {
8816
- "type": [
8817
- "null",
8818
- "string"
8819
- ]
8736
+ "type": "null"
8820
8737
  }
8821
8738
  ],
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."
8739
+ "description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among\nthem 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 lists are added to the root ones,\nand a platform's `allowExternalLinks` replaces the root one.\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
8740
  },
8824
8741
  "forceCodeSigning": {
8825
8742
  "default": false,
@@ -9536,7 +9453,7 @@
9536
9453
  }
9537
9454
  ],
9538
9455
  "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."
9456
+ "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
9457
  },
9541
9458
  "beforeBuild": {
9542
9459
  "anyOf": [
@@ -9766,63 +9683,9 @@
9766
9683
  ],
9767
9684
  "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
9685
  },
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
9686
  "extraMetadata": {
9797
9687
  "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
9688
  },
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
9689
  "fileAssociations": {
9827
9690
  "anyOf": [
9828
9691
  {
@@ -9837,32 +9700,16 @@
9837
9700
  ],
9838
9701
  "description": "The file associations."
9839
9702
  },
9840
- "files": {
9703
+ "fileOptions": {
9841
9704
  "anyOf": [
9842
9705
  {
9843
- "$ref": "#/definitions/FileSet"
9844
- },
9845
- {
9846
- "items": {
9847
- "anyOf": [
9848
- {
9849
- "$ref": "#/definitions/FileSet"
9850
- },
9851
- {
9852
- "type": "string"
9853
- }
9854
- ]
9855
- },
9856
- "type": "array"
9706
+ "$ref": "#/definitions/FilesBuildOptions"
9857
9707
  },
9858
9708
  {
9859
- "type": [
9860
- "null",
9861
- "string"
9862
- ]
9709
+ "type": "null"
9863
9710
  }
9864
9711
  ],
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."
9712
+ "description": "Which files to copy into the packaged app (`files`, the app sources, `extraResources` and `extraFiles`), and whether symlinks among\nthem 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 lists are added to the root ones,\nand a platform's `allowExternalLinks` replaces the root one.\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
9713
  },
9867
9714
  "flatpak": {
9868
9715
  "anyOf": [