app-builder-lib 26.15.7 → 26.16.1

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 (63) hide show
  1. package/out/codeSign/macCodeSign.js +5 -3
  2. package/out/codeSign/macCodeSign.js.map +1 -1
  3. package/out/codeSign/windowsCodeSign.js +0 -3
  4. package/out/codeSign/windowsCodeSign.js.map +1 -1
  5. package/out/codeSign/windowsSignToolManager.js +4 -1
  6. package/out/codeSign/windowsSignToolManager.js.map +1 -1
  7. package/out/configuration.d.ts +32 -0
  8. package/out/configuration.js.map +1 -1
  9. package/out/electron/ElectronFramework.d.ts +2 -1
  10. package/out/electron/ElectronFramework.js +13 -5
  11. package/out/electron/ElectronFramework.js.map +1 -1
  12. package/out/electron/electronMac.js +1 -5
  13. package/out/electron/electronMac.js.map +1 -1
  14. package/out/macPackager.d.ts +7 -2
  15. package/out/macPackager.js +40 -11
  16. package/out/macPackager.js.map +1 -1
  17. package/out/node-module-collector/nodeModulesCollector.d.ts +11 -1
  18. package/out/node-module-collector/nodeModulesCollector.js +28 -5
  19. package/out/node-module-collector/nodeModulesCollector.js.map +1 -1
  20. package/out/node-module-collector/pnpmNodeModulesCollector.js +3 -1
  21. package/out/node-module-collector/pnpmNodeModulesCollector.js.map +1 -1
  22. package/out/packager.d.ts +2 -0
  23. package/out/packager.js +15 -0
  24. package/out/packager.js.map +1 -1
  25. package/out/platformPackager.d.ts +1 -0
  26. package/out/platformPackager.js +3 -0
  27. package/out/platformPackager.js.map +1 -1
  28. package/out/targets/AppxTarget.js +5 -5
  29. package/out/targets/AppxTarget.js.map +1 -1
  30. package/out/targets/MsiTarget.js +8 -11
  31. package/out/targets/MsiTarget.js.map +1 -1
  32. package/out/targets/appimage/appImageUtil.d.ts +1 -1
  33. package/out/targets/appimage/appImageUtil.js +3 -3
  34. package/out/targets/appimage/appImageUtil.js.map +1 -1
  35. package/out/targets/appimage/appLauncher.js +3 -9
  36. package/out/targets/appimage/appLauncher.js.map +1 -1
  37. package/out/targets/blockmap/blockmap.js +2 -2
  38. package/out/targets/blockmap/blockmap.js.map +1 -1
  39. package/out/targets/nsis/NsisTarget.d.ts +2 -2
  40. package/out/targets/nsis/NsisTarget.js +9 -1
  41. package/out/targets/nsis/NsisTarget.js.map +1 -1
  42. package/out/targets/nsis/nsisOptions.d.ts +2 -0
  43. package/out/targets/nsis/nsisOptions.js.map +1 -1
  44. package/out/targets/nsis/nsisUtil.d.ts +5 -2
  45. package/out/targets/nsis/nsisUtil.js +48 -24
  46. package/out/targets/nsis/nsisUtil.js.map +1 -1
  47. package/out/toolsets/icons.js +2 -2
  48. package/out/toolsets/icons.js.map +1 -1
  49. package/out/toolsets/linux.js +3 -3
  50. package/out/toolsets/linux.js.map +1 -1
  51. package/out/util/appFileCopier.d.ts +21 -0
  52. package/out/util/appFileCopier.js +58 -0
  53. package/out/util/appFileCopier.js.map +1 -1
  54. package/out/util/electronGet.d.ts +46 -0
  55. package/out/util/electronGet.js +174 -24
  56. package/out/util/electronGet.js.map +1 -1
  57. package/out/version.d.ts +1 -1
  58. package/out/version.js +1 -1
  59. package/out/version.js.map +1 -1
  60. package/package.json +8 -8
  61. package/scheme.json +20 -1
  62. package/templates/appx/appxmanifest.xml +1 -2
  63. package/templates/nsis/include/allowOnlyOneInstallerInstance.nsh +4 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-builder-lib",
3
3
  "description": "electron-builder lib",
4
- "version": "26.15.7",
4
+ "version": "26.16.1",
5
5
  "main": "out/index.js",
