app-builder-lib 27.0.0-alpha.1 → 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 (489) hide show
  1. package/dist/Framework.d.ts +2 -0
  2. package/dist/Framework.d.ts.map +1 -1
  3. package/dist/Framework.js.map +1 -1
  4. package/dist/appInfo.d.ts +1 -1
  5. package/dist/appInfo.d.ts.map +1 -1
  6. package/dist/appInfo.js +3 -3
  7. package/dist/appInfo.js.map +1 -1
  8. package/dist/asar/asar.js.map +1 -1
  9. package/dist/asar/asarAlign.d.ts +35 -0
  10. package/dist/asar/asarAlign.d.ts.map +1 -0
  11. package/dist/asar/asarAlign.js +149 -0
  12. package/dist/asar/asarAlign.js.map +1 -0
  13. package/dist/asar/asarFileChecker.d.ts +4 -2
  14. package/dist/asar/asarFileChecker.d.ts.map +1 -1
  15. package/dist/asar/asarFileChecker.js +2 -3
  16. package/dist/asar/asarFileChecker.js.map +1 -1
  17. package/dist/asar/asarUtil.d.ts +15 -1
  18. package/dist/asar/asarUtil.d.ts.map +1 -1
  19. package/dist/asar/asarUtil.js +132 -72
  20. package/dist/asar/asarUtil.js.map +1 -1
  21. package/dist/codeSign/certInfo.d.ts +14 -0
  22. package/dist/codeSign/certInfo.d.ts.map +1 -1
  23. package/dist/codeSign/certInfo.js +49 -0
  24. package/dist/codeSign/certInfo.js.map +1 -1
  25. package/dist/codeSign/mac/macCodeSign.d.ts +3 -3
  26. package/dist/codeSign/mac/macCodeSign.d.ts.map +1 -1
  27. package/dist/codeSign/mac/macCodeSign.js +50 -25
  28. package/dist/codeSign/mac/macCodeSign.js.map +1 -1
  29. package/dist/codeSign/signResult.d.ts +26 -0
  30. package/dist/codeSign/signResult.d.ts.map +1 -0
  31. package/dist/codeSign/signResult.js +12 -0
  32. package/dist/codeSign/signResult.js.map +1 -0
  33. package/dist/codeSign/win/hsmSignManager.d.ts +10 -0
  34. package/dist/codeSign/win/hsmSignManager.d.ts.map +1 -0
  35. package/dist/codeSign/win/hsmSignManager.js +50 -0
  36. package/dist/codeSign/win/hsmSignManager.js.map +1 -0
  37. package/dist/codeSign/win/pkcs11SignManager.d.ts +14 -0
  38. package/dist/codeSign/win/pkcs11SignManager.d.ts.map +1 -0
  39. package/dist/codeSign/win/pkcs11SignManager.js +82 -0
  40. package/dist/codeSign/win/pkcs11SignManager.js.map +1 -0
  41. package/dist/codeSign/win/signManager.d.ts +17 -0
  42. package/dist/codeSign/win/signManager.d.ts.map +1 -0
  43. package/dist/codeSign/win/signManager.js +19 -0
  44. package/dist/codeSign/win/signManager.js.map +1 -0
  45. package/dist/codeSign/win/signtoolBaseSignManager.d.ts +95 -0
  46. package/dist/codeSign/win/signtoolBaseSignManager.d.ts.map +1 -0
  47. package/dist/codeSign/win/signtoolBaseSignManager.js +507 -0
  48. package/dist/codeSign/win/signtoolBaseSignManager.js.map +1 -0
  49. package/dist/codeSign/win/windowsCodeSign.d.ts +2 -1
  50. package/dist/codeSign/win/windowsCodeSign.d.ts.map +1 -1
  51. package/dist/codeSign/win/windowsCodeSign.js +22 -8
  52. package/dist/codeSign/win/windowsCodeSign.js.map +1 -1
  53. package/dist/codeSign/win/windowsSignAzureManager.d.ts +11 -4
  54. package/dist/codeSign/win/windowsSignAzureManager.d.ts.map +1 -1
  55. package/dist/codeSign/win/windowsSignAzureManager.js +142 -37
  56. package/dist/codeSign/win/windowsSignAzureManager.js.map +1 -1
  57. package/dist/codeSign/win/windowsSignToolManager.d.ts +1 -58
  58. package/dist/codeSign/win/windowsSignToolManager.d.ts.map +1 -1
  59. package/dist/codeSign/win/windowsSignToolManager.js +3 -363
  60. package/dist/codeSign/win/windowsSignToolManager.js.map +1 -1
  61. package/dist/configuration.d.ts +233 -166
  62. package/dist/configuration.d.ts.map +1 -1
  63. package/dist/configuration.js +11 -1
  64. package/dist/configuration.js.map +1 -1
  65. package/dist/core.d.ts +14 -0
  66. package/dist/core.d.ts.map +1 -1
  67. package/dist/core.js +11 -0
  68. package/dist/core.js.map +1 -1
  69. package/dist/electron/ElectronFramework.d.ts +3 -3
  70. package/dist/electron/ElectronFramework.d.ts.map +1 -1
  71. package/dist/electron/ElectronFramework.js +60 -61
  72. package/dist/electron/ElectronFramework.js.map +1 -1
  73. package/dist/electron/electronArchSupport.d.ts +12 -0
  74. package/dist/electron/electronArchSupport.d.ts.map +1 -0
  75. package/dist/electron/electronArchSupport.js +58 -0
  76. package/dist/electron/electronArchSupport.js.map +1 -0
  77. package/dist/electron/electronVersion.d.ts.map +1 -1
  78. package/dist/electron/electronVersion.js +1 -11
  79. package/dist/electron/electronVersion.js.map +1 -1
  80. package/dist/electron/injectFFMPEG.js +2 -2
  81. package/dist/electron/injectFFMPEG.js.map +1 -1
  82. package/dist/electron/mac/electronMac.js +24 -35
  83. package/dist/electron/mac/electronMac.js.map +1 -1
  84. package/dist/electron/mac/electronMacUtils.d.ts +24 -0
  85. package/dist/electron/mac/electronMacUtils.d.ts.map +1 -0
  86. package/dist/electron/mac/electronMacUtils.js +42 -0
  87. package/dist/electron/mac/electronMacUtils.js.map +1 -0
  88. package/dist/electron/win/electronWin.js +2 -2
  89. package/dist/electron/win/electronWin.js.map +1 -1
  90. package/dist/fileMatcher.d.ts +55 -3
  91. package/dist/fileMatcher.d.ts.map +1 -1
  92. package/dist/fileMatcher.js +274 -28
  93. package/dist/fileMatcher.js.map +1 -1
  94. package/dist/index.d.ts +13 -7
  95. package/dist/index.d.ts.map +1 -1
  96. package/dist/index.js +17 -1
  97. package/dist/index.js.map +1 -1
  98. package/dist/indexInternal.d.ts +20 -8
  99. package/dist/indexInternal.d.ts.map +1 -1
  100. package/dist/indexInternal.js +19 -7
  101. package/dist/indexInternal.js.map +1 -1
  102. package/dist/linuxPackager.d.ts.map +1 -1
  103. package/dist/linuxPackager.js +19 -1
  104. package/dist/linuxPackager.js.map +1 -1
  105. package/dist/macPackager.d.ts +31 -14
  106. package/dist/macPackager.d.ts.map +1 -1
  107. package/dist/macPackager.js +236 -147
  108. package/dist/macPackager.js.map +1 -1
  109. package/dist/node-module-collector/index.d.ts.map +1 -1
  110. package/dist/node-module-collector/index.js +47 -16
  111. package/dist/node-module-collector/index.js.map +1 -1
  112. package/dist/node-module-collector/moduleManager.d.ts +11 -2
  113. package/dist/node-module-collector/moduleManager.d.ts.map +1 -1
  114. package/dist/node-module-collector/moduleManager.js +34 -14
  115. package/dist/node-module-collector/moduleManager.js.map +1 -1
  116. package/dist/node-module-collector/nodeModulesCollector.d.ts +47 -26
  117. package/dist/node-module-collector/nodeModulesCollector.d.ts.map +1 -1
  118. package/dist/node-module-collector/nodeModulesCollector.js +157 -142
  119. package/dist/node-module-collector/nodeModulesCollector.js.map +1 -1
  120. package/dist/node-module-collector/packageManager.js +1 -1
  121. package/dist/node-module-collector/packageManager.js.map +1 -1
  122. package/dist/node-module-collector/pnpmNodeModulesCollector.d.ts +90 -1
  123. package/dist/node-module-collector/pnpmNodeModulesCollector.d.ts.map +1 -1
  124. package/dist/node-module-collector/pnpmNodeModulesCollector.js +325 -25
  125. package/dist/node-module-collector/pnpmNodeModulesCollector.js.map +1 -1
  126. package/dist/node-module-collector/types.d.ts +4 -0
  127. package/dist/node-module-collector/types.d.ts.map +1 -1
  128. package/dist/node-module-collector/types.js.map +1 -1
  129. package/dist/options/FuseOptionsV1.d.ts +137 -0
  130. package/dist/options/FuseOptionsV1.d.ts.map +1 -0
  131. package/dist/options/FuseOptionsV1.js +2 -0
  132. package/dist/options/FuseOptionsV1.js.map +1 -0
  133. package/dist/options/MsixOptions.d.ts +126 -0
  134. package/dist/options/MsixOptions.d.ts.map +1 -0
  135. package/dist/options/MsixOptions.js +2 -0
  136. package/dist/options/MsixOptions.js.map +1 -0
  137. package/dist/options/PlatformSpecificBuildOptions.d.ts +147 -12
  138. package/dist/options/PlatformSpecificBuildOptions.d.ts.map +1 -1
  139. package/dist/options/PlatformSpecificBuildOptions.js.map +1 -1
  140. package/dist/options/SnapOptions.d.ts +59 -32
  141. package/dist/options/SnapOptions.d.ts.map +1 -1
  142. package/dist/options/SnapOptions.js.map +1 -1
  143. package/dist/options/SquirrelWindowsOptions.d.ts +0 -5
  144. package/dist/options/SquirrelWindowsOptions.d.ts.map +1 -1
  145. package/dist/options/SquirrelWindowsOptions.js.map +1 -1
  146. package/dist/options/linuxOptions.d.ts +61 -30
  147. package/dist/options/linuxOptions.d.ts.map +1 -1
  148. package/dist/options/linuxOptions.js.map +1 -1
  149. package/dist/options/macOptions.d.ts +113 -131
  150. package/dist/options/macOptions.d.ts.map +1 -1
  151. package/dist/options/macOptions.js.map +1 -1
  152. package/dist/options/pkgOptions.d.ts +1 -1
  153. package/dist/options/pkgOptions.js.map +1 -1
  154. package/dist/options/winOptions.d.ts +282 -70
  155. package/dist/options/winOptions.d.ts.map +1 -1
  156. package/dist/options/winOptions.js +12 -1
  157. package/dist/options/winOptions.js.map +1 -1
  158. package/dist/packager.d.ts +6 -1
  159. package/dist/packager.d.ts.map +1 -1
  160. package/dist/packager.js +123 -40
  161. package/dist/packager.js.map +1 -1
  162. package/dist/packagerApi.d.ts +10 -1
  163. package/dist/packagerApi.d.ts.map +1 -1
  164. package/dist/packagerApi.js.map +1 -1
  165. package/dist/platformPackager.d.ts +55 -4
  166. package/dist/platformPackager.d.ts.map +1 -1
  167. package/dist/platformPackager.js +160 -22
  168. package/dist/platformPackager.js.map +1 -1
  169. package/dist/presets/rectCra.js +3 -1
  170. package/dist/presets/rectCra.js.map +1 -1
  171. package/dist/publish/PublishManager.d.ts +40 -2
  172. package/dist/publish/PublishManager.d.ts.map +1 -1
  173. package/dist/publish/PublishManager.js +365 -23
  174. package/dist/publish/PublishManager.js.map +1 -1
  175. package/dist/publish/updateInfoBuilder.d.ts +1 -1
  176. package/dist/publish/updateInfoBuilder.d.ts.map +1 -1
  177. package/dist/publish/updateInfoBuilder.js +108 -32
  178. package/dist/publish/updateInfoBuilder.js.map +1 -1
  179. package/dist/targets/ArchiveTarget.d.ts +1 -0
  180. package/dist/targets/ArchiveTarget.d.ts.map +1 -1
  181. package/dist/targets/ArchiveTarget.js +13 -4
  182. package/dist/targets/ArchiveTarget.js.map +1 -1
  183. package/dist/targets/archive.d.ts +39 -2
  184. package/dist/targets/archive.d.ts.map +1 -1
  185. package/dist/targets/archive.js +114 -30
  186. package/dist/targets/archive.js.map +1 -1
  187. package/dist/targets/blockmap/blockmap.d.ts +44 -3
  188. package/dist/targets/blockmap/blockmap.d.ts.map +1 -1
  189. package/dist/targets/blockmap/blockmap.js +142 -15
  190. package/dist/targets/blockmap/blockmap.js.map +1 -1
  191. package/dist/targets/blockmap/verbatimRange.d.ts +44 -0
  192. package/dist/targets/blockmap/verbatimRange.d.ts.map +1 -0
  193. package/dist/targets/blockmap/verbatimRange.js +117 -0
  194. package/dist/targets/blockmap/verbatimRange.js.map +1 -0
  195. package/dist/targets/differentialUpdateInfoBuilder.d.ts +28 -2
  196. package/dist/targets/differentialUpdateInfoBuilder.d.ts.map +1 -1
  197. package/dist/targets/differentialUpdateInfoBuilder.js +75 -6
  198. package/dist/targets/differentialUpdateInfoBuilder.js.map +1 -1
  199. package/dist/targets/linux/FlatpakTarget.d.ts +17 -0
  200. package/dist/targets/linux/FlatpakTarget.d.ts.map +1 -1
  201. package/dist/targets/linux/FlatpakTarget.js +245 -45
  202. package/dist/targets/linux/FlatpakTarget.js.map +1 -1
  203. package/dist/targets/linux/FpmTarget.d.ts +14 -0
  204. package/dist/targets/linux/FpmTarget.d.ts.map +1 -1
  205. package/dist/targets/linux/FpmTarget.js +92 -12
  206. package/dist/targets/linux/FpmTarget.js.map +1 -1
  207. package/dist/targets/linux/LinuxTargetHelper.d.ts +13 -0
  208. package/dist/targets/linux/LinuxTargetHelper.d.ts.map +1 -1
  209. package/dist/targets/linux/LinuxTargetHelper.js +81 -61
  210. package/dist/targets/linux/LinuxTargetHelper.js.map +1 -1
  211. package/dist/targets/linux/appimage/AppImageTarget.d.ts +2 -0
  212. package/dist/targets/linux/appimage/AppImageTarget.d.ts.map +1 -1
  213. package/dist/targets/linux/appimage/AppImageTarget.js +20 -15
  214. package/dist/targets/linux/appimage/AppImageTarget.js.map +1 -1
  215. package/dist/targets/linux/appimage/appImageUtil.d.ts +8 -2
  216. package/dist/targets/linux/appimage/appImageUtil.d.ts.map +1 -1
  217. package/dist/targets/linux/appimage/appImageUtil.js +16 -9
  218. package/dist/targets/linux/appimage/appImageUtil.js.map +1 -1
  219. package/dist/targets/linux/appimage/appLauncher.d.ts +6 -0
  220. package/dist/targets/linux/appimage/appLauncher.d.ts.map +1 -1
  221. package/dist/targets/linux/appimage/appLauncher.js +18 -20
  222. package/dist/targets/linux/appimage/appLauncher.js.map +1 -1
  223. package/dist/targets/linux/flatpakBundle.d.ts +43 -0
  224. package/dist/targets/linux/flatpakBundle.d.ts.map +1 -0
  225. package/dist/targets/linux/flatpakBundle.js +210 -0
  226. package/dist/targets/linux/flatpakBundle.js.map +1 -0
  227. package/dist/targets/linux/launcherScript.d.ts +32 -0
  228. package/dist/targets/linux/launcherScript.d.ts.map +1 -0
  229. package/dist/targets/linux/launcherScript.js +24 -0
  230. package/dist/targets/linux/launcherScript.js.map +1 -0
  231. package/dist/targets/linux/snap/SnapTarget.d.ts +1 -1
  232. package/dist/targets/linux/snap/SnapTarget.d.ts.map +1 -1
  233. package/dist/targets/linux/snap/SnapTarget.js +23 -1
  234. package/dist/targets/linux/snap/SnapTarget.js.map +1 -1
  235. package/dist/targets/linux/snap/core24.d.ts +13 -2
  236. package/dist/targets/linux/snap/core24.d.ts.map +1 -1
  237. package/dist/targets/linux/snap/core24.js +107 -95
  238. package/dist/targets/linux/snap/core24.js.map +1 -1
  239. package/dist/targets/linux/snap/coreCustom.d.ts +1 -1
  240. package/dist/targets/linux/snap/coreCustom.d.ts.map +1 -1
  241. package/dist/targets/linux/snap/coreCustom.js +2 -2
  242. package/dist/targets/linux/snap/coreCustom.js.map +1 -1
  243. package/dist/targets/linux/snap/coreLegacy.d.ts +10 -3
  244. package/dist/targets/linux/snap/coreLegacy.d.ts.map +1 -1
  245. package/dist/targets/linux/snap/coreLegacy.js +37 -18
  246. package/dist/targets/linux/snap/coreLegacy.js.map +1 -1
  247. package/dist/targets/linux/snap/snapCommand.d.ts +13 -0
  248. package/dist/targets/linux/snap/snapCommand.d.ts.map +1 -0
  249. package/dist/targets/linux/snap/snapCommand.js +21 -0
  250. package/dist/targets/linux/snap/snapCommand.js.map +1 -0
  251. package/dist/targets/linux/snap/snapPlugs.d.ts +76 -0
  252. package/dist/targets/linux/snap/snapPlugs.d.ts.map +1 -0
  253. package/dist/targets/linux/snap/snapPlugs.js +242 -0
  254. package/dist/targets/linux/snap/snapPlugs.js.map +1 -0
  255. package/dist/targets/linux/snap/snapcraft.d.ts +190 -0
  256. package/dist/targets/linux/snap/snapcraft.d.ts.map +1 -0
  257. package/dist/targets/linux/snap/snapcraft.js +11 -0
  258. package/dist/targets/linux/snap/snapcraft.js.map +1 -0
  259. package/dist/targets/linux/snap/snapcraftBuilder.d.ts +7 -1
  260. package/dist/targets/linux/snap/snapcraftBuilder.d.ts.map +1 -1
  261. package/dist/targets/linux/snap/snapcraftBuilder.js +57 -20
  262. package/dist/targets/linux/snap/snapcraftBuilder.js.map +1 -1
  263. package/dist/targets/mac/MacTargetHelper.d.ts +146 -14
  264. package/dist/targets/mac/MacTargetHelper.d.ts.map +1 -1
  265. package/dist/targets/mac/MacTargetHelper.js +485 -91
  266. package/dist/targets/mac/MacTargetHelper.js.map +1 -1
  267. package/dist/targets/mac/pkg.d.ts +16 -0
  268. package/dist/targets/mac/pkg.d.ts.map +1 -1
  269. package/dist/targets/mac/pkg.js +31 -5
  270. package/dist/targets/mac/pkg.js.map +1 -1
  271. package/dist/targets/targetFactory.d.ts +7 -0
  272. package/dist/targets/targetFactory.d.ts.map +1 -1
  273. package/dist/targets/targetFactory.js +28 -0
  274. package/dist/targets/targetFactory.js.map +1 -1
  275. package/dist/targets/win/AppxTarget.d.ts +1 -2
  276. package/dist/targets/win/AppxTarget.d.ts.map +1 -1
  277. package/dist/targets/win/AppxTarget.js +37 -314
  278. package/dist/targets/win/AppxTarget.js.map +1 -1
  279. package/dist/targets/win/MsiTarget.d.ts.map +1 -1
  280. package/dist/targets/win/MsiTarget.js +13 -13
  281. package/dist/targets/win/MsiTarget.js.map +1 -1
  282. package/dist/targets/win/MsixTarget.d.ts +22 -0
  283. package/dist/targets/win/MsixTarget.d.ts.map +1 -0
  284. package/dist/targets/win/MsixTarget.js +214 -0
  285. package/dist/targets/win/MsixTarget.js.map +1 -0
  286. package/dist/targets/win/nsis/Defines.d.ts +4 -0
  287. package/dist/targets/win/nsis/Defines.d.ts.map +1 -1
  288. package/dist/targets/win/nsis/Defines.js.map +1 -1
  289. package/dist/targets/win/nsis/NsisTarget.d.ts +64 -3
  290. package/dist/targets/win/nsis/NsisTarget.d.ts.map +1 -1
  291. package/dist/targets/win/nsis/NsisTarget.js +277 -113
  292. package/dist/targets/win/nsis/NsisTarget.js.map +1 -1
  293. package/dist/targets/win/nsis/WebInstallerTarget.d.ts.map +1 -1
  294. package/dist/targets/win/nsis/WebInstallerTarget.js +23 -12
  295. package/dist/targets/win/nsis/WebInstallerTarget.js.map +1 -1
  296. package/dist/targets/win/nsis/nsisOptions.d.ts +58 -48
  297. package/dist/targets/win/nsis/nsisOptions.d.ts.map +1 -1
  298. package/dist/targets/win/nsis/nsisOptions.js.map +1 -1
  299. package/dist/targets/win/nsis/nsisScriptGenerator.d.ts.map +1 -1
  300. package/dist/targets/win/nsis/nsisScriptGenerator.js +4 -3
  301. package/dist/targets/win/nsis/nsisScriptGenerator.js.map +1 -1
  302. package/dist/targets/win/nsis/nsisUtil.d.ts +17 -2
  303. package/dist/targets/win/nsis/nsisUtil.d.ts.map +1 -1
  304. package/dist/targets/win/nsis/nsisUtil.js +148 -41
  305. package/dist/targets/win/nsis/nsisUtil.js.map +1 -1
  306. package/dist/targets/win/nsis/progId.d.ts +21 -0
  307. package/dist/targets/win/nsis/progId.d.ts.map +1 -0
  308. package/dist/targets/win/nsis/progId.js +60 -0
  309. package/dist/targets/win/nsis/progId.js.map +1 -0
  310. package/dist/targets/win/winAppUtil.d.ts +115 -0
  311. package/dist/targets/win/winAppUtil.d.ts.map +1 -0
  312. package/dist/targets/win/winAppUtil.js +409 -0
  313. package/dist/targets/win/winAppUtil.js.map +1 -0
  314. package/dist/toolsets/7zip.d.ts +32 -0
  315. package/dist/toolsets/7zip.d.ts.map +1 -1
  316. package/dist/toolsets/7zip.js +39 -11
  317. package/dist/toolsets/7zip.js.map +1 -1
  318. package/dist/toolsets/appimage.d.ts +3 -3
  319. package/dist/toolsets/appimage.d.ts.map +1 -1
  320. package/dist/toolsets/appimage.js +24 -21
  321. package/dist/toolsets/appimage.js.map +1 -1
  322. package/dist/toolsets/custom.d.ts +2 -3
  323. package/dist/toolsets/custom.d.ts.map +1 -1
  324. package/dist/toolsets/custom.js +67 -149
  325. package/dist/toolsets/custom.js.map +1 -1
  326. package/dist/toolsets/fpm.d.ts.map +1 -1
  327. package/dist/toolsets/fpm.js +11 -5
  328. package/dist/toolsets/fpm.js.map +1 -1
  329. package/dist/toolsets/icons.d.ts.map +1 -1
  330. package/dist/toolsets/icons.js +17 -3
  331. package/dist/toolsets/icons.js.map +1 -1
  332. package/dist/toolsets/linuxToolsMac.d.ts.map +1 -1
  333. package/dist/toolsets/linuxToolsMac.js +17 -4
  334. package/dist/toolsets/linuxToolsMac.js.map +1 -1
  335. package/dist/toolsets/nsis.d.ts +5 -0
  336. package/dist/toolsets/nsis.d.ts.map +1 -1
  337. package/dist/toolsets/nsis.js +20 -4
  338. package/dist/toolsets/nsis.js.map +1 -1
  339. package/dist/toolsets/version.d.ts +12 -0
  340. package/dist/toolsets/version.d.ts.map +1 -0
  341. package/dist/toolsets/version.js +13 -0
  342. package/dist/toolsets/version.js.map +1 -0
  343. package/dist/toolsets/winCodeSign.d.ts +56 -3
  344. package/dist/toolsets/winCodeSign.d.ts.map +1 -1
  345. package/dist/toolsets/winCodeSign.js +125 -42
  346. package/dist/toolsets/winCodeSign.js.map +1 -1
  347. package/dist/toolsets/wine.d.ts +2 -1
  348. package/dist/toolsets/wine.d.ts.map +1 -1
  349. package/dist/toolsets/wine.js +31 -15
  350. package/dist/toolsets/wine.js.map +1 -1
  351. package/dist/util/AppFileWalker.js +9 -1
  352. package/dist/util/AppFileWalker.js.map +1 -1
  353. package/dist/util/NodeModuleCopyHelper.js +14 -6
  354. package/dist/util/NodeModuleCopyHelper.js.map +1 -1
  355. package/dist/util/appFileCopier.d.ts +67 -2
  356. package/dist/util/appFileCopier.d.ts.map +1 -1
  357. package/dist/util/appFileCopier.js +244 -32
  358. package/dist/util/appFileCopier.js.map +1 -1
  359. package/dist/util/archCompatibility.d.ts +42 -0
  360. package/dist/util/archCompatibility.d.ts.map +1 -0
  361. package/dist/util/archCompatibility.js +202 -0
  362. package/dist/util/archCompatibility.js.map +1 -0
  363. package/dist/util/checksum.d.ts +36 -0
  364. package/dist/util/checksum.d.ts.map +1 -0
  365. package/dist/util/checksum.js +48 -0
  366. package/dist/util/checksum.js.map +1 -0
  367. package/dist/util/config/config.d.ts +2 -1
  368. package/dist/util/config/config.d.ts.map +1 -1
  369. package/dist/util/config/config.js +42 -20
  370. package/dist/util/config/config.js.map +1 -1
  371. package/dist/util/config/fileOptions.d.ts +30 -0
  372. package/dist/util/config/fileOptions.d.ts.map +1 -0
  373. package/dist/util/config/fileOptions.js +120 -0
  374. package/dist/util/config/fileOptions.js.map +1 -0
  375. package/dist/util/config/legacyConfigGuard.d.ts +7 -0
  376. package/dist/util/config/legacyConfigGuard.d.ts.map +1 -0
  377. package/dist/util/config/legacyConfigGuard.js +214 -0
  378. package/dist/util/config/legacyConfigGuard.js.map +1 -0
  379. package/dist/util/config/legacyOptions.d.ts +86 -0
  380. package/dist/util/config/legacyOptions.d.ts.map +1 -0
  381. package/dist/util/config/legacyOptions.js +413 -0
  382. package/dist/util/config/legacyOptions.js.map +1 -0
  383. package/dist/util/config/load.d.ts +2 -2
  384. package/dist/util/config/load.d.ts.map +1 -1
  385. package/dist/util/config/load.js +3 -12
  386. package/dist/util/config/load.js.map +1 -1
  387. package/dist/util/config/schemaValidator.d.ts.map +1 -1
  388. package/dist/util/config/schemaValidator.js +26 -3
  389. package/dist/util/config/schemaValidator.js.map +1 -1
  390. package/dist/util/electronGet.d.ts +43 -32
  391. package/dist/util/electronGet.d.ts.map +1 -1
  392. package/dist/util/electronGet.js +390 -137
  393. package/dist/util/electronGet.js.map +1 -1
  394. package/dist/util/flags.d.ts +5 -5
  395. package/dist/util/flags.d.ts.map +1 -1
  396. package/dist/util/flags.js +124 -16
  397. package/dist/util/flags.js.map +1 -1
  398. package/dist/util/hash.d.ts +1 -1
  399. package/dist/util/hash.d.ts.map +1 -1
  400. package/dist/util/hash.js +1 -15
  401. package/dist/util/hash.js.map +1 -1
  402. package/dist/util/installOrRebuild.d.ts +44 -0
  403. package/dist/util/installOrRebuild.d.ts.map +1 -0
  404. package/dist/util/installOrRebuild.js +276 -0
  405. package/dist/util/installOrRebuild.js.map +1 -0
  406. package/dist/util/langs.d.ts.map +1 -1
  407. package/dist/util/langs.js +1 -0
  408. package/dist/util/langs.js.map +1 -1
  409. package/dist/util/license.d.ts.map +1 -1
  410. package/dist/util/license.js +4 -1
  411. package/dist/util/license.js.map +1 -1
  412. package/dist/util/mac/macosIconComposer.d.ts +2 -1
  413. package/dist/util/mac/macosIconComposer.d.ts.map +1 -1
  414. package/dist/util/mac/macosIconComposer.js +40 -58
  415. package/dist/util/mac/macosIconComposer.js.map +1 -1
  416. package/dist/util/mac/macosVersion.d.ts +0 -1
  417. package/dist/util/mac/macosVersion.d.ts.map +1 -1
  418. package/dist/util/mac/macosVersion.js +0 -3
  419. package/dist/util/mac/macosVersion.js.map +1 -1
  420. package/dist/util/mac/plist.d.ts +1 -1
  421. package/dist/util/mac/plist.d.ts.map +1 -1
  422. package/dist/util/mac/plist.js +5 -0
  423. package/dist/util/mac/plist.js.map +1 -1
  424. package/dist/util/nativeBinaryVerifier.d.ts +40 -0
  425. package/dist/util/nativeBinaryVerifier.d.ts.map +1 -0
  426. package/dist/util/nativeBinaryVerifier.js +381 -0
  427. package/dist/util/nativeBinaryVerifier.js.map +1 -0
  428. package/dist/util/packageMetadata.js +57 -31
  429. package/dist/util/packageMetadata.js.map +1 -1
  430. package/dist/util/removedEnvVars.d.ts +25 -0
  431. package/dist/util/removedEnvVars.d.ts.map +1 -0
  432. package/dist/util/removedEnvVars.js +54 -0
  433. package/dist/util/removedEnvVars.js.map +1 -0
  434. package/dist/util/repositoryInfo.js +6 -3
  435. package/dist/util/repositoryInfo.js.map +1 -1
  436. package/dist/util/resolve.js +1 -1
  437. package/dist/util/resolve.js.map +1 -1
  438. package/dist/util/streamSpawnToFile.d.ts +47 -0
  439. package/dist/util/streamSpawnToFile.d.ts.map +1 -0
  440. package/dist/util/streamSpawnToFile.js +110 -0
  441. package/dist/util/streamSpawnToFile.js.map +1 -0
  442. package/dist/util/toolsetLock.d.ts +2 -0
  443. package/dist/util/toolsetLock.d.ts.map +1 -1
  444. package/dist/util/toolsetLock.js +31 -5
  445. package/dist/util/toolsetLock.js.map +1 -1
  446. package/dist/util/trustedSourceRoots.d.ts +59 -0
  447. package/dist/util/trustedSourceRoots.d.ts.map +1 -0
  448. package/dist/util/trustedSourceRoots.js +127 -0
  449. package/dist/util/trustedSourceRoots.js.map +1 -0
  450. package/dist/version.d.ts +1 -1
  451. package/dist/version.d.ts.map +1 -1
  452. package/dist/version.js +1 -1
  453. package/dist/version.js.map +1 -1
  454. package/dist/vm/ParallelsVm.d.ts.map +1 -1
  455. package/dist/vm/ParallelsVm.js +29 -3
  456. package/dist/vm/ParallelsVm.js.map +1 -1
  457. package/dist/vm/vm.d.ts +2 -0
  458. package/dist/vm/vm.d.ts.map +1 -1
  459. package/dist/vm/vm.js +29 -6
  460. package/dist/vm/vm.js.map +1 -1
  461. package/dist/winPackager.d.ts +6 -5
  462. package/dist/winPackager.d.ts.map +1 -1
  463. package/dist/winPackager.js +45 -39
  464. package/dist/winPackager.js.map +1 -1
  465. package/package.json +20 -20
  466. package/scheme.json +2112 -1495
  467. package/templates/appx/appxmanifest.xml +2 -3
  468. package/templates/entitlements.mac.adhoc.plist +15 -0
  469. package/templates/entitlements.mac.plist +9 -6
  470. package/templates/msix/appxmanifest.xml +45 -0
  471. package/templates/nsis/assistedMessages.yml +17 -0
  472. package/templates/nsis/common.nsh +2 -2
  473. package/templates/nsis/include/allowOnlyOneInstallerInstance.nsh +96 -13
  474. package/templates/nsis/include/extractAppPackage.nsh +5 -2
  475. package/templates/nsis/include/installUtil.nsh +2 -2
  476. package/templates/nsis/include/installer.nsh +94 -53
  477. package/templates/nsis/include/webPackage.nsh +52 -27
  478. package/templates/nsis/installSection.nsh +29 -0
  479. package/templates/nsis/installer.nsi +1 -1
  480. package/templates/nsis/messages.yml +5 -0
  481. package/templates/nsis/multiUserUi.nsh +1 -1
  482. package/dist/codeSign/signManager.d.ts +0 -14
  483. package/dist/codeSign/signManager.d.ts.map +0 -1
  484. package/dist/codeSign/signManager.js +0 -2
  485. package/dist/codeSign/signManager.js.map +0 -1
  486. package/dist/util/yarn.d.ts +0 -23
  487. package/dist/util/yarn.d.ts.map +0 -1
  488. package/dist/util/yarn.js +0 -153
  489. package/dist/util/yarn.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacyConfigGuard.js","sourceRoot":"","sources":["../../../src/util/config/legacyConfigGuard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAE7D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACnE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAA;AAE9K;;;;;;;;;;;GAWG;AAEH,MAAM,sBAAsB,GAAG,CAAC,KAAK,EAAE,KAAK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AC;AAED;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAqB;IAC5D,MAAM,GAAG,GAAG,MAAwC,CAAA;IACpD,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,MAAM,QAAQ,GAAa,EAAE,CAAA;IAE7B,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IACxC,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;IACjC,yBAAyB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;IACtC,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;IAChC,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;IAChC,qBAAqB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;IAElC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACnB,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAM;IACR,CAAC;IAED,MAAM,MAAM,GACV,MAAM,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,CAAC,6EAA6E;QAC/E,CAAC,CAAC,2BAA2B,MAAM,CAAC,MAAM,qDAAqD,CAAA;IACnG,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,kCAAkC,oBAAoB,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACnI,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAA;IACxC,MAAM,IAAI,yBAAyB,CAAC,OAAO,CAAC,CAAA;AAC9C,CAAC","sourcesContent":["import { InvalidConfigurationError, log } from \"builder-util\"\nimport { Configuration } from \"../../configuration.js\"\nimport { hasFlatFileOption, isPlainObject } from \"./fileOptions.js\"\nimport { ALL_PLATFORM_KEYS, BREAKING_CHANGES_URL, FILE_OPTION_KEYS, FILE_OPTIONS_ANCHOR, formatLegacyOptionMessage, RESOLVED_LEGACY_CONFIG_OPTIONS } from \"./legacyOptions.js\"\n\n/**\n * Build-time guard for configurations still written against v26.\n *\n * Almost every removed key is already rejected by `scheme.json` (`additionalProperties: false`), but\n * ajv can only say \"has an unknown property 'identity'\" — it cannot say the option moved to\n * `mac.sign.identity`. This pass runs *before* schema validation so the targeted message wins, and it\n * aggregates every legacy key into a single error: a config with a dozen moved mac options should\n * not take a dozen build attempts to fix.\n *\n * Nothing here rejects a value a valid v27 config can contain — every guarded path is covered by a\n * test asserting the v27 schema rejects it too.\n */\n\nconst PLATFORMS_WITH_PUBLISH = [\"mac\", \"win\", \"linux\"] as const\n\n/** v26 `snap` options that belong under the base-named sub-key in v27, not directly on `snapcraft`. */\nconst SNAPCRAFT_BASE_LEVEL_KEYS = new Set([\n \"confinement\",\n \"grade\",\n \"stagePackages\",\n \"buildPackages\",\n \"plugs\",\n \"slots\",\n \"after\",\n \"environment\",\n \"hooks\",\n \"layout\",\n \"appPartStage\",\n \"assumes\",\n \"autoStart\",\n \"summary\",\n \"title\",\n \"compression\",\n \"allowNativeWayland\",\n \"useTemplateApp\",\n])\n\nconst SNAPCRAFT_BASES = [\"core18\", \"core20\", \"core22\", \"core24\", \"custom\"]\n\nfunction docLink(anchor: string): string {\n return ` ${BREAKING_CHANGES_URL}#${anchor}`\n}\n\n/** Resolves `path` against `config`, returning the holding object or null when any segment is missing. */\nfunction resolveParent(config: Record<string, any>, path: readonly string[]): Record<string, any> | null {\n let node: Record<string, any> = config\n for (const segment of path) {\n const next = node[segment]\n if (!isPlainObject(next)) {\n return null\n }\n node = next\n }\n return node\n}\n\n/** Collects the legacy keys present anywhere in the config, using the shared mapping table. */\nfunction collectLegacyKeys(config: Record<string, any>, errors: string[], warnings: string[]): void {\n for (const option of RESOLVED_LEGACY_CONFIG_OPTIONS) {\n const parent = resolveParent(config, option.parentPath)\n if (parent == null || !(option.key in parent)) {\n continue\n }\n const message = formatLegacyOptionMessage(option)\n if (option.severity === \"error\") {\n errors.push(message)\n } else {\n warnings.push(message)\n }\n }\n}\n\n/**\n * `mac.sign` is a single union in v27, so a custom signer and an options bag can no longer coexist.\n * The sibling fields are already reported by `collectLegacyKeys`; this adds the union explanation so\n * the user knows the two forms are mutually exclusive rather than assuming a mechanical move works.\n */\nfunction checkMacCustomSigner(config: Record<string, any>, errors: string[]): void {\n for (const platform of [\"mac\", \"mas\", \"masDev\"] as const) {\n const platformConfig = config[platform]\n if (!isPlainObject(platformConfig)) {\n continue\n }\n const sign = platformConfig.sign\n if (typeof sign !== \"string\" && typeof sign !== \"function\") {\n continue\n }\n const legacySiblings = RESOLVED_LEGACY_CONFIG_OPTIONS.filter(o => o.parentPath.length === 1 && o.parentPath[0] === platform && o.key in platformConfig).map(o => o.key)\n if (legacySiblings.length === 0) {\n continue\n }\n errors.push(\n `\\`${platform}.sign\\` is a custom signing function or module path, and \\`${platform}\\` also sets [${legacySiblings.join(\", \")}].\\n` +\n ` In v27 \\`${platform}.sign\\` is a single union — a custom signer cannot carry signing options alongside it.\\n` +\n ` Either keep the custom signer and read those options inside it, or drop it and use an ElectronSignOptions object.\\n` +\n docLink(\"macos-signing-macsign\")\n )\n }\n}\n\n/**\n * `win.sign` is a discriminated union in v27. Without `type`, ajv reports one\n * \"unknown property\" error per union branch and never mentions the missing discriminator.\n */\nfunction checkWinSignDiscriminator(config: Record<string, any>, errors: string[]): void {\n const sign = config.win?.sign\n if (!isPlainObject(sign) || \"type\" in sign) {\n return\n }\n errors.push(\n \"`win.sign` is missing its `type` discriminator.\\n\" +\n ' v27 types `win.sign` as a union: `type: \"signtool\" | \"hsm\" | \"pkcs11\" | \"azure\"`.\\n' +\n ' A config migrated from `win.signtoolOptions` needs `type: \"signtool\"`; one from `win.azureSignOptions` needs `type: \"azure\"`.\\n' +\n docLink(\"windows-signing-winsign\")\n )\n}\n\n/**\n * `snapcraft.base` is required, but because `snapcraft` is `anyOf[SnapcraftOptions, null]` the ajv\n * output collapses to \"configuration.snapcraft should be one of these: null\" — which reads as an\n * instruction to null out the config.\n */\nfunction checkSnapcraftShape(config: Record<string, any>, errors: string[]): void {\n const snapcraft = config.snapcraft\n if (!isPlainObject(snapcraft)) {\n return\n }\n if (!(\"base\" in snapcraft)) {\n errors.push(\n \"`snapcraft` is missing the required `base` field.\\n\" +\n ` Set it to one of ${SNAPCRAFT_BASES.map(b => `\"${b}\"`).join(\" | \")} and nest that base's options under a matching sub-key, ` +\n 'e.g. `{ \"snapcraft\": { \"base\": \"core22\", \"core22\": { … } } }`.\\n' +\n docLink(\"snap-snapcraft\")\n )\n return\n }\n const flatKeys = Object.keys(snapcraft).filter(k => SNAPCRAFT_BASE_LEVEL_KEYS.has(k))\n if (flatKeys.length > 0) {\n errors.push(\n `\\`snapcraft\\` sets [${flatKeys.join(\", \")}] directly, but in v27 those belong under the base-named sub-key.\\n` +\n ` Move them under \\`snapcraft.${snapcraft.base}\\`, e.g. \\`{ \"snapcraft\": { \"base\": \"${snapcraft.base}\", \"${snapcraft.base}\": { \"${flatKeys[0]}\": … } } }\\`.\\n` +\n docLink(\"snap-snapcraft\")\n )\n }\n}\n\n/**\n * `vPrefixedTagName` was removed from GitHub publish options only — GitLab still supports it, so the\n * check has to discriminate on `provider` rather than on the key name.\n */\nfunction checkPublishEntries(config: Record<string, any>, errors: string[]): void {\n const check = (value: unknown, label: string) => {\n if (value == null) {\n return\n }\n for (const entry of Array.isArray(value) ? value : [value]) {\n if (!isPlainObject(entry) || entry.provider !== \"github\" || !(\"vPrefixedTagName\" in entry)) {\n continue\n }\n const suggested = entry.vPrefixedTagName === false ? '\"\"' : '\"v\"'\n errors.push(\n `\\`${label}.vPrefixedTagName\\` was removed from the GitHub publish options in v27.\\n` +\n ` Use \\`tagNamePrefix: ${suggested}\\` instead (it defaults to \"v\", so you can drop the key entirely to keep the default).\\n` +\n \" This applies to GitHub only — GitLab's `vPrefixedTagName` is unchanged.\\n\" +\n \" Run `electron-builder migrate-schema` to update your configuration automatically.\\n\" +\n docLink(\"githuboptions-gitlaboptions-vprefixedtagname\")\n )\n }\n }\n check(config.publish, \"publish\")\n for (const platform of PLATFORMS_WITH_PUBLISH) {\n check(config[platform]?.publish, `${platform}.publish`)\n }\n}\n\n/**\n * `fileOptions` is an object holding the `files` / `extraResources` / `extraFiles` lists. Writing the `files` list itself\n * there (`\"fileOptions\": [\"dist/**\"]`) is an easy mistake when moving a `files` key into it by hand, and ajv only reports\n * that `fileOptions` \"should be object\". `normalizeFileOptions` leaves the flat keys next to such a value in place, so\n * they are named here too.\n */\nfunction checkFileOptionsShape(config: Record<string, any>, errors: string[]): void {\n const check = (holder: Record<string, any>, prefix: string) => {\n const value = holder.fileOptions\n if (value == null || isPlainObject(value)) {\n return\n }\n const flatKeys = FILE_OPTION_KEYS.filter(key => hasFlatFileOption(holder, key)).map(key => `${prefix}${key}`)\n const files = Array.isArray(value) || typeof value === \"string\" ? JSON.stringify(value) : '[\"**/*\"]'\n errors.push(\n `\\`${prefix}fileOptions\\` must be an object holding \\`files\\`, \\`extraResources\\` and/or \\`extraFiles\\`, not ${Array.isArray(value) ? \"an array\" : `a ${typeof value}`}` +\n (flatKeys.length > 0 ? ` (the configuration also sets [${flatKeys.join(\", \")}], which belong inside it)` : \"\") +\n \".\\n\" +\n ` e.g. \\`${prefix}fileOptions: { files: ${files} }\\`.\\n` +\n \" Run `electron-builder migrate-schema` (with `--config <path>` if your config file has another name) to move flat `files` / `extraResources` / `extraFiles` keys into it automatically.\\n\" +\n docLink(FILE_OPTIONS_ANCHOR)\n )\n }\n check(config, \"\")\n for (const platform of ALL_PLATFORM_KEYS) {\n if (isPlainObject(config[platform])) {\n check(config[platform], `${platform}.`)\n }\n }\n}\n\n/**\n * Throws a single aggregated {@link InvalidConfigurationError} naming every v26 option found, and\n * warns about the ones that are merely discouraged. Runs before schema validation.\n */\nexport function checkLegacyConfiguration(config: Configuration): void {\n const raw = config as unknown as Record<string, any>\n const errors: string[] = []\n const warnings: string[] = []\n\n collectLegacyKeys(raw, errors, warnings)\n checkMacCustomSigner(raw, errors)\n checkWinSignDiscriminator(raw, errors)\n checkSnapcraftShape(raw, errors)\n checkPublishEntries(raw, errors)\n checkFileOptionsShape(raw, errors)\n\n for (const warning of warnings) {\n log.warn(warning)\n }\n\n if (errors.length === 0) {\n return\n }\n\n const header =\n errors.length === 1\n ? \"Your configuration uses an option that was removed in electron-builder v27:\"\n : `Your configuration uses ${errors.length} options that were removed in electron-builder v27:`\n const message = [header, \"\", ...errors.map(e => `• ${e}`), \"\", `Full list of breaking changes: ${BREAKING_CHANGES_URL}`].join(\"\\n\")\n log.error(null, \"invalid configuration\")\n throw new InvalidConfigurationError(message)\n}\n"]}
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Single source of truth for the v26 → v27 configuration migration.
3
+ *
4
+ * Two consumers read this table and must never drift apart:
5
+ * - `checkLegacyConfiguration` (this package) — the build-time guard that tells a user who upgraded
6
+ * without reading the migration guide exactly which key moved where.
7
+ * - `electron-builder migrate-schema` (the `electron-builder` package) — the opt-in rewriter.
8
+ *
9
+ * The migrator lives in a package that depends on this one, so the table has to live here for both
10
+ * to share it. Keeping the field lists in one place is not cosmetic: `gatekeeperAssess` was moved
11
+ * into `mac.sign` by the migrator while the schema rejected it there, producing configs that failed
12
+ * validation on the next build.
13
+ */
14
+ /** macOS signing fields that moved from the platform root into the `sign` (ElectronSignOptions) bag. */
15
+ export declare const MAC_SIGN_FIELDS: readonly ["identity", "entitlements", "entitlementsInherit", "entitlementsLoginHelper", "provisioningProfile", "type", "binaries", "requirements", "hardenedRuntime", "strictVerify", "preAutoEntitlements", "timestamp", "additionalArguments"];
16
+ /**
17
+ * macOS signing fields that were removed outright rather than moved under `sign`.
18
+ * `@electron/osx-sign` 2.x dropped the `spctl --assess` step, so there is no `sign.gatekeeperAssess`
19
+ * to migrate to — `ElectronSignOptions` omits it and the schema rejects it.
20
+ */
21
+ export declare const MAC_SIGN_REMOVED_FIELDS: readonly ["gatekeeperAssess"];
22
+ /** Universal-build fields that moved from the platform root into the `universal` bag. */
23
+ export declare const MAC_UNIVERSAL_FIELDS: readonly ["mergeASARs", "singleArchFiles", "x64ArchFiles"];
24
+ /**
25
+ * Azure Trusted Signing typed fields in v27 (everything else is an extra key → `additionalMetadata`).
26
+ * `type` is included so it is not mistakenly moved to `additionalMetadata` if already present.
27
+ */
28
+ export declare const AZURE_KNOWN_FIELDS: Set<string>;
29
+ /** `electronDownload` fields with no equivalent in the v27 `ElectronGetOptions` (@electron/get v5) shape. */
30
+ export declare const ELECTRON_DOWNLOAD_DROPPED: readonly ["cache", "customDir", "customFilename", "strictSSL", "platform", "arch", "version", "force"];
31
+ /** Platform keys that accept the macOS signing/universal options. */
32
+ export declare const MAC_PLATFORM_KEYS: readonly ["mac", "mas", "masDev"];
33
+ /** Config sections typed as `CommonNsisOptions`, which accepted `customNsisBinary` / `customNsisResources` in v26. */
34
+ export declare const NSIS_CONFIG_KEYS: readonly ["nsis", "nsisWeb", "portable"];
35
+ /** Every platform key that accepted the shared per-platform options in v26. */
36
+ export declare const ALL_PLATFORM_KEYS: readonly ["mac", "mas", "masDev", "win", "linux"];
37
+ export declare const BREAKING_CHANGES_URL = "https://www.electron.build/docs/migration/v27-breaking-changes";
38
+ /**
39
+ * File-copy options nested under `fileOptions`, at the configuration root and on every platform key
40
+ * (`files` → `fileOptions.files`, `mac.extraResources` → `mac.fileOptions.extraResources`, …).
41
+ *
42
+ * Unlike the options in {@link LEGACY_CONFIG_OPTIONS}, flat keys are not rejected: they are normalized into
43
+ * `fileOptions` with a warning when the configuration is loaded, before validation, although the types and the
44
+ * schema only have `fileOptions`.
45
+ */
46
+ export declare const FILE_OPTION_KEYS: readonly ["files", "extraResources", "extraFiles"];
47
+ /** Anchor of the `fileOptions` entry within the breaking-changes page. */
48
+ export declare const FILE_OPTIONS_ANCHOR = "file-options-fileoptions";
49
+ export interface LegacyConfigOption {
50
+ /** The removed key itself. */
51
+ readonly key: string;
52
+ /** Path to the object holding `key`. Empty = the configuration root. */
53
+ readonly parent?: readonly string[];
54
+ /**
55
+ * When set, `parent` is ignored and one entry is generated per platform key:
56
+ * `"mac"` → mac/mas/masDev, `"all"` → those plus win/linux.
57
+ */
58
+ readonly scope?: "mac" | "all";
59
+ /** The v27 form, or `null` when the option was removed with no replacement. */
60
+ readonly replacement: string | null;
61
+ /** True when `electron-builder migrate-schema` rewrites this automatically. */
62
+ readonly autoMigrated: boolean;
63
+ readonly severity: "error" | "warn";
64
+ /** Extra sentence appended to the message — inverted polarity, lost behaviour, etc. */
65
+ readonly detail?: string;
66
+ /** Anchor within the breaking-changes page. */
67
+ readonly anchor: string;
68
+ }
69
+ export declare const LEGACY_CONFIG_OPTIONS: readonly LegacyConfigOption[];
70
+ /** A `LegacyConfigOption` with its `scope` expanded to a concrete parent path. */
71
+ export interface ResolvedLegacyConfigOption extends LegacyConfigOption {
72
+ /** Concrete path of the object holding `key`. */
73
+ readonly parentPath: readonly string[];
74
+ /** Dot-joined `parentPath` + `key`, as it appears in a user's config. */
75
+ readonly fullPath: string;
76
+ }
77
+ /** `LEGACY_CONFIG_OPTIONS` with every `scope` expanded into concrete paths. */
78
+ export declare const RESOLVED_LEGACY_CONFIG_OPTIONS: readonly ResolvedLegacyConfigOption[];
79
+ /**
80
+ * Renders the user-facing message for a single legacy option.
81
+ *
82
+ * A scoped option's `replacement` is relative to its platform key (`sign.identity`), so it is
83
+ * prefixed with the resolved parent to read as the user wrote it (`mac.sign.identity`).
84
+ */
85
+ export declare function formatLegacyOptionMessage(option: ResolvedLegacyConfigOption): string;
86
+ //# sourceMappingURL=legacyOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacyOptions.d.ts","sourceRoot":"","sources":["../../../src/util/config/legacyOptions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,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AM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,iDAAiD;IACjD,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B;AAcD,+EAA+E;AAC/E,eAAO,MAAM,8BAA8B,EAAE,SAAS,0BAA0B,EAAmC,CAAA;AAEnH;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,0BAA0B,GAAG,MAAM,CAmBpF"}
@@ -0,0 +1,413 @@
1
+ /**
2
+ * Single source of truth for the v26 → v27 configuration migration.
3
+ *
4
+ * Two consumers read this table and must never drift apart:
5
+ * - `checkLegacyConfiguration` (this package) — the build-time guard that tells a user who upgraded
6
+ * without reading the migration guide exactly which key moved where.
7
+ * - `electron-builder migrate-schema` (the `electron-builder` package) — the opt-in rewriter.
8
+ *
9
+ * The migrator lives in a package that depends on this one, so the table has to live here for both
10
+ * to share it. Keeping the field lists in one place is not cosmetic: `gatekeeperAssess` was moved
11
+ * into `mac.sign` by the migrator while the schema rejected it there, producing configs that failed
12
+ * validation on the next build.
13
+ */
14
+ /** macOS signing fields that moved from the platform root into the `sign` (ElectronSignOptions) bag. */
15
+ export const MAC_SIGN_FIELDS = [
16
+ "identity",
17
+ "entitlements",
18
+ "entitlementsInherit",
19
+ "entitlementsLoginHelper",
20
+ "provisioningProfile",
21
+ "type",
22
+ "binaries",
23
+ "requirements",
24
+ "hardenedRuntime",
25
+ "strictVerify",
26
+ "preAutoEntitlements",
27
+ "timestamp",
28
+ "additionalArguments",
29
+ ];
30
+ /**
31
+ * macOS signing fields that were removed outright rather than moved under `sign`.
32
+ * `@electron/osx-sign` 2.x dropped the `spctl --assess` step, so there is no `sign.gatekeeperAssess`
33
+ * to migrate to — `ElectronSignOptions` omits it and the schema rejects it.
34
+ */
35
+ export const MAC_SIGN_REMOVED_FIELDS = ["gatekeeperAssess"];
36
+ /** Universal-build fields that moved from the platform root into the `universal` bag. */
37
+ export const MAC_UNIVERSAL_FIELDS = ["mergeASARs", "singleArchFiles", "x64ArchFiles"];
38
+ /**
39
+ * Azure Trusted Signing typed fields in v27 (everything else is an extra key → `additionalMetadata`).
40
+ * `type` is included so it is not mistakenly moved to `additionalMetadata` if already present.
41
+ */
42
+ export const AZURE_KNOWN_FIELDS = new Set([
43
+ "type",
44
+ "endpoint",
45
+ "codeSigningAccountName",
46
+ "certificateProfileName",
47
+ "publisherName",
48
+ "fileDigest",
49
+ "timestampRfc3161",
50
+ "timestampDigest",
51
+ "additionalMetadata",
52
+ ]);
53
+ /** `electronDownload` fields with no equivalent in the v27 `ElectronGetOptions` (@electron/get v5) shape. */
54
+ export const ELECTRON_DOWNLOAD_DROPPED = ["cache", "customDir", "customFilename", "strictSSL", "platform", "arch", "version", "force"];
55
+ /** Platform keys that accept the macOS signing/universal options. */
56
+ export const MAC_PLATFORM_KEYS = ["mac", "mas", "masDev"];
57
+ /** Config sections typed as `CommonNsisOptions`, which accepted `customNsisBinary` / `customNsisResources` in v26. */
58
+ export const NSIS_CONFIG_KEYS = ["nsis", "nsisWeb", "portable"];
59
+ /** Every platform key that accepted the shared per-platform options in v26. */
60
+ export const ALL_PLATFORM_KEYS = ["mac", "mas", "masDev", "win", "linux"];
61
+ export const BREAKING_CHANGES_URL = "https://www.electron.build/docs/migration/v27-breaking-changes";
62
+ /**
63
+ * File-copy options nested under `fileOptions`, at the configuration root and on every platform key
64
+ * (`files` → `fileOptions.files`, `mac.extraResources` → `mac.fileOptions.extraResources`, …).
65
+ *
66
+ * Unlike the options in {@link LEGACY_CONFIG_OPTIONS}, flat keys are not rejected: they are normalized into
67
+ * `fileOptions` with a warning when the configuration is loaded, before validation, although the types and the
68
+ * schema only have `fileOptions`.
69
+ */
70
+ export const FILE_OPTION_KEYS = ["files", "extraResources", "extraFiles"];
71
+ /** Anchor of the `fileOptions` entry within the breaking-changes page. */
72
+ export const FILE_OPTIONS_ANCHOR = "file-options-fileoptions";
73
+ const MAC_SIGN_ANCHOR = "macos-signing-macsign";
74
+ const ASAR_ANCHOR = "asar-options-asar";
75
+ const NATIVE_MODULES_ANCHOR = "native-module-options-nativemodules";
76
+ const ELECTRON_GET_ANCHOR = "electrondownload-electronget";
77
+ const WIN_SIGN_ANCHOR = "windows-signing-winsign";
78
+ const CUSTOM_NSIS_ANCHOR = "customnsisbinary-and-customnsisresources-replaced-by-toolsetsnsis";
79
+ const TOOLSETS_NSIS_DETAIL = "Set a custom NSIS bundle via `toolsets.nsis: { url, checksum, version }`. " +
80
+ "This is not a rename. The artifacts provided by `.customNsisBinary` & `.customNsisResources` have been merged into one toolset. " +
81
+ "To continue using custom NSIS binary/resources in your build see (https://www.electron.build/docs/toolsets#custom-nsis-bundle-layout). " +
82
+ "For a complete migration guide from `.customNsisBinary` & `.customNsisResources` to " +
83
+ "the new `toolsets.nsis` bundle see (https://www.electron.build/docs/migration/v26-to-v27#step-4-custom-nsis-migration-guide).";
84
+ export const LEGACY_CONFIG_OPTIONS = [
85
+ // ── Removed outright ──────────────────────────────────────────────────────
86
+ {
87
+ key: "electronCompile",
88
+ replacement: null,
89
+ autoMigrated: true,
90
+ severity: "error",
91
+ detail: "electron-compile is unmaintained (no release since 2019). Compile your sources with electron-vite, esbuild, or webpack before packaging.",
92
+ anchor: "electroncompile",
93
+ },
94
+ {
95
+ key: "framework",
96
+ replacement: null,
97
+ autoMigrated: true,
98
+ severity: "error",
99
+ detail: 'Electron is the only supported framework — "electron" was and remains the default. `proton` / `proton-native` and `libui` support was removed.',
100
+ anchor: "framework-nodeversion-launchuiversion",
101
+ },
102
+ {
103
+ key: "nodeVersion",
104
+ replacement: null,
105
+ autoMigrated: true,
106
+ severity: "error",
107
+ detail: "It only applied to libui-based frameworks and never affected Electron builds.",
108
+ anchor: "framework-nodeversion-launchuiversion",
109
+ },
110
+ {
111
+ key: "launchUiVersion",
112
+ replacement: null,
113
+ autoMigrated: true,
114
+ severity: "error",
115
+ detail: "It only applied to libui-based frameworks on Windows.",
116
+ anchor: "framework-nodeversion-launchuiversion",
117
+ },
118
+ {
119
+ key: "disableDefaultIgnoredFiles",
120
+ scope: "all",
121
+ replacement: null,
122
+ autoMigrated: true,
123
+ severity: "error",
124
+ detail: 'To keep a default-excluded file, name it concretely in a `fileOptions.files` glob instead — e.g. `"fileOptions": { "files": ["**/*", "**/*.obj"] }`.',
125
+ anchor: "disabledefaultignoredfiles",
126
+ },
127
+ {
128
+ key: "systemIntegration",
129
+ parent: ["appImage"],
130
+ replacement: null,
131
+ autoMigrated: true,
132
+ severity: "error",
133
+ detail: "Desktop integration is handled automatically by AppImageLauncher.",
134
+ anchor: "appimagesystemintegration",
135
+ },
136
+ {
137
+ key: "syncDesktopName",
138
+ parent: ["linux"],
139
+ replacement: null,
140
+ autoMigrated: true,
141
+ severity: "error",
142
+ detail: "The behaviour it gated is now always on: the installed .desktop filename is always derived from `desktopName` (falling back to executableName). " +
143
+ "If you relied on the old filename, set `desktopName` explicitly to control it.",
144
+ anchor: "linuxsyncdesktopname-always-synced",
145
+ },
146
+ // ── Renamed / restructured: native modules ────────────────────────────────
147
+ {
148
+ key: "npmSkipBuildFromSource",
149
+ replacement: "nativeModules.buildDependenciesFromSource",
150
+ autoMigrated: true,
151
+ severity: "error",
152
+ detail: "Note the value is INVERTED — `npmSkipBuildFromSource: true` becomes `nativeModules.buildDependenciesFromSource: false`.",
153
+ anchor: "npmskipbuildfromsource",
154
+ },
155
+ { key: "buildDependenciesFromSource", replacement: "nativeModules.buildDependenciesFromSource", autoMigrated: true, severity: "error", anchor: NATIVE_MODULES_ANCHOR },
156
+ { key: "nodeGypRebuild", replacement: "nativeModules.nodeGypRebuild", autoMigrated: true, severity: "error", anchor: NATIVE_MODULES_ANCHOR },
157
+ { key: "npmRebuild", replacement: "nativeModules.npmRebuild", autoMigrated: true, severity: "error", anchor: NATIVE_MODULES_ANCHOR },
158
+ { key: "nativeRebuilder", replacement: "nativeModules.rebuildMode", autoMigrated: true, severity: "error", anchor: NATIVE_MODULES_ANCHOR },
159
+ // ── Renamed / restructured: asar ──────────────────────────────────────────
160
+ { key: "asarUnpack", scope: "all", replacement: "asar.unpack", autoMigrated: true, severity: "error", anchor: ASAR_ANCHOR },
161
+ { key: "asarUnpack", replacement: "asar.unpack", autoMigrated: true, severity: "error", anchor: ASAR_ANCHOR },
162
+ { key: "asar-unpack", replacement: "asar.unpack", autoMigrated: true, severity: "error", anchor: ASAR_ANCHOR },
163
+ { key: "asar-unpack-dir", replacement: "asar.unpack", autoMigrated: true, severity: "error", anchor: ASAR_ANCHOR },
164
+ { key: "unpackDir", parent: ["asar"], replacement: "asar.unpack", autoMigrated: true, severity: "error", anchor: ASAR_ANCHOR },
165
+ { key: "disableSanityCheckAsar", replacement: "asar.disableSanityCheck", autoMigrated: true, severity: "error", anchor: ASAR_ANCHOR },
166
+ { key: "disableAsarIntegrity", replacement: "asar.disableIntegrity", autoMigrated: true, severity: "error", anchor: ASAR_ANCHOR },
167
+ // ── Renamed / restructured: misc root ─────────────────────────────────────
168
+ { key: "helper-bundle-id", replacement: "mac.helperBundleId", autoMigrated: true, severity: "error", anchor: "buildhelper-bundle-id" },
169
+ {
170
+ key: "noMsi",
171
+ parent: ["squirrelWindows"],
172
+ replacement: "squirrelWindows.msi",
173
+ autoMigrated: true,
174
+ severity: "error",
175
+ detail: "Note the value is INVERTED — `noMsi: true` becomes `msi: false`.",
176
+ anchor: "squirrelwindowsnomsi",
177
+ },
178
+ {
179
+ key: "customSquirrelVendorDir",
180
+ parent: ["squirrelWindows"],
181
+ replacement: "toolsets.squirrel",
182
+ autoMigrated: false,
183
+ severity: "error",
184
+ detail: "The bundle layout differs: a custom `toolsets.squirrel` bundle (a `ToolsetCustom` object) must contain an `electron-winstaller/vendor/` subtree, " +
185
+ "whereas `customSquirrelVendorDir` pointed at the vendor files directly. Remove the key to use the default Squirrel bundle.",
186
+ anchor: "squirrelwindowscustomsquirrelvendordir",
187
+ },
188
+ {
189
+ key: "snap",
190
+ replacement: "snapcraft",
191
+ autoMigrated: true,
192
+ severity: "error",
193
+ detail: 'The new shape needs an explicit `base` with per-base options nested under it, e.g. `{ "snapcraft": { "base": "core22", "core22": { … } } }`.',
194
+ anchor: "snap-snapcraft",
195
+ },
196
+ // ── Renamed / restructured: electronDownload → electronGet ────────────────
197
+ {
198
+ key: "electronDownload",
199
+ replacement: "electronGet",
200
+ autoMigrated: true,
201
+ severity: "error",
202
+ detail: "The shape also changed to match @electron/get v5: `mirror` → `mirrorOptions.mirror`, `isVerifyChecksum: false` → `unsafelyDisableChecksums: true`.",
203
+ anchor: ELECTRON_GET_ANCHOR,
204
+ },
205
+ {
206
+ key: "isVerifyChecksum",
207
+ parent: ["electronGet"],
208
+ replacement: "electronGet.unsafelyDisableChecksums",
209
+ autoMigrated: true,
210
+ severity: "error",
211
+ detail: "Note the value is INVERTED — `isVerifyChecksum: false` becomes `unsafelyDisableChecksums: true`.",
212
+ anchor: ELECTRON_GET_ANCHOR,
213
+ },
214
+ {
215
+ key: "mirror",
216
+ parent: ["electronGet"],
217
+ replacement: "electronGet.mirrorOptions.mirror",
218
+ autoMigrated: true,
219
+ severity: "error",
220
+ anchor: ELECTRON_GET_ANCHOR,
221
+ },
222
+ {
223
+ key: "cache",
224
+ parent: ["electronGet"],
225
+ replacement: null,
226
+ autoMigrated: true,
227
+ severity: "error",
228
+ detail: "It is intentionally not exposed as a config key — set the `ELECTRON_BUILDER_CACHE` environment variable instead.",
229
+ anchor: ELECTRON_GET_ANCHOR,
230
+ },
231
+ {
232
+ key: "customDir",
233
+ parent: ["electronGet"],
234
+ replacement: null,
235
+ autoMigrated: true,
236
+ severity: "error",
237
+ detail: "Use `electronDist` to stage a custom Electron build.",
238
+ anchor: ELECTRON_GET_ANCHOR,
239
+ },
240
+ {
241
+ key: "customFilename",
242
+ parent: ["electronGet"],
243
+ replacement: null,
244
+ autoMigrated: true,
245
+ severity: "error",
246
+ detail: "Use `electronDist` to stage a custom Electron build.",
247
+ anchor: ELECTRON_GET_ANCHOR,
248
+ },
249
+ {
250
+ key: "strictSSL",
251
+ parent: ["electronGet"],
252
+ replacement: null,
253
+ autoMigrated: true,
254
+ severity: "error",
255
+ detail: "@electron/get v5 downloads via `fetch`, which has no equivalent option.",
256
+ anchor: ELECTRON_GET_ANCHOR,
257
+ },
258
+ {
259
+ key: "force",
260
+ parent: ["electronGet"],
261
+ replacement: null,
262
+ autoMigrated: true,
263
+ severity: "error",
264
+ detail: "@electron/get v5 has no equivalent. Clear the cache directory (or point `ELECTRON_BUILDER_CACHE` at a fresh path) to force a re-download.",
265
+ anchor: "electrongetoptionsforce-removed",
266
+ },
267
+ // ── Windows signing ───────────────────────────────────────────────────────
268
+ {
269
+ key: "signtoolOptions",
270
+ parent: ["win"],
271
+ replacement: 'win.sign with `type: "signtool"`',
272
+ autoMigrated: true,
273
+ severity: "error",
274
+ detail: "All fields move verbatim; add the `type` discriminator.",
275
+ anchor: WIN_SIGN_ANCHOR,
276
+ },
277
+ {
278
+ key: "azureSignOptions",
279
+ parent: ["win"],
280
+ replacement: 'win.sign with `type: "azure"`',
281
+ autoMigrated: true,
282
+ severity: "error",
283
+ detail: "Fields move verbatim; any extra keys that used the old index signature move into `additionalMetadata`.",
284
+ anchor: WIN_SIGN_ANCHOR,
285
+ },
286
+ {
287
+ key: "signExecutable",
288
+ parent: ["win"],
289
+ replacement: "win.sign: false",
290
+ autoMigrated: true,
291
+ severity: "error",
292
+ detail: "Only the `false` case has an equivalent (it disables signing; resource editing still runs). `signExecutable: true` was the default — delete it.",
293
+ anchor: "winsignexecutable-winsignandeditexecutable-removed",
294
+ },
295
+ {
296
+ key: "signAndEditExecutable",
297
+ parent: ["win"],
298
+ replacement: null,
299
+ autoMigrated: true,
300
+ severity: "error",
301
+ detail: "Resource editing always runs in v27. To skip signing only, set `win.sign: false`; there is no equivalent that also skips resource editing.",
302
+ anchor: "winsignexecutable-winsignandeditexecutable-removed",
303
+ },
304
+ // ── NSIS: custom bundles moved to toolsets.nsis ───────────────────────────
305
+ ...NSIS_CONFIG_KEYS.flatMap((section) => [
306
+ {
307
+ key: "customNsisBinary",
308
+ parent: [section],
309
+ replacement: section === "portable" ? "toolsets.nsis" : `\`toolsets.nsis\` and \`${section}.installerDebugLogging\``,
310
+ autoMigrated: false,
311
+ severity: "error",
312
+ detail: `Custom NSIS binaries now come from the \`toolsets.nsis\` bundle. ${TOOLSETS_NSIS_DETAIL} ` +
313
+ (section === "portable"
314
+ ? "Property `debugLogging` never had an effect on portable targets and has no equivalent. "
315
+ : `Property \`debugLogging\` is now \`${section}.installerDebugLogging\` (which needs a log-enabled NSIS bundle). `) +
316
+ `\`electron-builder migrate-schema\` moves \`debugLogging\` but cannot convert \`url\` / \`checksum\` / \`version\`.`,
317
+ anchor: CUSTOM_NSIS_ANCHOR,
318
+ },
319
+ {
320
+ key: "customNsisResources",
321
+ parent: [section],
322
+ replacement: "toolsets.nsis",
323
+ autoMigrated: false,
324
+ severity: "error",
325
+ detail: `Custom NSIS resources now come from the \`toolsets.nsis\` bundle. ${TOOLSETS_NSIS_DETAIL}`,
326
+ anchor: CUSTOM_NSIS_ANCHOR,
327
+ },
328
+ ]),
329
+ // ── Programmatic PackagerOptions leaking into the config object ───────────
330
+ {
331
+ key: "devMetadata",
332
+ replacement: null,
333
+ autoMigrated: false,
334
+ severity: "error",
335
+ detail: "Put build configuration at the configuration root instead.",
336
+ anchor: "devmetadata-extrametadata-programmatic-packageroptions",
337
+ },
338
+ // ── macOS signing: one entry per moved field, per platform key ────────────
339
+ ...MAC_SIGN_FIELDS.map((field) => ({
340
+ key: field,
341
+ scope: "mac",
342
+ replacement: `sign.${field}`,
343
+ autoMigrated: true,
344
+ severity: "error",
345
+ anchor: MAC_SIGN_ANCHOR,
346
+ })),
347
+ {
348
+ key: "signIgnore",
349
+ scope: "mac",
350
+ replacement: "sign.ignore",
351
+ autoMigrated: true,
352
+ severity: "error",
353
+ detail: "Renamed to the @electron/osx-sign canonical name.",
354
+ anchor: MAC_SIGN_ANCHOR,
355
+ },
356
+ ...MAC_SIGN_REMOVED_FIELDS.map((field) => ({
357
+ key: field,
358
+ scope: "mac",
359
+ replacement: null,
360
+ autoMigrated: true,
361
+ severity: "error",
362
+ detail: "@electron/osx-sign 2.x removed the `spctl --assess` step entirely, so there is no `sign.gatekeeperAssess` to move it to.",
363
+ anchor: MAC_SIGN_ANCHOR,
364
+ })),
365
+ ...MAC_UNIVERSAL_FIELDS.map((field) => ({
366
+ key: field,
367
+ scope: "mac",
368
+ replacement: `universal.${field}`,
369
+ autoMigrated: true,
370
+ severity: "error",
371
+ anchor: "macuniversal",
372
+ })),
373
+ ];
374
+ function resolve(options) {
375
+ const resolved = [];
376
+ for (const option of options) {
377
+ const parents = option.scope === "mac" ? MAC_PLATFORM_KEYS.map(p => [p]) : option.scope === "all" ? ALL_PLATFORM_KEYS.map(p => [p]) : [option.parent ?? []];
378
+ for (const parentPath of parents) {
379
+ resolved.push({ ...option, parentPath, fullPath: [...parentPath, option.key].join(".") });
380
+ }
381
+ }
382
+ return resolved;
383
+ }
384
+ /** `LEGACY_CONFIG_OPTIONS` with every `scope` expanded into concrete paths. */
385
+ export const RESOLVED_LEGACY_CONFIG_OPTIONS = resolve(LEGACY_CONFIG_OPTIONS);
386
+ /**
387
+ * Renders the user-facing message for a single legacy option.
388
+ *
389
+ * A scoped option's `replacement` is relative to its platform key (`sign.identity`), so it is
390
+ * prefixed with the resolved parent to read as the user wrote it (`mac.sign.identity`).
391
+ */
392
+ export function formatLegacyOptionMessage(option) {
393
+ const lines = [];
394
+ if (option.replacement == null) {
395
+ lines.push(`\`${option.fullPath}\` was removed in electron-builder v27.`);
396
+ }
397
+ else {
398
+ // A replacement containing a space is prose ("win.sign with `type: \"signtool\"`") — leave it as-is.
399
+ const replacement = option.replacement.includes(" ")
400
+ ? option.replacement
401
+ : `\`${option.scope == null ? option.replacement : [...option.parentPath, option.replacement].join(".")}\``;
402
+ lines.push(`\`${option.fullPath}\` was replaced by ${replacement} in electron-builder v27.`);
403
+ }
404
+ if (option.detail != null) {
405
+ lines.push(` ${option.detail}`);
406
+ }
407
+ if (option.autoMigrated) {
408
+ lines.push(" Run `electron-builder migrate-schema` to update your configuration automatically.");
409
+ }
410
+ lines.push(` ${BREAKING_CHANGES_URL}#${option.anchor}`);
411
+ return lines.join("\n");
412
+ }
413
+ //# sourceMappingURL=legacyOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacyOptions.js","sourceRoot":"","sources":["../../../src/util/config/legacyOptions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,wGAAwG;AACxG,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,UAAU;IACV,cAAc;IACd,qBAAqB;IACrB,yBAAyB;IACzB,qBAAqB;IACrB,MAAM;IACN,UAAU;IACV,cAAc;IACd,iBAAiB;IACjB,cAAc;IACd,qBAAqB;IACrB,WAAW;IACX,qBAAqB;CACb,CAAA;AAEV;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,kBAAkB,CAAU,CAAA;AAEpE,yFAAyF;AACzF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,YAAY,EAAE,iBAAiB,EAAE,cAAc,CAAU,CAAA;AAE9F;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACxC,MAAM;IACN,UAAU;IACV,wBAAwB;IACxB,wBAAwB;IACxB,eAAe;IACf,YAAY;IACZ,kBAAkB;IAClB,iBAAiB;IACjB,oBAAoB;CACrB,CAAC,CAAA;AAEF,6GAA6G;AAC7G,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,CAAU,CAAA;AAE/I,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,C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M,CAAC,WAAW,IAAI,IAAI,EAAE,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,QAAQ,yCAAyC,CAAC,CAAA;IAC3E,CAAC;SAAM,CAAC;QACN,qGAAqG;QACrG,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC;YAClD,CAAC,CAAC,MAAM,CAAC,WAAW;YACpB,CAAC,CAAC,KAAK,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAA;QAC7G,KAAK,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,QAAQ,sBAAsB,WAAW,2BAA2B,CAAC,CAAA;IAC9F,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,IAAI,IAAI,EAAE,CAAC;QAC1B,KAAK,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,CAAA;IAClC,CAAC;IACD,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC;QACxB,KAAK,CAAC,IAAI,CAAC,qFAAqF,CAAC,CAAA;IACnG,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,KAAK,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAA;IACxD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC","sourcesContent":["/**\n * Single source of truth for the v26 → v27 configuration migration.\n *\n * Two consumers read this table and must never drift apart:\n * - `checkLegacyConfiguration` (this package) — the build-time guard that tells a user who upgraded\n * without reading the migration guide exactly which key moved where.\n * - `electron-builder migrate-schema` (the `electron-builder` package) — the opt-in rewriter.\n *\n * The migrator lives in a package that depends on this one, so the table has to live here for both\n * to share it. Keeping the field lists in one place is not cosmetic: `gatekeeperAssess` was moved\n * into `mac.sign` by the migrator while the schema rejected it there, producing configs that failed\n * validation on the next build.\n */\n\n/** macOS signing fields that moved from the platform root into the `sign` (ElectronSignOptions) bag. */\nexport const MAC_SIGN_FIELDS = [\n \"identity\",\n \"entitlements\",\n \"entitlementsInherit\",\n \"entitlementsLoginHelper\",\n \"provisioningProfile\",\n \"type\",\n \"binaries\",\n \"requirements\",\n \"hardenedRuntime\",\n \"strictVerify\",\n \"preAutoEntitlements\",\n \"timestamp\",\n \"additionalArguments\",\n] as const\n\n/**\n * macOS signing fields that were removed outright rather than moved under `sign`.\n * `@electron/osx-sign` 2.x dropped the `spctl --assess` step, so there is no `sign.gatekeeperAssess`\n * to migrate to — `ElectronSignOptions` omits it and the schema rejects it.\n */\nexport const MAC_SIGN_REMOVED_FIELDS = [\"gatekeeperAssess\"] as const\n\n/** Universal-build fields that moved from the platform root into the `universal` bag. */\nexport const MAC_UNIVERSAL_FIELDS = [\"mergeASARs\", \"singleArchFiles\", \"x64ArchFiles\"] as const\n\n/**\n * Azure Trusted Signing typed fields in v27 (everything else is an extra key → `additionalMetadata`).\n * `type` is included so it is not mistakenly moved to `additionalMetadata` if already present.\n */\nexport const AZURE_KNOWN_FIELDS = new Set([\n \"type\",\n \"endpoint\",\n \"codeSigningAccountName\",\n \"certificateProfileName\",\n \"publisherName\",\n \"fileDigest\",\n \"timestampRfc3161\",\n \"timestampDigest\",\n \"additionalMetadata\",\n])\n\n/** `electronDownload` fields with no equivalent in the v27 `ElectronGetOptions` (@electron/get v5) shape. */\nexport const ELECTRON_DOWNLOAD_DROPPED = [\"cache\", \"customDir\", \"customFilename\", \"strictSSL\", \"platform\", \"arch\", \"version\", \"force\"] as const\n\n/** Platform keys that accept the macOS signing/universal options. */\nexport const MAC_PLATFORM_KEYS = [\"mac\", \"mas\", \"masDev\"] as const\n\n/** Config sections typed as `CommonNsisOptions`, which accepted `customNsisBinary` / `customNsisResources` in v26. */\nexport const NSIS_CONFIG_KEYS = [\"nsis\", \"nsisWeb\", \"portable\"] as const\n\n/** Every platform key that accepted the shared per-platform options in v26. */\nexport const ALL_PLATFORM_KEYS = [\"mac\", \"mas\", \"masDev\", \"win\", \"linux\"] as const\n\nexport const BREAKING_CHANGES_URL = \"https://www.electron.build/docs/migration/v27-breaking-changes\"\n\n/**\n * File-copy options nested under `fileOptions`, at the configuration root and on every platform key\n * (`files` → `fileOptions.files`, `mac.extraResources` → `mac.fileOptions.extraResources`, …).\n *\n * Unlike the options in {@link LEGACY_CONFIG_OPTIONS}, flat keys are not rejected: they are normalized into\n * `fileOptions` with a warning when the configuration is loaded, before validation, although the types and the\n * schema only have `fileOptions`.\n */\nexport const FILE_OPTION_KEYS = [\"files\", \"extraResources\", \"extraFiles\"] as const\n\n/** Anchor of the `fileOptions` entry within the breaking-changes page. */\nexport const FILE_OPTIONS_ANCHOR = \"file-options-fileoptions\"\n\nexport interface LegacyConfigOption {\n /** The removed key itself. */\n readonly key: string\n /** Path to the object holding `key`. Empty = the configuration root. */\n readonly parent?: readonly string[]\n /**\n * When set, `parent` is ignored and one entry is generated per platform key:\n * `\"mac\"` → mac/mas/masDev, `\"all\"` → those plus win/linux.\n */\n readonly scope?: \"mac\" | \"all\"\n /** The v27 form, or `null` when the option was removed with no replacement. */\n readonly replacement: string | null\n /** True when `electron-builder migrate-schema` rewrites this automatically. */\n readonly autoMigrated: boolean\n readonly severity: \"error\" | \"warn\"\n /** Extra sentence appended to the message — inverted polarity, lost behaviour, etc. */\n readonly detail?: string\n /** Anchor within the breaking-changes page. */\n readonly anchor: string\n}\n\nconst MAC_SIGN_ANCHOR = \"macos-signing-macsign\"\nconst ASAR_ANCHOR = \"asar-options-asar\"\nconst NATIVE_MODULES_ANCHOR = \"native-module-options-nativemodules\"\nconst ELECTRON_GET_ANCHOR = \"electrondownload-electronget\"\nconst WIN_SIGN_ANCHOR = \"windows-signing-winsign\"\nconst CUSTOM_NSIS_ANCHOR = \"customnsisbinary-and-customnsisresources-replaced-by-toolsetsnsis\"\nconst TOOLSETS_NSIS_DETAIL =\n \"Set a custom NSIS bundle via `toolsets.nsis: { url, checksum, version }`. \" +\n \"This is not a rename. The artifacts provided by `.customNsisBinary` & `.customNsisResources` have been merged into one toolset. \" +\n \"To continue using custom NSIS binary/resources in your build see (https://www.electron.build/docs/toolsets#custom-nsis-bundle-layout). \" +\n \"For a complete migration guide from `.customNsisBinary` & `.customNsisResources` to \" +\n \"the new `toolsets.nsis` bundle see (https://www.electron.build/docs/migration/v26-to-v27#step-4-custom-nsis-migration-guide).\"\n\nexport const LEGACY_CONFIG_OPTIONS: readonly LegacyConfigOption[] = [\n // ── Removed outright ──────────────────────────────────────────────────────\n {\n key: \"electronCompile\",\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"electron-compile is unmaintained (no release since 2019). Compile your sources with electron-vite, esbuild, or webpack before packaging.\",\n anchor: \"electroncompile\",\n },\n {\n key: \"framework\",\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: 'Electron is the only supported framework — \"electron\" was and remains the default. `proton` / `proton-native` and `libui` support was removed.',\n anchor: \"framework-nodeversion-launchuiversion\",\n },\n {\n key: \"nodeVersion\",\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"It only applied to libui-based frameworks and never affected Electron builds.\",\n anchor: \"framework-nodeversion-launchuiversion\",\n },\n {\n key: \"launchUiVersion\",\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"It only applied to libui-based frameworks on Windows.\",\n anchor: \"framework-nodeversion-launchuiversion\",\n },\n {\n key: \"disableDefaultIgnoredFiles\",\n scope: \"all\",\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: 'To keep a default-excluded file, name it concretely in a `fileOptions.files` glob instead — e.g. `\"fileOptions\": { \"files\": [\"**/*\", \"**/*.obj\"] }`.',\n anchor: \"disabledefaultignoredfiles\",\n },\n {\n key: \"systemIntegration\",\n parent: [\"appImage\"],\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"Desktop integration is handled automatically by AppImageLauncher.\",\n anchor: \"appimagesystemintegration\",\n },\n {\n key: \"syncDesktopName\",\n parent: [\"linux\"],\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail:\n \"The behaviour it gated is now always on: the installed .desktop filename is always derived from `desktopName` (falling back to executableName). \" +\n \"If you relied on the old filename, set `desktopName` explicitly to control it.\",\n anchor: \"linuxsyncdesktopname-always-synced\",\n },\n\n // ── Renamed / restructured: native modules ────────────────────────────────\n {\n key: \"npmSkipBuildFromSource\",\n replacement: \"nativeModules.buildDependenciesFromSource\",\n autoMigrated: true,\n severity: \"error\",\n detail: \"Note the value is INVERTED — `npmSkipBuildFromSource: true` becomes `nativeModules.buildDependenciesFromSource: false`.\",\n anchor: \"npmskipbuildfromsource\",\n },\n { key: \"buildDependenciesFromSource\", replacement: \"nativeModules.buildDependenciesFromSource\", autoMigrated: true, severity: \"error\", anchor: NATIVE_MODULES_ANCHOR },\n { key: \"nodeGypRebuild\", replacement: \"nativeModules.nodeGypRebuild\", autoMigrated: true, severity: \"error\", anchor: NATIVE_MODULES_ANCHOR },\n { key: \"npmRebuild\", replacement: \"nativeModules.npmRebuild\", autoMigrated: true, severity: \"error\", anchor: NATIVE_MODULES_ANCHOR },\n { key: \"nativeRebuilder\", replacement: \"nativeModules.rebuildMode\", autoMigrated: true, severity: \"error\", anchor: NATIVE_MODULES_ANCHOR },\n\n // ── Renamed / restructured: asar ──────────────────────────────────────────\n { key: \"asarUnpack\", scope: \"all\", replacement: \"asar.unpack\", autoMigrated: true, severity: \"error\", anchor: ASAR_ANCHOR },\n { key: \"asarUnpack\", replacement: \"asar.unpack\", autoMigrated: true, severity: \"error\", anchor: ASAR_ANCHOR },\n { key: \"asar-unpack\", replacement: \"asar.unpack\", autoMigrated: true, severity: \"error\", anchor: ASAR_ANCHOR },\n { key: \"asar-unpack-dir\", replacement: \"asar.unpack\", autoMigrated: true, severity: \"error\", anchor: ASAR_ANCHOR },\n { key: \"unpackDir\", parent: [\"asar\"], replacement: \"asar.unpack\", autoMigrated: true, severity: \"error\", anchor: ASAR_ANCHOR },\n { key: \"disableSanityCheckAsar\", replacement: \"asar.disableSanityCheck\", autoMigrated: true, severity: \"error\", anchor: ASAR_ANCHOR },\n { key: \"disableAsarIntegrity\", replacement: \"asar.disableIntegrity\", autoMigrated: true, severity: \"error\", anchor: ASAR_ANCHOR },\n\n // ── Renamed / restructured: misc root ─────────────────────────────────────\n { key: \"helper-bundle-id\", replacement: \"mac.helperBundleId\", autoMigrated: true, severity: \"error\", anchor: \"buildhelper-bundle-id\" },\n {\n key: \"noMsi\",\n parent: [\"squirrelWindows\"],\n replacement: \"squirrelWindows.msi\",\n autoMigrated: true,\n severity: \"error\",\n detail: \"Note the value is INVERTED — `noMsi: true` becomes `msi: false`.\",\n anchor: \"squirrelwindowsnomsi\",\n },\n {\n key: \"customSquirrelVendorDir\",\n parent: [\"squirrelWindows\"],\n replacement: \"toolsets.squirrel\",\n autoMigrated: false,\n severity: \"error\",\n detail:\n \"The bundle layout differs: a custom `toolsets.squirrel` bundle (a `ToolsetCustom` object) must contain an `electron-winstaller/vendor/` subtree, \" +\n \"whereas `customSquirrelVendorDir` pointed at the vendor files directly. Remove the key to use the default Squirrel bundle.\",\n anchor: \"squirrelwindowscustomsquirrelvendordir\",\n },\n {\n key: \"snap\",\n replacement: \"snapcraft\",\n autoMigrated: true,\n severity: \"error\",\n detail: 'The new shape needs an explicit `base` with per-base options nested under it, e.g. `{ \"snapcraft\": { \"base\": \"core22\", \"core22\": { … } } }`.',\n anchor: \"snap-snapcraft\",\n },\n\n // ── Renamed / restructured: electronDownload → electronGet ────────────────\n {\n key: \"electronDownload\",\n replacement: \"electronGet\",\n autoMigrated: true,\n severity: \"error\",\n detail: \"The shape also changed to match @electron/get v5: `mirror` → `mirrorOptions.mirror`, `isVerifyChecksum: false` → `unsafelyDisableChecksums: true`.\",\n anchor: ELECTRON_GET_ANCHOR,\n },\n {\n key: \"isVerifyChecksum\",\n parent: [\"electronGet\"],\n replacement: \"electronGet.unsafelyDisableChecksums\",\n autoMigrated: true,\n severity: \"error\",\n detail: \"Note the value is INVERTED — `isVerifyChecksum: false` becomes `unsafelyDisableChecksums: true`.\",\n anchor: ELECTRON_GET_ANCHOR,\n },\n {\n key: \"mirror\",\n parent: [\"electronGet\"],\n replacement: \"electronGet.mirrorOptions.mirror\",\n autoMigrated: true,\n severity: \"error\",\n anchor: ELECTRON_GET_ANCHOR,\n },\n {\n key: \"cache\",\n parent: [\"electronGet\"],\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"It is intentionally not exposed as a config key — set the `ELECTRON_BUILDER_CACHE` environment variable instead.\",\n anchor: ELECTRON_GET_ANCHOR,\n },\n {\n key: \"customDir\",\n parent: [\"electronGet\"],\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"Use `electronDist` to stage a custom Electron build.\",\n anchor: ELECTRON_GET_ANCHOR,\n },\n {\n key: \"customFilename\",\n parent: [\"electronGet\"],\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"Use `electronDist` to stage a custom Electron build.\",\n anchor: ELECTRON_GET_ANCHOR,\n },\n {\n key: \"strictSSL\",\n parent: [\"electronGet\"],\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"@electron/get v5 downloads via `fetch`, which has no equivalent option.\",\n anchor: ELECTRON_GET_ANCHOR,\n },\n {\n key: \"force\",\n parent: [\"electronGet\"],\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"@electron/get v5 has no equivalent. Clear the cache directory (or point `ELECTRON_BUILDER_CACHE` at a fresh path) to force a re-download.\",\n anchor: \"electrongetoptionsforce-removed\",\n },\n\n // ── Windows signing ───────────────────────────────────────────────────────\n {\n key: \"signtoolOptions\",\n parent: [\"win\"],\n replacement: 'win.sign with `type: \"signtool\"`',\n autoMigrated: true,\n severity: \"error\",\n detail: \"All fields move verbatim; add the `type` discriminator.\",\n anchor: WIN_SIGN_ANCHOR,\n },\n {\n key: \"azureSignOptions\",\n parent: [\"win\"],\n replacement: 'win.sign with `type: \"azure\"`',\n autoMigrated: true,\n severity: \"error\",\n detail: \"Fields move verbatim; any extra keys that used the old index signature move into `additionalMetadata`.\",\n anchor: WIN_SIGN_ANCHOR,\n },\n {\n key: \"signExecutable\",\n parent: [\"win\"],\n replacement: \"win.sign: false\",\n autoMigrated: true,\n severity: \"error\",\n detail: \"Only the `false` case has an equivalent (it disables signing; resource editing still runs). `signExecutable: true` was the default — delete it.\",\n anchor: \"winsignexecutable-winsignandeditexecutable-removed\",\n },\n {\n key: \"signAndEditExecutable\",\n parent: [\"win\"],\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"Resource editing always runs in v27. To skip signing only, set `win.sign: false`; there is no equivalent that also skips resource editing.\",\n anchor: \"winsignexecutable-winsignandeditexecutable-removed\",\n },\n\n // ── NSIS: custom bundles moved to toolsets.nsis ───────────────────────────\n ...NSIS_CONFIG_KEYS.flatMap((section): LegacyConfigOption[] => [\n {\n key: \"customNsisBinary\",\n parent: [section],\n replacement: section === \"portable\" ? \"toolsets.nsis\" : `\\`toolsets.nsis\\` and \\`${section}.installerDebugLogging\\``,\n autoMigrated: false,\n severity: \"error\",\n detail:\n `Custom NSIS binaries now come from the \\`toolsets.nsis\\` bundle. ${TOOLSETS_NSIS_DETAIL} ` +\n (section === \"portable\"\n ? \"Property `debugLogging` never had an effect on portable targets and has no equivalent. \"\n : `Property \\`debugLogging\\` is now \\`${section}.installerDebugLogging\\` (which needs a log-enabled NSIS bundle). `) +\n `\\`electron-builder migrate-schema\\` moves \\`debugLogging\\` but cannot convert \\`url\\` / \\`checksum\\` / \\`version\\`.`,\n anchor: CUSTOM_NSIS_ANCHOR,\n },\n {\n key: \"customNsisResources\",\n parent: [section],\n replacement: \"toolsets.nsis\",\n autoMigrated: false,\n severity: \"error\",\n detail: `Custom NSIS resources now come from the \\`toolsets.nsis\\` bundle. ${TOOLSETS_NSIS_DETAIL}`,\n anchor: CUSTOM_NSIS_ANCHOR,\n },\n ]),\n\n // ── Programmatic PackagerOptions leaking into the config object ───────────\n {\n key: \"devMetadata\",\n replacement: null,\n autoMigrated: false,\n severity: \"error\",\n detail: \"Put build configuration at the configuration root instead.\",\n anchor: \"devmetadata-extrametadata-programmatic-packageroptions\",\n },\n\n // ── macOS signing: one entry per moved field, per platform key ────────────\n ...MAC_SIGN_FIELDS.map((field): LegacyConfigOption => ({\n key: field,\n scope: \"mac\",\n replacement: `sign.${field}`,\n autoMigrated: true,\n severity: \"error\",\n anchor: MAC_SIGN_ANCHOR,\n })),\n {\n key: \"signIgnore\",\n scope: \"mac\",\n replacement: \"sign.ignore\",\n autoMigrated: true,\n severity: \"error\",\n detail: \"Renamed to the @electron/osx-sign canonical name.\",\n anchor: MAC_SIGN_ANCHOR,\n },\n ...MAC_SIGN_REMOVED_FIELDS.map((field): LegacyConfigOption => ({\n key: field,\n scope: \"mac\",\n replacement: null,\n autoMigrated: true,\n severity: \"error\",\n detail: \"@electron/osx-sign 2.x removed the `spctl --assess` step entirely, so there is no `sign.gatekeeperAssess` to move it to.\",\n anchor: MAC_SIGN_ANCHOR,\n })),\n ...MAC_UNIVERSAL_FIELDS.map((field): LegacyConfigOption => ({\n key: field,\n scope: \"mac\",\n replacement: `universal.${field}`,\n autoMigrated: true,\n severity: \"error\",\n anchor: \"macuniversal\",\n })),\n]\n\n/** A `LegacyConfigOption` with its `scope` expanded to a concrete parent path. */\nexport interface ResolvedLegacyConfigOption extends LegacyConfigOption {\n /** Concrete path of the object holding `key`. */\n readonly parentPath: readonly string[]\n /** Dot-joined `parentPath` + `key`, as it appears in a user's config. */\n readonly fullPath: string\n}\n\nfunction resolve(options: readonly LegacyConfigOption[]): readonly ResolvedLegacyConfigOption[] {\n const resolved: ResolvedLegacyConfigOption[] = []\n for (const option of options) {\n const parents: Array<readonly string[]> =\n option.scope === \"mac\" ? MAC_PLATFORM_KEYS.map(p => [p]) : option.scope === \"all\" ? ALL_PLATFORM_KEYS.map(p => [p]) : [option.parent ?? []]\n for (const parentPath of parents) {\n resolved.push({ ...option, parentPath, fullPath: [...parentPath, option.key].join(\".\") })\n }\n }\n return resolved\n}\n\n/** `LEGACY_CONFIG_OPTIONS` with every `scope` expanded into concrete paths. */\nexport const RESOLVED_LEGACY_CONFIG_OPTIONS: readonly ResolvedLegacyConfigOption[] = resolve(LEGACY_CONFIG_OPTIONS)\n\n/**\n * Renders the user-facing message for a single legacy option.\n *\n * A scoped option's `replacement` is relative to its platform key (`sign.identity`), so it is\n * prefixed with the resolved parent to read as the user wrote it (`mac.sign.identity`).\n */\nexport function formatLegacyOptionMessage(option: ResolvedLegacyConfigOption): string {\n const lines: string[] = []\n if (option.replacement == null) {\n lines.push(`\\`${option.fullPath}\\` was removed in electron-builder v27.`)\n } else {\n // A replacement containing a space is prose (\"win.sign with `type: \\\"signtool\\\"`\") — leave it as-is.\n const replacement = option.replacement.includes(\" \")\n ? option.replacement\n : `\\`${option.scope == null ? option.replacement : [...option.parentPath, option.replacement].join(\".\")}\\``\n lines.push(`\\`${option.fullPath}\\` was replaced by ${replacement} in electron-builder v27.`)\n }\n if (option.detail != null) {\n lines.push(` ${option.detail}`)\n }\n if (option.autoMigrated) {\n lines.push(\" Run `electron-builder migrate-schema` to update your configuration automatically.\")\n }\n lines.push(` ${BREAKING_CHANGES_URL}#${option.anchor}`)\n return lines.join(\"\\n\")\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import { orNullIfFileNotExist } from "builder-util";
1
2
  import { DotenvParseInput } from "dotenv-expand";
2
3
  import { Lazy } from "lazy-val";
3
4
  export interface ReadConfigResult<T> {
@@ -5,8 +6,7 @@ export interface ReadConfigResult<T> {
5
6
  readonly configFile: string | null;
6
7
  }
7
8
  export declare function findAndReadConfig<T>(request: ReadConfigRequest): Promise<ReadConfigResult<T> | null>;
8
- export declare function orNullIfFileNotExist<T>(promise: Promise<T>): Promise<T | null>;
9
- export declare function orIfFileNotExist<T>(promise: Promise<T>, fallbackValue: T): Promise<T>;
9
+ export { orNullIfFileNotExist };
10
10
  export interface ReadConfigRequest {
11
11
  packageKey: string;
12
12
  configFilename: string;