6
6
  "files": [
7
7
  "out",
@@ -55,7 +55,7 @@
55
55
  "@electron/rebuild": "^4.0.4",
56
56
  "@electron/universal": "2.0.3",
57
57
  "@malept/flatpak-bundler": "^0.4.0",
58
- "@noble/hashes": "^2.2.0",
58
+ "@noble/hashes": "^1.8.0",
59
59
  "@peculiar/webcrypto": "^1.7.1",
60
60
  "@types/fs-extra": "9.0.13",
61
61
  "ajv": "^8.18.0",
@@ -85,9 +85,9 @@
85
85
  "tiny-async-pool": "1.3.0",
86
86
  "unzipper": "^0.12.3",
87
87
  "which": "^5.0.0",
88
- "builder-util": "26.15.3",
88
+ "builder-util": "26.16.0",
89
89
  "builder-util-runtime": "9.7.0",
90
- "electron-publish": "26.15.3"
90
+ "electron-publish": "26.16.0"
91
91
  },
92
92
  "///": "babel in devDependencies for proton tests",
93
93
  "devDependencies": {
@@ -121,12 +121,12 @@
121
121
  "@types/unzipper": "^0.10.11",
122
122
  "@types/which": "^3.0.4",
123
123
  "toml": "^3.0.0",
124
- "dmg-builder": "26.15.7",
125
- "electron-builder-squirrel-windows": "26.15.7"
124
+ "dmg-builder": "26.16.1",
125
+ "electron-builder-squirrel-windows": "26.16.1"
126
126
  },
127
127
  "peerDependencies": {
128
- "dmg-builder": "26.15.7",
129
- "electron-builder-squirrel-windows": "26.15.7"
128
+ "dmg-builder": "26.16.1",
129
+ "electron-builder-squirrel-windows": "26.16.1"
130
130
  },
131
131
  "//": "electron-builder-squirrel-windows and dmg-builder added as dev dep for tests (as otherwise `require` doesn't work using Yarn 2)",
132
132
  "typings": "./out/index.d.ts"
package/scheme.json CHANGED
@@ -538,6 +538,7 @@
538
538
  },
539
539
  "url": {
540
540
  "default": "https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z",
541
+ "description": "URL to a 7z archive containing the NSIS toolset to use.\nNote: do not use the `nsis-3.0.4.2` bundle — it is known to be broken (see https://github.com/electron-userland/electron-builder/issues/6334). Use `nsis-3.0.4.1` instead.",
541
542
  "type": [
542
543
  "null",
543
544
  "string"
@@ -8962,6 +8963,24 @@
8962
8963
  ],
8963
8964
  "description": "The function (or path to file or module id) to be run after pack and sign but before pack into distributable format.\nReceives an {@link AfterPackContext}. For file/module setup, see {@link beforePack}."
8964
8965
  },
8966
+ "allowMissingDependencies": {
8967
+ "anyOf": [
8968
+ {
8969
+ "items": {
8970
+ "type": "string"
8971
+ },
8972
+ "type": "array"
8973
+ },
8974
+ {
8975
+ "type": [
8976
+ "null",
8977
+ "boolean"
8978
+ ]
8979
+ }
8980
+ ],
8981
+ "default": true,
8982
+ "description": "Whether production dependencies that cannot be resolved during node-module collection are\nallowed — i.e. whether the build should continue with a warning instead of failing.\n\nDuring collection every production dependency must resolve to an installed package on disk. A\ndependency that does not resolve (`cannot find path for dependency` / `dependency not found on\ndisk`) is not bundled, which typically breaks the packaged app at runtime with\n`MODULE_NOT_FOUND`.\n\n- `true` (or omitted — the v26 default): missing production dependencies are only logged as\n warnings, keeping the historical behavior of the stable 26.x line. (electron-builder 27+\n defaults to `false` and fails the build instead.)\n- `false` or `null`: the build fails after dependency collection completes, reporting the\n **complete** list of missing production dependencies at once.\n- `string[]`: the listed dependency names are allowed to be missing; any other missing\n production dependency fails the build. Entries match the package name of the reported\n `name@version` entry (e.g. `some-native-module`, `@scope/pkg`), or an exact `name@version`\n string to allow only that resolved version to be missing.\n\nMissing *optional* dependencies (declared in `optionalDependencies`, e.g. `fsevents` on\nLinux/Windows, or platform-specific packages) are always allowed and never fail the build."
8983
+ },
8965
8984
  "apk": {
8966
8985
  "anyOf": [
8967
8986
  {
@@ -9277,7 +9296,7 @@
9277
9296
  "type": "null"
9278
9297
  }
9279
9298
  ],
9280
- "description": "The [electron-download](https://github.com/electron-userland/electron-download#usage) options. (legacy)\nAlternatively, you can use [electron/get](https://github.com/electron/get#usage) options."
9299
+ "description": "The [electron-download](https://github.com/electron-userland/electron-download#usage) options. (legacy)\nAlternatively, you can use [electron/get](https://github.com/electron/get#usage) options.\n\n`checksums` (a map of artifact file name → SHA-256 hex) makes checksum validation fully offline —\nwithout it, `@electron/get` fetches `SHASUMS256.txt` from the network on every build, even when the\nartifact itself is already cached. When `checksums` is not configured, electron-builder automatically\npicks up a locally seeded `SHASUMS256.txt-<version>` (or `SHASUMS256.txt`) file at the root of the\nElectron cache directory. See the\n[air-gapped / offline builds guide](https://www.electron.build/tutorials/offline-air-gapped-builds)."
9281
9300
  },
9282
9301
  "electronFuses": {
9283
9302
  "anyOf": [
@@ -5,10 +5,9 @@
5
5
  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
6
6
  xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
7
7
  xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities">
8
- <!-- use single quotes to avoid double quotes escaping in the publisher value -->
9
8
  <Identity Name="${identityName}"
10
9
  ProcessorArchitecture="${arch}"
11
- Publisher='${publisher}'
10
+ Publisher="${publisher}"
12
11
  Version="${version}" />
13
12
  <Properties>
14
13
  <DisplayName>${displayName}</DisplayName>
@@ -45,12 +45,12 @@
45
45
  !macro IS_POWERSHELL_AVAILABLE
46
46
  Var /GLOBAL IsPowerShellAvailable ; 0 = available, 1 = not available
47
47
  # Try running PowerShell with a simple command to check if it's available
48
- nsExec::Exec `"$PowerShellPath" -C "if (Get-Command Get-CimInstance -ErrorAction SilentlyContinue) { exit 0 } else { exit 1 }"`
48
+ nsExec::Exec `"$PowerShellPath" -NoProfile -NonInteractive -C "if (Get-Command Get-CimInstance -ErrorAction SilentlyContinue) { exit 0 } else { exit 1 }"`
49
49
  Pop $0 # Return code (0 = success, other = error)
50
50
 
51
51
  ${if} $0 == 0
52
52
  # PowerShell is available, check if it's not blocked by policies
53
- nsExec::Exec `"$PowerShellPath" -C "if ((Get-ExecutionPolicy -Scope Process) -eq 'Restricted') { exit 1 } else { exit 0 }"`
53
+ nsExec::Exec `"$PowerShellPath" -NoProfile -NonInteractive -C "if ((Get-ExecutionPolicy -Scope Process) -eq 'Restricted') { exit 1 } else { exit 0 }"`
54
54
  Pop $0
55
55
  ${endIf}
56
56
 
@@ -63,7 +63,7 @@
63
63
 
64
64
  !macro FIND_PROCESS _FILE _RETURN
65
65
  ${if} $IsPowerShellAvailable == 0
66
- nsExec::Exec `"$PowerShellPath" -C "if ((Get-CimInstance -ClassName Win32_Process | ? {$$_.Path -and $$_.Path.StartsWith('$INSTDIR', 'CurrentCultureIgnoreCase')}).Count -gt 0) { exit 0 } else { exit 1 }"`
66
+ nsExec::Exec `"$PowerShellPath" -NoProfile -NonInteractive -C "if ((Get-CimInstance -ClassName Win32_Process | ? {$$_.Path -and $$_.Path.StartsWith('$INSTDIR', 'CurrentCultureIgnoreCase')}).Count -gt 0) { exit 0 } else { exit 1 }"`
67
67
  Pop ${_RETURN}
68
68
  ${else}
69
69
  !ifdef INSTALL_MODE_PER_ALL_USERS
@@ -91,7 +91,7 @@
91
91
  ${endIf}
92
92
 
93
93
  ${if} $IsPowerShellAvailable == 0
94
- nsExec::Exec `"$PowerShellPath" -C "Get-CimInstance -ClassName Win32_Process | ? {$$_.Path -and $$_.Path.StartsWith('$INSTDIR', 'CurrentCultureIgnoreCase')} | % { Stop-Process -Id $$_.ProcessId $0 }"`
94
+ nsExec::Exec `"$PowerShellPath" -NoProfile -NonInteractive -C "Get-CimInstance -ClassName Win32_Process | ? {$$_.Path -and $$_.Path.StartsWith('$INSTDIR', 'CurrentCultureIgnoreCase')} | % { Stop-Process -Id $$_.ProcessId $0 }"`
95
95
  ${else}
96
96
  !ifdef INSTALL_MODE_PER_ALL_USERS
97
97
  nsExec::Exec `taskkill /IM "${_FILE}" /FI "PID ne $pid"`