app-builder-lib 26.15.2 → 27.0.0-alpha.0

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 (997) hide show
  1. package/dist/Framework.d.ts +40 -0
  2. package/dist/Framework.d.ts.map +1 -0
  3. package/dist/Framework.js +4 -0
  4. package/dist/Framework.js.map +1 -0
  5. package/dist/appInfo.d.ts +32 -0
  6. package/dist/appInfo.d.ts.map +1 -0
  7. package/dist/appInfo.js +145 -0
  8. package/dist/appInfo.js.map +1 -0
  9. package/dist/asar/asar.d.ts +39 -0
  10. package/dist/asar/asar.d.ts.map +1 -0
  11. package/dist/asar/asar.js +155 -0
  12. package/dist/asar/asar.js.map +1 -0
  13. package/dist/asar/asarFileChecker.d.ts +3 -0
  14. package/dist/asar/asarFileChecker.d.ts.map +1 -0
  15. package/dist/asar/asarFileChecker.js +22 -0
  16. package/dist/asar/asarFileChecker.js.map +1 -0
  17. package/dist/asar/asarUtil.d.ts +2 -0
  18. package/dist/asar/asarUtil.d.ts.map +1 -0
  19. package/dist/asar/asarUtil.js +278 -0
  20. package/dist/asar/asarUtil.js.map +1 -0
  21. package/dist/asar/integrity.d.ts +16 -0
  22. package/dist/asar/integrity.d.ts.map +1 -0
  23. package/dist/asar/integrity.js +59 -0
  24. package/dist/asar/integrity.js.map +1 -0
  25. package/dist/asar/unpackDetector.d.ts +2 -0
  26. package/dist/asar/unpackDetector.d.ts.map +1 -0
  27. package/dist/asar/unpackDetector.js +39 -0
  28. package/dist/asar/unpackDetector.js.map +1 -0
  29. package/dist/codeSign/certInfo.d.ts +55 -0
  30. package/dist/codeSign/certInfo.d.ts.map +1 -0
  31. package/dist/codeSign/certInfo.js +459 -0
  32. package/dist/codeSign/certInfo.js.map +1 -0
  33. package/dist/codeSign/codesign.d.ts +4 -0
  34. package/dist/codeSign/codesign.d.ts.map +1 -0
  35. package/dist/codeSign/codesign.js +32 -0
  36. package/dist/codeSign/codesign.js.map +1 -0
  37. package/dist/codeSign/mac/macCodeSign.d.ts +29 -0
  38. package/dist/codeSign/mac/macCodeSign.d.ts.map +1 -0
  39. package/dist/codeSign/mac/macCodeSign.js +273 -0
  40. package/dist/codeSign/mac/macCodeSign.js.map +1 -0
  41. package/dist/codeSign/signManager.d.ts +14 -0
  42. package/dist/codeSign/signManager.d.ts.map +1 -0
  43. package/dist/codeSign/signManager.js +2 -0
  44. package/dist/codeSign/signManager.js.map +1 -0
  45. package/dist/codeSign/win/windowsCodeSign.d.ts +8 -0
  46. package/dist/codeSign/win/windowsCodeSign.d.ts.map +1 -0
  47. package/dist/codeSign/win/windowsCodeSign.js +34 -0
  48. package/dist/codeSign/win/windowsCodeSign.js.map +1 -0
  49. package/dist/codeSign/win/windowsSignAzureManager.d.ts +18 -0
  50. package/dist/codeSign/win/windowsSignAzureManager.d.ts.map +1 -0
  51. package/dist/codeSign/win/windowsSignAzureManager.js +68 -0
  52. package/dist/codeSign/win/windowsSignAzureManager.js.map +1 -0
  53. package/dist/codeSign/win/windowsSignToolManager.d.ts +59 -0
  54. package/dist/codeSign/win/windowsSignToolManager.d.ts.map +1 -0
  55. package/dist/codeSign/win/windowsSignToolManager.js +364 -0
  56. package/dist/codeSign/win/windowsSignToolManager.js.map +1 -0
  57. package/dist/configuration.d.ts +1010 -0
  58. package/dist/configuration.d.ts.map +1 -0
  59. package/dist/configuration.js +2 -0
  60. package/dist/configuration.js.map +1 -0
  61. package/dist/core.d.ts +61 -0
  62. package/dist/core.d.ts.map +1 -0
  63. package/dist/core.js +61 -0
  64. package/dist/core.js.map +1 -0
  65. package/dist/electron/ElectronFramework.d.ts +17 -0
  66. package/dist/electron/ElectronFramework.d.ts.map +1 -0
  67. package/dist/electron/ElectronFramework.js +236 -0
  68. package/dist/electron/ElectronFramework.js.map +1 -0
  69. package/dist/electron/electronVersion.d.ts +7 -0
  70. package/dist/electron/electronVersion.d.ts.map +1 -0
  71. package/dist/electron/electronVersion.js +119 -0
  72. package/dist/electron/electronVersion.js.map +1 -0
  73. package/dist/electron/injectFFMPEG.d.ts +12 -0
  74. package/dist/electron/injectFFMPEG.d.ts.map +1 -0
  75. package/dist/electron/injectFFMPEG.js +53 -0
  76. package/dist/electron/injectFFMPEG.js.map +1 -0
  77. package/dist/electron/mac/electronMac.d.ts +2 -0
  78. package/dist/electron/mac/electronMac.d.ts.map +1 -0
  79. package/dist/electron/mac/electronMac.js +254 -0
  80. package/dist/electron/mac/electronMac.js.map +1 -0
  81. package/dist/electron/search-module.d.ts +24 -0
  82. package/dist/electron/search-module.d.ts.map +1 -0
  83. package/dist/electron/search-module.js +68 -0
  84. package/dist/electron/search-module.js.map +1 -0
  85. package/dist/electron/win/electronWin.d.ts +2 -0
  86. package/dist/electron/win/electronWin.d.ts.map +1 -0
  87. package/dist/electron/win/electronWin.js +36 -0
  88. package/dist/electron/win/electronWin.js.map +1 -0
  89. package/dist/errorMessages.d.ts +2 -0
  90. package/dist/errorMessages.d.ts.map +1 -0
  91. package/dist/errorMessages.js +8 -0
  92. package/dist/errorMessages.js.map +1 -0
  93. package/dist/fileMatcher.d.ts +31 -0
  94. package/dist/fileMatcher.d.ts.map +1 -0
  95. package/dist/fileMatcher.js +277 -0
  96. package/dist/fileMatcher.js.map +1 -0
  97. package/dist/fileTransformer.d.ts +2 -0
  98. package/dist/fileTransformer.d.ts.map +1 -0
  99. package/dist/fileTransformer.js +82 -0
  100. package/dist/fileTransformer.js.map +1 -0
  101. package/dist/forge-maker.d.ts +6 -0
  102. package/dist/forge-maker.d.ts.map +1 -0
  103. package/dist/forge-maker.js +20 -0
  104. package/dist/forge-maker.js.map +1 -0
  105. package/dist/index.d.ts +40 -0
  106. package/dist/index.d.ts.map +1 -0
  107. package/dist/index.js +77 -0
  108. package/dist/index.js.map +1 -0
  109. package/dist/indexInternal.d.ts +46 -0
  110. package/dist/indexInternal.d.ts.map +1 -0
  111. package/dist/indexInternal.js +39 -0
  112. package/dist/indexInternal.js.map +1 -0
  113. package/dist/linuxPackager.d.ts +13 -0
  114. package/dist/linuxPackager.d.ts.map +1 -0
  115. package/dist/linuxPackager.js +75 -0
  116. package/dist/linuxPackager.js.map +1 -0
  117. package/dist/macPackager.d.ts +50 -0
  118. package/dist/macPackager.d.ts.map +1 -0
  119. package/dist/macPackager.js +442 -0
  120. package/dist/macPackager.js.map +1 -0
  121. package/dist/node-module-collector/bunNodeModulesCollector.d.ts +11 -0
  122. package/dist/node-module-collector/bunNodeModulesCollector.d.ts.map +1 -0
  123. package/dist/node-module-collector/bunNodeModulesCollector.js +14 -0
  124. package/dist/node-module-collector/bunNodeModulesCollector.js.map +1 -0
  125. package/dist/node-module-collector/hoist.d.ts +124 -0
  126. package/dist/node-module-collector/hoist.d.ts.map +1 -0
  127. package/dist/node-module-collector/hoist.js +880 -0
  128. package/dist/node-module-collector/hoist.js.map +1 -0
  129. package/dist/node-module-collector/index.d.ts +21 -0
  130. package/dist/node-module-collector/index.d.ts.map +1 -0
  131. package/dist/node-module-collector/index.js +124 -0
  132. package/dist/node-module-collector/index.js.map +1 -0
  133. package/dist/node-module-collector/moduleManager.d.ts +94 -0
  134. package/dist/node-module-collector/moduleManager.d.ts.map +1 -0
  135. package/dist/node-module-collector/moduleManager.js +314 -0
  136. package/dist/node-module-collector/moduleManager.js.map +1 -0
  137. package/dist/node-module-collector/nodeModulesCollector.d.ts +138 -0
  138. package/dist/node-module-collector/nodeModulesCollector.d.ts.map +1 -0
  139. package/dist/node-module-collector/nodeModulesCollector.js +421 -0
  140. package/dist/node-module-collector/nodeModulesCollector.js.map +1 -0
  141. package/dist/node-module-collector/npmNodeModulesCollector.d.ts +15 -0
  142. package/dist/node-module-collector/npmNodeModulesCollector.d.ts.map +1 -0
  143. package/dist/node-module-collector/npmNodeModulesCollector.js +75 -0
  144. package/dist/node-module-collector/npmNodeModulesCollector.js.map +1 -0
  145. package/dist/node-module-collector/packageManager.d.ts +18 -0
  146. package/dist/node-module-collector/packageManager.d.ts.map +1 -0
  147. package/dist/node-module-collector/packageManager.js +137 -0
  148. package/dist/node-module-collector/packageManager.js.map +1 -0
  149. package/dist/node-module-collector/pnpmNodeModulesCollector.d.ts +45 -0
  150. package/dist/node-module-collector/pnpmNodeModulesCollector.d.ts.map +1 -0
  151. package/dist/node-module-collector/pnpmNodeModulesCollector.js +184 -0
  152. package/dist/node-module-collector/pnpmNodeModulesCollector.js.map +1 -0
  153. package/dist/node-module-collector/traversalNodeModulesCollector.d.ts +19 -0
  154. package/dist/node-module-collector/traversalNodeModulesCollector.d.ts.map +1 -0
  155. package/dist/node-module-collector/traversalNodeModulesCollector.js +118 -0
  156. package/dist/node-module-collector/traversalNodeModulesCollector.js.map +1 -0
  157. package/dist/node-module-collector/types.d.ts +53 -0
  158. package/dist/node-module-collector/types.d.ts.map +1 -0
  159. package/dist/node-module-collector/types.js +2 -0
  160. package/dist/node-module-collector/yarnBerryNodeModulesCollector.d.ts +16 -0
  161. package/dist/node-module-collector/yarnBerryNodeModulesCollector.d.ts.map +1 -0
  162. package/dist/node-module-collector/yarnBerryNodeModulesCollector.js +87 -0
  163. package/dist/node-module-collector/yarnBerryNodeModulesCollector.js.map +1 -0
  164. package/dist/node-module-collector/yarnNodeModulesCollector.d.ts +11 -0
  165. package/dist/node-module-collector/yarnNodeModulesCollector.d.ts.map +1 -0
  166. package/dist/node-module-collector/yarnNodeModulesCollector.js +18 -0
  167. package/dist/node-module-collector/yarnNodeModulesCollector.js.map +1 -0
  168. package/dist/options/AppXOptions.d.ts +106 -0
  169. package/dist/options/AppXOptions.d.ts.map +1 -0
  170. package/dist/options/AppXOptions.js +2 -0
  171. package/dist/options/AppXOptions.js.map +1 -0
  172. package/dist/options/CommonWindowsInstallerConfiguration.d.ts +48 -0
  173. package/dist/options/CommonWindowsInstallerConfiguration.d.ts.map +1 -0
  174. package/dist/options/CommonWindowsInstallerConfiguration.js +47 -0
  175. package/dist/options/CommonWindowsInstallerConfiguration.js.map +1 -0
  176. package/dist/options/FileAssociation.d.ts +46 -0
  177. package/dist/options/FileAssociation.d.ts.map +1 -0
  178. package/dist/options/FileAssociation.js +2 -0
  179. package/dist/options/MsiOptions.d.ts +27 -0
  180. package/dist/options/MsiOptions.d.ts.map +1 -0
  181. package/dist/options/MsiOptions.js +2 -0
  182. package/dist/options/MsiOptions.js.map +1 -0
  183. package/dist/options/MsiWrappedOptions.d.ts +27 -0
  184. package/dist/options/MsiWrappedOptions.d.ts.map +1 -0
  185. package/dist/options/MsiWrappedOptions.js +2 -0
  186. package/dist/options/MsiWrappedOptions.js.map +1 -0
  187. package/dist/options/PlatformSpecificBuildOptions.d.ts +261 -0
  188. package/dist/options/PlatformSpecificBuildOptions.d.ts.map +1 -0
  189. package/dist/options/PlatformSpecificBuildOptions.js +2 -0
  190. package/dist/options/PlatformSpecificBuildOptions.js.map +1 -0
  191. package/dist/options/SnapOptions.d.ts +480 -0
  192. package/dist/options/SnapOptions.d.ts.map +1 -0
  193. package/dist/options/SnapOptions.js +2 -0
  194. package/dist/options/SnapOptions.js.map +1 -0
  195. package/dist/options/SquirrelWindowsOptions.d.ts +47 -0
  196. package/dist/options/SquirrelWindowsOptions.d.ts.map +1 -0
  197. package/dist/options/SquirrelWindowsOptions.js +2 -0
  198. package/dist/options/SquirrelWindowsOptions.js.map +1 -0
  199. package/dist/options/linuxOptions.d.ts +289 -0
  200. package/dist/options/linuxOptions.d.ts.map +1 -0
  201. package/dist/options/linuxOptions.js +2 -0
  202. package/dist/options/linuxOptions.js.map +1 -0
  203. package/dist/options/macOptions.d.ts +390 -0
  204. package/dist/options/macOptions.d.ts.map +1 -0
  205. package/dist/options/macOptions.js +2 -0
  206. package/dist/options/macOptions.js.map +1 -0
  207. package/dist/options/metadata.d.ts +54 -0
  208. package/dist/options/metadata.d.ts.map +1 -0
  209. package/dist/options/metadata.js +2 -0
  210. package/dist/options/metadata.js.map +1 -0
  211. package/dist/options/pkgOptions.d.ts +137 -0
  212. package/dist/options/pkgOptions.d.ts.map +1 -0
  213. package/dist/options/pkgOptions.js +2 -0
  214. package/dist/options/pkgOptions.js.map +1 -0
  215. package/dist/options/winOptions.d.ts +166 -0
  216. package/dist/options/winOptions.d.ts.map +1 -0
  217. package/dist/options/winOptions.js +2 -0
  218. package/dist/options/winOptions.js.map +1 -0
  219. package/dist/packager.d.ts +100 -0
  220. package/dist/packager.d.ts.map +1 -0
  221. package/dist/packager.js +491 -0
  222. package/dist/packager.js.map +1 -0
  223. package/dist/packagerApi.d.ts +32 -0
  224. package/dist/packagerApi.d.ts.map +1 -0
  225. package/dist/packagerApi.js +2 -0
  226. package/dist/packagerApi.js.map +1 -0
  227. package/dist/platformPackager.d.ts +132 -0
  228. package/dist/platformPackager.d.ts.map +1 -0
  229. package/dist/platformPackager.js +761 -0
  230. package/dist/platformPackager.js.map +1 -0
  231. package/dist/presets/rectCra.d.ts +2 -0
  232. package/dist/presets/rectCra.d.ts.map +1 -0
  233. package/dist/presets/rectCra.js +19 -0
  234. package/dist/presets/rectCra.js.map +1 -0
  235. package/dist/publish/PublishManager.d.ts +33 -0
  236. package/dist/publish/PublishManager.d.ts.map +1 -0
  237. package/dist/publish/PublishManager.js +470 -0
  238. package/dist/publish/PublishManager.js.map +1 -0
  239. package/dist/publish/updateInfoBuilder.d.ts +15 -0
  240. package/dist/publish/updateInfoBuilder.d.ts.map +1 -0
  241. package/dist/publish/updateInfoBuilder.js +221 -0
  242. package/dist/publish/updateInfoBuilder.js.map +1 -0
  243. package/dist/targets/ArchiveTarget.d.ts +12 -0
  244. package/dist/targets/ArchiveTarget.d.ts.map +1 -0
  245. package/dist/targets/ArchiveTarget.js +93 -0
  246. package/dist/targets/ArchiveTarget.js.map +1 -0
  247. package/dist/targets/archive.d.ts +27 -0
  248. package/dist/targets/archive.d.ts.map +1 -0
  249. package/dist/targets/archive.js +174 -0
  250. package/dist/targets/archive.js.map +1 -0
  251. package/dist/targets/blockmap/blockmap.d.ts +17 -0
  252. package/dist/targets/blockmap/blockmap.d.ts.map +1 -0
  253. package/dist/targets/blockmap/blockmap.js +150 -0
  254. package/dist/targets/blockmap/blockmap.js.map +1 -0
  255. package/dist/targets/differentialUpdateInfoBuilder.d.ts +16 -0
  256. package/dist/targets/differentialUpdateInfoBuilder.d.ts.map +1 -0
  257. package/dist/targets/differentialUpdateInfoBuilder.js +73 -0
  258. package/dist/targets/differentialUpdateInfoBuilder.js.map +1 -0
  259. package/dist/targets/linux/FlatpakTarget.d.ts +21 -0
  260. package/dist/targets/linux/FlatpakTarget.d.ts.map +1 -0
  261. package/dist/targets/linux/FlatpakTarget.js +156 -0
  262. package/dist/targets/linux/FlatpakTarget.js.map +1 -0
  263. package/dist/targets/linux/FpmTarget.d.ts +23 -0
  264. package/dist/targets/linux/FpmTarget.d.ts.map +1 -0
  265. package/dist/targets/linux/FpmTarget.js +365 -0
  266. package/dist/targets/linux/FpmTarget.js.map +1 -0
  267. package/dist/targets/linux/LinuxTargetHelper.d.ts +24 -0
  268. package/dist/targets/linux/LinuxTargetHelper.d.ts.map +1 -0
  269. package/dist/targets/linux/LinuxTargetHelper.js +332 -0
  270. package/dist/targets/linux/LinuxTargetHelper.js.map +1 -0
  271. package/dist/targets/linux/appimage/AppImageTarget.d.ts +16 -0
  272. package/dist/targets/linux/appimage/AppImageTarget.d.ts.map +1 -0
  273. package/dist/targets/linux/appimage/AppImageTarget.js +141 -0
  274. package/dist/targets/linux/appimage/AppImageTarget.js.map +1 -0
  275. package/dist/targets/linux/appimage/appImageUtil.d.ts +57 -0
  276. package/dist/targets/linux/appimage/appImageUtil.d.ts.map +1 -0
  277. package/dist/targets/linux/appimage/appImageUtil.js +317 -0
  278. package/dist/targets/linux/appimage/appImageUtil.js.map +1 -0
  279. package/dist/targets/linux/appimage/appLauncher.d.ts +4 -0
  280. package/dist/targets/linux/appimage/appLauncher.d.ts.map +1 -0
  281. package/dist/targets/linux/appimage/appLauncher.js +91 -0
  282. package/dist/targets/linux/appimage/appLauncher.js.map +1 -0
  283. package/dist/targets/linux/snap/SnapTarget.d.ts +37 -0
  284. package/dist/targets/linux/snap/SnapTarget.d.ts.map +1 -0
  285. package/dist/targets/linux/snap/SnapTarget.js +96 -0
  286. package/dist/targets/linux/snap/SnapTarget.js.map +1 -0
  287. package/dist/targets/linux/snap/core24.d.ts +53 -0
  288. package/dist/targets/linux/snap/core24.d.ts.map +1 -0
  289. package/dist/targets/linux/snap/core24.js +444 -0
  290. package/dist/targets/linux/snap/core24.js.map +1 -0
  291. package/dist/targets/linux/snap/coreCustom.d.ts +29 -0
  292. package/dist/targets/linux/snap/coreCustom.d.ts.map +1 -0
  293. package/dist/targets/linux/snap/coreCustom.js +60 -0
  294. package/dist/targets/linux/snap/coreCustom.js.map +1 -0
  295. package/dist/targets/linux/snap/coreLegacy.d.ts +46 -0
  296. package/dist/targets/linux/snap/coreLegacy.d.ts.map +1 -0
  297. package/dist/targets/linux/snap/coreLegacy.js +402 -0
  298. package/dist/targets/linux/snap/coreLegacy.js.map +1 -0
  299. package/dist/targets/linux/snap/snapcraftBuilder.d.ts +40 -0
  300. package/dist/targets/linux/snap/snapcraftBuilder.d.ts.map +1 -0
  301. package/dist/targets/linux/snap/snapcraftBuilder.js +414 -0
  302. package/dist/targets/linux/snap/snapcraftBuilder.js.map +1 -0
  303. package/dist/targets/mac/MacTargetHelper.d.ts +30 -0
  304. package/dist/targets/mac/MacTargetHelper.d.ts.map +1 -0
  305. package/dist/targets/mac/MacTargetHelper.js +267 -0
  306. package/dist/targets/mac/MacTargetHelper.js.map +1 -0
  307. package/dist/targets/mac/pkg.d.ts +31 -0
  308. package/dist/targets/mac/pkg.d.ts.map +1 -0
  309. package/dist/targets/mac/pkg.js +271 -0
  310. package/dist/targets/mac/pkg.js.map +1 -0
  311. package/dist/targets/targetFactory.d.ts +13 -0
  312. package/dist/targets/targetFactory.d.ts.map +1 -0
  313. package/dist/targets/targetFactory.js +94 -0
  314. package/dist/targets/targetFactory.js.map +1 -0
  315. package/dist/targets/targetUtil.d.ts +16 -0
  316. package/dist/targets/targetUtil.d.ts.map +1 -0
  317. package/dist/targets/targetUtil.js +40 -0
  318. package/dist/targets/targetUtil.js.map +1 -0
  319. package/dist/targets/win/AppxCapabilities.d.ts +9 -0
  320. package/dist/targets/win/AppxCapabilities.d.ts.map +1 -0
  321. package/dist/targets/win/AppxCapabilities.js +254 -0
  322. package/dist/targets/win/AppxCapabilities.js.map +1 -0
  323. package/dist/targets/win/AppxTarget.d.ts +18 -0
  324. package/dist/targets/win/AppxTarget.d.ts.map +1 -0
  325. package/dist/targets/win/AppxTarget.js +398 -0
  326. package/dist/targets/win/AppxTarget.js.map +1 -0
  327. package/dist/targets/win/MsiTarget.d.ts +29 -0
  328. package/dist/targets/win/MsiTarget.d.ts.map +1 -0
  329. package/dist/targets/win/MsiTarget.js +268 -0
  330. package/dist/targets/win/MsiTarget.js.map +1 -0
  331. package/dist/targets/win/MsiWrappedTarget.d.ts +20 -0
  332. package/dist/targets/win/MsiWrappedTarget.d.ts.map +1 -0
  333. package/dist/targets/win/MsiWrappedTarget.js +77 -0
  334. package/dist/targets/win/MsiWrappedTarget.js.map +1 -0
  335. package/dist/targets/win/nsis/Commands.d.ts +10 -0
  336. package/dist/targets/win/nsis/Commands.d.ts.map +1 -0
  337. package/dist/targets/win/nsis/Commands.js +2 -0
  338. package/dist/targets/win/nsis/Commands.js.map +1 -0
  339. package/dist/targets/win/nsis/Defines.d.ts +81 -0
  340. package/dist/targets/win/nsis/Defines.d.ts.map +1 -0
  341. package/dist/targets/win/nsis/Defines.js +2 -0
  342. package/dist/targets/win/nsis/Defines.js.map +1 -0
  343. package/dist/targets/win/nsis/NsisTarget.d.ts +43 -0
  344. package/dist/targets/win/nsis/NsisTarget.d.ts.map +1 -0
  345. package/dist/targets/win/nsis/NsisTarget.js +726 -0
  346. package/dist/targets/win/nsis/NsisTarget.js.map +1 -0
  347. package/dist/targets/win/nsis/WebInstallerTarget.d.ts +14 -0
  348. package/dist/targets/win/nsis/WebInstallerTarget.d.ts.map +1 -0
  349. package/dist/targets/win/nsis/WebInstallerTarget.js +43 -0
  350. package/dist/targets/win/nsis/WebInstallerTarget.js.map +1 -0
  351. package/dist/targets/win/nsis/nsisLang.d.ts +11 -0
  352. package/dist/targets/win/nsis/nsisLang.d.ts.map +1 -0
  353. package/dist/targets/win/nsis/nsisLang.js +94 -0
  354. package/dist/targets/win/nsis/nsisLang.js.map +1 -0
  355. package/dist/targets/win/nsis/nsisLicense.d.ts +5 -0
  356. package/dist/targets/win/nsis/nsisLicense.d.ts.map +1 -0
  357. package/dist/targets/win/nsis/nsisLicense.js +73 -0
  358. package/dist/targets/win/nsis/nsisLicense.js.map +1 -0
  359. package/dist/targets/win/nsis/nsisOptions.d.ts +275 -0
  360. package/dist/targets/win/nsis/nsisOptions.d.ts.map +1 -0
  361. package/dist/targets/win/nsis/nsisOptions.js +2 -0
  362. package/dist/targets/win/nsis/nsisOptions.js.map +1 -0
  363. package/dist/targets/win/nsis/nsisScriptGenerator.d.ts +13 -0
  364. package/dist/targets/win/nsis/nsisScriptGenerator.d.ts.map +1 -0
  365. package/dist/targets/win/nsis/nsisScriptGenerator.js +59 -0
  366. package/dist/targets/win/nsis/nsisScriptGenerator.js.map +1 -0
  367. package/dist/targets/win/nsis/nsisUtil.d.ts +26 -0
  368. package/dist/targets/win/nsis/nsisUtil.d.ts.map +1 -0
  369. package/dist/targets/win/nsis/nsisUtil.js +218 -0
  370. package/dist/targets/win/nsis/nsisUtil.js.map +1 -0
  371. package/dist/targets/win/nsis/nsisValidation.d.ts +19 -0
  372. package/dist/targets/win/nsis/nsisValidation.d.ts.map +1 -0
  373. package/dist/targets/win/nsis/nsisValidation.js +49 -0
  374. package/dist/targets/win/nsis/nsisValidation.js.map +1 -0
  375. package/dist/toolsets/7zip.d.ts +9 -0
  376. package/dist/toolsets/7zip.d.ts.map +1 -0
  377. package/dist/toolsets/7zip.js +80 -0
  378. package/dist/toolsets/7zip.js.map +1 -0
  379. package/dist/toolsets/appimage.d.ts +20 -0
  380. package/dist/toolsets/appimage.d.ts.map +1 -0
  381. package/dist/toolsets/appimage.js +67 -0
  382. package/dist/toolsets/appimage.js.map +1 -0
  383. package/dist/toolsets/custom.d.ts +5 -0
  384. package/dist/toolsets/custom.d.ts.map +1 -0
  385. package/dist/toolsets/custom.js +200 -0
  386. package/dist/toolsets/custom.js.map +1 -0
  387. package/dist/toolsets/fpm.d.ts +3 -0
  388. package/dist/toolsets/fpm.d.ts.map +1 -0
  389. package/dist/toolsets/fpm.js +49 -0
  390. package/dist/toolsets/fpm.js.map +1 -0
  391. package/dist/toolsets/icons.d.ts +12 -0
  392. package/dist/toolsets/icons.d.ts.map +1 -0
  393. package/dist/toolsets/icons.js +36 -0
  394. package/dist/toolsets/icons.js.map +1 -0
  395. package/dist/toolsets/linuxToolsMac.d.ts +8 -0
  396. package/dist/toolsets/linuxToolsMac.d.ts.map +1 -0
  397. package/dist/toolsets/linuxToolsMac.js +31 -0
  398. package/dist/toolsets/linuxToolsMac.js.map +1 -0
  399. package/dist/toolsets/nsis.d.ts +13 -0
  400. package/dist/toolsets/nsis.d.ts.map +1 -0
  401. package/dist/toolsets/nsis.js +100 -0
  402. package/dist/toolsets/nsis.js.map +1 -0
  403. package/dist/toolsets/winCodeSign.d.ts +42 -0
  404. package/dist/toolsets/winCodeSign.d.ts.map +1 -0
  405. package/dist/toolsets/winCodeSign.js +142 -0
  406. package/dist/toolsets/winCodeSign.js.map +1 -0
  407. package/dist/toolsets/wine.d.ts +6 -0
  408. package/dist/toolsets/wine.d.ts.map +1 -0
  409. package/dist/toolsets/wine.js +79 -0
  410. package/dist/toolsets/wine.js.map +1 -0
  411. package/dist/util/AppFileWalker.d.ts +14 -0
  412. package/dist/util/AppFileWalker.d.ts.map +1 -0
  413. package/dist/util/AppFileWalker.js +69 -0
  414. package/dist/util/AppFileWalker.js.map +1 -0
  415. package/dist/util/NodeModuleCopyHelper.d.ts +2 -0
  416. package/dist/util/NodeModuleCopyHelper.d.ts.map +1 -0
  417. package/dist/util/NodeModuleCopyHelper.js +160 -0
  418. package/dist/util/NodeModuleCopyHelper.js.map +1 -0
  419. package/dist/util/appFileCopier.d.ts +17 -0
  420. package/dist/util/appFileCopier.d.ts.map +1 -0
  421. package/dist/util/appFileCopier.js +190 -0
  422. package/dist/util/appFileCopier.js.map +1 -0
  423. package/dist/util/asyncEventEmitter.d.ts +34 -0
  424. package/dist/util/asyncEventEmitter.d.ts.map +1 -0
  425. package/dist/util/asyncEventEmitter.js +56 -0
  426. package/dist/util/asyncEventEmitter.js.map +1 -0
  427. package/dist/util/bundledTool.d.ts +8 -0
  428. package/dist/util/bundledTool.d.ts.map +1 -0
  429. package/dist/util/bundledTool.js +16 -0
  430. package/dist/util/bundledTool.js.map +1 -0
  431. package/dist/util/cacheManager.d.ts +19 -0
  432. package/dist/util/cacheManager.d.ts.map +1 -0
  433. package/dist/util/cacheManager.js +65 -0
  434. package/dist/util/cacheManager.js.map +1 -0
  435. package/dist/util/cacheState.d.ts +29 -0
  436. package/dist/util/cacheState.d.ts.map +1 -0
  437. package/dist/util/cacheState.js +134 -0
  438. package/dist/util/cacheState.js.map +1 -0
  439. package/dist/util/config/config.d.ts +13 -0
  440. package/dist/util/config/config.d.ts.map +1 -0
  441. package/dist/util/config/config.js +236 -0
  442. package/dist/util/config/config.js.map +1 -0
  443. package/dist/util/config/load.d.ts +20 -0
  444. package/dist/util/config/load.d.ts.map +1 -0
  445. package/dist/util/config/load.js +122 -0
  446. package/dist/util/config/load.js.map +1 -0
  447. package/dist/util/config/schemaValidator.d.ts +8 -0
  448. package/dist/util/config/schemaValidator.d.ts.map +1 -0
  449. package/dist/util/config/schemaValidator.js +161 -0
  450. package/dist/util/config/schemaValidator.js.map +1 -0
  451. package/dist/util/dynamicImport.d.ts +2 -0
  452. package/dist/util/dynamicImport.d.ts.map +1 -0
  453. package/dist/util/dynamicImport.js +9 -0
  454. package/dist/util/dynamicImport.js.map +1 -0
  455. package/dist/util/electronGet.d.ts +68 -0
  456. package/dist/util/electronGet.d.ts.map +1 -0
  457. package/dist/util/electronGet.js +560 -0
  458. package/dist/util/electronGet.js.map +1 -0
  459. package/dist/util/filter.d.ts +2 -0
  460. package/dist/util/filter.d.ts.map +1 -0
  461. package/dist/util/filter.js +64 -0
  462. package/dist/util/filter.js.map +1 -0
  463. package/dist/util/flags.d.ts +16 -0
  464. package/dist/util/flags.d.ts.map +1 -0
  465. package/dist/util/flags.js +53 -0
  466. package/dist/util/flags.js.map +1 -0
  467. package/dist/util/hash.d.ts +2 -0
  468. package/dist/util/hash.d.ts.map +1 -0
  469. package/dist/util/hash.js +16 -0
  470. package/dist/util/hash.js.map +1 -0
  471. package/dist/util/iconConverter.d.ts +29 -0
  472. package/dist/util/iconConverter.d.ts.map +1 -0
  473. package/dist/util/iconConverter.js +255 -0
  474. package/dist/util/iconConverter.js.map +1 -0
  475. package/dist/util/langs.d.ts +190 -0
  476. package/dist/util/langs.d.ts.map +1 -0
  477. package/dist/util/langs.js +432 -0
  478. package/dist/util/langs.js.map +1 -0
  479. package/dist/util/license.d.ts +17 -0
  480. package/dist/util/license.d.ts.map +1 -0
  481. package/dist/util/license.js +42 -0
  482. package/dist/util/license.js.map +1 -0
  483. package/dist/util/mac/macosIconComposer.d.ts +11 -0
  484. package/dist/util/mac/macosIconComposer.d.ts.map +1 -0
  485. package/dist/util/mac/macosIconComposer.js +99 -0
  486. package/dist/util/mac/macosIconComposer.js.map +1 -0
  487. package/dist/util/mac/macosVersion.d.ts +4 -0
  488. package/dist/util/mac/macosVersion.d.ts.map +1 -0
  489. package/dist/util/mac/macosVersion.js +31 -0
  490. package/dist/util/mac/macosVersion.js.map +1 -0
  491. package/dist/util/mac/plist.d.ts +8 -0
  492. package/dist/util/mac/plist.d.ts.map +1 -0
  493. package/dist/util/mac/plist.js +27 -0
  494. package/dist/util/mac/plist.js.map +1 -0
  495. package/dist/util/macroExpander.d.ts +4 -0
  496. package/dist/util/macroExpander.d.ts.map +1 -0
  497. package/dist/util/macroExpander.js +61 -0
  498. package/dist/util/macroExpander.js.map +1 -0
  499. package/dist/util/normalizePackageData.d.ts +2 -0
  500. package/dist/util/normalizePackageData.d.ts.map +1 -0
  501. package/dist/util/normalizePackageData.js +323 -0
  502. package/dist/util/normalizePackageData.js.map +1 -0
  503. package/dist/util/packageMetadata.d.ts +2 -0
  504. package/dist/util/packageMetadata.d.ts.map +1 -0
  505. package/dist/util/packageMetadata.js +118 -0
  506. package/dist/util/packageMetadata.js.map +1 -0
  507. package/dist/util/pathManager.d.ts +4 -0
  508. package/dist/util/pathManager.d.ts.map +1 -0
  509. package/dist/util/pathManager.js +17 -0
  510. package/dist/util/pathManager.js.map +1 -0
  511. package/dist/util/rebuild.d.ts +3 -0
  512. package/dist/util/rebuild.d.ts.map +1 -0
  513. package/dist/util/rebuild.js +54 -0
  514. package/dist/util/rebuild.js.map +1 -0
  515. package/dist/util/repositoryInfo.d.ts +4 -0
  516. package/dist/util/repositoryInfo.d.ts.map +1 -0
  517. package/dist/util/repositoryInfo.js +76 -0
  518. package/dist/util/repositoryInfo.js.map +1 -0
  519. package/dist/util/resolve.d.ts +3 -0
  520. package/dist/util/resolve.d.ts.map +1 -0
  521. package/dist/util/resolve.js +56 -0
  522. package/dist/util/resolve.js.map +1 -0
  523. package/dist/util/timer.d.ts +12 -0
  524. package/dist/util/timer.d.ts.map +1 -0
  525. package/dist/util/timer.js +23 -0
  526. package/dist/util/timer.js.map +1 -0
  527. package/dist/util/toolsetLock.d.ts +2 -0
  528. package/dist/util/toolsetLock.d.ts.map +1 -0
  529. package/dist/util/toolsetLock.js +20 -0
  530. package/dist/util/toolsetLock.js.map +1 -0
  531. package/dist/util/win/resEdit.d.ts +11 -0
  532. package/dist/util/win/resEdit.d.ts.map +1 -0
  533. package/dist/util/win/resEdit.js +46 -0
  534. package/dist/util/win/resEdit.js.map +1 -0
  535. package/dist/util/yarn.d.ts +23 -0
  536. package/dist/util/yarn.d.ts.map +1 -0
  537. package/dist/util/yarn.js +153 -0
  538. package/dist/util/yarn.js.map +1 -0
  539. package/dist/version.d.ts +2 -0
  540. package/dist/version.d.ts.map +1 -0
  541. package/dist/version.js +2 -0
  542. package/dist/version.js.map +1 -0
  543. package/dist/vm/MonoVm.d.ts +9 -0
  544. package/dist/vm/MonoVm.d.ts.map +1 -0
  545. package/dist/vm/MonoVm.js +16 -0
  546. package/dist/vm/MonoVm.js.map +1 -0
  547. package/dist/vm/ParallelsVm.d.ts +24 -0
  548. package/dist/vm/ParallelsVm.d.ts.map +1 -0
  549. package/dist/vm/ParallelsVm.js +107 -0
  550. package/dist/vm/ParallelsVm.js.map +1 -0
  551. package/dist/vm/PwshVm.d.ts +7 -0
  552. package/dist/vm/PwshVm.d.ts.map +1 -0
  553. package/dist/vm/PwshVm.js +21 -0
  554. package/dist/vm/PwshVm.js.map +1 -0
  555. package/dist/vm/WineVm.d.ts +14 -0
  556. package/dist/vm/WineVm.d.ts.map +1 -0
  557. package/dist/vm/WineVm.js +35 -0
  558. package/dist/vm/WineVm.js.map +1 -0
  559. package/dist/vm/vm.d.ts +15 -0
  560. package/dist/vm/vm.d.ts.map +1 -0
  561. package/dist/vm/vm.js +81 -0
  562. package/dist/vm/vm.js.map +1 -0
  563. package/dist/winPackager.d.ts +30 -0
  564. package/dist/winPackager.d.ts.map +1 -0
  565. package/dist/winPackager.js +270 -0
  566. package/dist/winPackager.js.map +1 -0
  567. package/helpers/package.json +6 -0
  568. package/helpers/remote-rebuild.js +2 -4
  569. package/package.json +30 -33
  570. package/scheme.json +379 -721
  571. package/out/Framework.d.ts +0 -36
  572. package/out/Framework.js +0 -7
  573. package/out/Framework.js.map +0 -1
  574. package/out/ProtonFramework.d.ts +0 -10
  575. package/out/ProtonFramework.js +0 -94
  576. package/out/ProtonFramework.js.map +0 -1
  577. package/out/appInfo.d.ts +0 -31
  578. package/out/appInfo.js +0 -152
  579. package/out/appInfo.js.map +0 -1
  580. package/out/asar/asar.d.ts +0 -38
  581. package/out/asar/asar.js +0 -163
  582. package/out/asar/asar.js.map +0 -1
  583. package/out/asar/asarFileChecker.d.ts +0 -2
  584. package/out/asar/asarFileChecker.js +0 -25
  585. package/out/asar/asarFileChecker.js.map +0 -1
  586. package/out/asar/asarUtil.d.ts +0 -1
  587. package/out/asar/asarUtil.js +0 -285
  588. package/out/asar/asarUtil.js.map +0 -1
  589. package/out/asar/integrity.d.ts +0 -15
  590. package/out/asar/integrity.js +0 -62
  591. package/out/asar/integrity.js.map +0 -1
  592. package/out/asar/unpackDetector.d.ts +0 -1
  593. package/out/asar/unpackDetector.js +0 -43
  594. package/out/asar/unpackDetector.js.map +0 -1
  595. package/out/binDownload.d.ts +0 -5
  596. package/out/binDownload.js +0 -104
  597. package/out/binDownload.js.map +0 -1
  598. package/out/codeSign/certInfo.d.ts +0 -54
  599. package/out/codeSign/certInfo.js +0 -466
  600. package/out/codeSign/certInfo.js.map +0 -1
  601. package/out/codeSign/codesign.d.ts +0 -3
  602. package/out/codeSign/codesign.js +0 -33
  603. package/out/codeSign/codesign.js.map +0 -1
  604. package/out/codeSign/macCodeSign.d.ts +0 -28
  605. package/out/codeSign/macCodeSign.js +0 -284
  606. package/out/codeSign/macCodeSign.js.map +0 -1
  607. package/out/codeSign/signManager.d.ts +0 -13
  608. package/out/codeSign/signManager.js +0 -3
  609. package/out/codeSign/signManager.js.map +0 -1
  610. package/out/codeSign/windowsCodeSign.d.ts +0 -7
  611. package/out/codeSign/windowsCodeSign.js +0 -38
  612. package/out/codeSign/windowsCodeSign.js.map +0 -1
  613. package/out/codeSign/windowsSignAzureManager.d.ts +0 -17
  614. package/out/codeSign/windowsSignAzureManager.js +0 -73
  615. package/out/codeSign/windowsSignAzureManager.js.map +0 -1
  616. package/out/codeSign/windowsSignToolManager.d.ts +0 -58
  617. package/out/codeSign/windowsSignToolManager.js +0 -376
  618. package/out/codeSign/windowsSignToolManager.js.map +0 -1
  619. package/out/configuration.d.ts +0 -532
  620. package/out/configuration.js +0 -3
  621. package/out/configuration.js.map +0 -1
  622. package/out/core.d.ts +0 -60
  623. package/out/core.js +0 -66
  624. package/out/core.js.map +0 -1
  625. package/out/electron/ElectronFramework.d.ts +0 -16
  626. package/out/electron/ElectronFramework.js +0 -242
  627. package/out/electron/ElectronFramework.js.map +0 -1
  628. package/out/electron/electronMac.d.ts +0 -1
  629. package/out/electron/electronMac.js +0 -262
  630. package/out/electron/electronMac.js.map +0 -1
  631. package/out/electron/electronVersion.d.ts +0 -6
  632. package/out/electron/electronVersion.js +0 -125
  633. package/out/electron/electronVersion.js.map +0 -1
  634. package/out/electron/electronWin.d.ts +0 -1
  635. package/out/electron/electronWin.js +0 -38
  636. package/out/electron/electronWin.js.map +0 -1
  637. package/out/electron/injectFFMPEG.d.ts +0 -11
  638. package/out/electron/injectFFMPEG.js +0 -57
  639. package/out/electron/injectFFMPEG.js.map +0 -1
  640. package/out/electron/search-module.d.ts +0 -23
  641. package/out/electron/search-module.js +0 -73
  642. package/out/electron/search-module.js.map +0 -1
  643. package/out/errorMessages.d.ts +0 -1
  644. package/out/errorMessages.js +0 -11
  645. package/out/errorMessages.js.map +0 -1
  646. package/out/fileMatcher.d.ts +0 -29
  647. package/out/fileMatcher.js +0 -292
  648. package/out/fileMatcher.js.map +0 -1
  649. package/out/fileTransformer.d.ts +0 -1
  650. package/out/fileTransformer.js +0 -107
  651. package/out/fileTransformer.js.map +0 -1
  652. package/out/forge-maker.d.ts +0 -5
  653. package/out/forge-maker.js +0 -23
  654. package/out/forge-maker.js.map +0 -1
  655. package/out/frameworks/LibUiFramework.d.ts +0 -47
  656. package/out/frameworks/LibUiFramework.js +0 -197
  657. package/out/frameworks/LibUiFramework.js.map +0 -1
  658. package/out/index.d.ts +0 -39
  659. package/out/index.js +0 -99
  660. package/out/index.js.map +0 -1
  661. package/out/linuxPackager.d.ts +0 -12
  662. package/out/linuxPackager.js +0 -77
  663. package/out/linuxPackager.js.map +0 -1
  664. package/out/mac/MacTargetHelper.d.ts +0 -29
  665. package/out/mac/MacTargetHelper.js +0 -273
  666. package/out/mac/MacTargetHelper.js.map +0 -1
  667. package/out/macPackager.d.ts +0 -49
  668. package/out/macPackager.js +0 -445
  669. package/out/macPackager.js.map +0 -1
  670. package/out/node-module-collector/bunNodeModulesCollector.d.ts +0 -10
  671. package/out/node-module-collector/bunNodeModulesCollector.js +0 -18
  672. package/out/node-module-collector/bunNodeModulesCollector.js.map +0 -1
  673. package/out/node-module-collector/hoist.d.ts +0 -123
  674. package/out/node-module-collector/hoist.js +0 -884
  675. package/out/node-module-collector/hoist.js.map +0 -1
  676. package/out/node-module-collector/index.d.ts +0 -18
  677. package/out/node-module-collector/index.js +0 -130
  678. package/out/node-module-collector/index.js.map +0 -1
  679. package/out/node-module-collector/moduleManager.d.ts +0 -93
  680. package/out/node-module-collector/moduleManager.js +0 -321
  681. package/out/node-module-collector/moduleManager.js.map +0 -1
  682. package/out/node-module-collector/nodeModulesCollector.d.ts +0 -137
  683. package/out/node-module-collector/nodeModulesCollector.js +0 -428
  684. package/out/node-module-collector/nodeModulesCollector.js.map +0 -1
  685. package/out/node-module-collector/npmNodeModulesCollector.d.ts +0 -14
  686. package/out/node-module-collector/npmNodeModulesCollector.js +0 -80
  687. package/out/node-module-collector/npmNodeModulesCollector.js.map +0 -1
  688. package/out/node-module-collector/packageManager.d.ts +0 -17
  689. package/out/node-module-collector/packageManager.js +0 -144
  690. package/out/node-module-collector/packageManager.js.map +0 -1
  691. package/out/node-module-collector/pnpmNodeModulesCollector.d.ts +0 -44
  692. package/out/node-module-collector/pnpmNodeModulesCollector.js +0 -191
  693. package/out/node-module-collector/pnpmNodeModulesCollector.js.map +0 -1
  694. package/out/node-module-collector/traversalNodeModulesCollector.d.ts +0 -18
  695. package/out/node-module-collector/traversalNodeModulesCollector.js +0 -122
  696. package/out/node-module-collector/traversalNodeModulesCollector.js.map +0 -1
  697. package/out/node-module-collector/types.d.ts +0 -52
  698. package/out/node-module-collector/types.js +0 -3
  699. package/out/node-module-collector/yarnBerryNodeModulesCollector.d.ts +0 -15
  700. package/out/node-module-collector/yarnBerryNodeModulesCollector.js +0 -93
  701. package/out/node-module-collector/yarnBerryNodeModulesCollector.js.map +0 -1
  702. package/out/node-module-collector/yarnNodeModulesCollector.d.ts +0 -10
  703. package/out/node-module-collector/yarnNodeModulesCollector.js +0 -22
  704. package/out/node-module-collector/yarnNodeModulesCollector.js.map +0 -1
  705. package/out/options/AppXOptions.d.ts +0 -105
  706. package/out/options/AppXOptions.js +0 -3
  707. package/out/options/AppXOptions.js.map +0 -1
  708. package/out/options/CommonWindowsInstallerConfiguration.d.ts +0 -47
  709. package/out/options/CommonWindowsInstallerConfiguration.js +0 -51
  710. package/out/options/CommonWindowsInstallerConfiguration.js.map +0 -1
  711. package/out/options/FileAssociation.d.ts +0 -45
  712. package/out/options/FileAssociation.js +0 -3
  713. package/out/options/MsiOptions.d.ts +0 -26
  714. package/out/options/MsiOptions.js +0 -3
  715. package/out/options/MsiOptions.js.map +0 -1
  716. package/out/options/MsiWrappedOptions.d.ts +0 -26
  717. package/out/options/MsiWrappedOptions.js +0 -3
  718. package/out/options/MsiWrappedOptions.js.map +0 -1
  719. package/out/options/PlatformSpecificBuildOptions.d.ts +0 -238
  720. package/out/options/PlatformSpecificBuildOptions.js +0 -3
  721. package/out/options/PlatformSpecificBuildOptions.js.map +0 -1
  722. package/out/options/SnapOptions.d.ts +0 -500
  723. package/out/options/SnapOptions.js +0 -3
  724. package/out/options/SnapOptions.js.map +0 -1
  725. package/out/options/SquirrelWindowsOptions.d.ts +0 -46
  726. package/out/options/SquirrelWindowsOptions.js +0 -3
  727. package/out/options/SquirrelWindowsOptions.js.map +0 -1
  728. package/out/options/linuxOptions.d.ts +0 -287
  729. package/out/options/linuxOptions.js +0 -3
  730. package/out/options/linuxOptions.js.map +0 -1
  731. package/out/options/macOptions.d.ts +0 -388
  732. package/out/options/macOptions.js +0 -3
  733. package/out/options/macOptions.js.map +0 -1
  734. package/out/options/metadata.d.ts +0 -53
  735. package/out/options/metadata.js +0 -3
  736. package/out/options/metadata.js.map +0 -1
  737. package/out/options/pkgOptions.d.ts +0 -136
  738. package/out/options/pkgOptions.js +0 -3
  739. package/out/options/pkgOptions.js.map +0 -1
  740. package/out/options/winOptions.d.ts +0 -164
  741. package/out/options/winOptions.js +0 -3
  742. package/out/options/winOptions.js.map +0 -1
  743. package/out/packager.d.ts +0 -99
  744. package/out/packager.js +0 -515
  745. package/out/packager.js.map +0 -1
  746. package/out/packagerApi.d.ts +0 -31
  747. package/out/packagerApi.js +0 -3
  748. package/out/packagerApi.js.map +0 -1
  749. package/out/platformPackager.d.ts +0 -101
  750. package/out/platformPackager.js +0 -714
  751. package/out/platformPackager.js.map +0 -1
  752. package/out/presets/rectCra.d.ts +0 -1
  753. package/out/presets/rectCra.js +0 -22
  754. package/out/presets/rectCra.js.map +0 -1
  755. package/out/publish/PublishManager.d.ts +0 -30
  756. package/out/publish/PublishManager.js +0 -497
  757. package/out/publish/PublishManager.js.map +0 -1
  758. package/out/publish/updateInfoBuilder.d.ts +0 -14
  759. package/out/publish/updateInfoBuilder.js +0 -226
  760. package/out/publish/updateInfoBuilder.js.map +0 -1
  761. package/out/targets/AppxCapabilities.d.ts +0 -8
  762. package/out/targets/AppxCapabilities.js +0 -258
  763. package/out/targets/AppxCapabilities.js.map +0 -1
  764. package/out/targets/AppxTarget.d.ts +0 -17
  765. package/out/targets/AppxTarget.js +0 -403
  766. package/out/targets/AppxTarget.js.map +0 -1
  767. package/out/targets/ArchiveTarget.d.ts +0 -11
  768. package/out/targets/ArchiveTarget.js +0 -88
  769. package/out/targets/ArchiveTarget.js.map +0 -1
  770. package/out/targets/FlatpakTarget.d.ts +0 -20
  771. package/out/targets/FlatpakTarget.js +0 -159
  772. package/out/targets/FlatpakTarget.js.map +0 -1
  773. package/out/targets/FpmTarget.d.ts +0 -22
  774. package/out/targets/FpmTarget.js +0 -372
  775. package/out/targets/FpmTarget.js.map +0 -1
  776. package/out/targets/LinuxTargetHelper.d.ts +0 -23
  777. package/out/targets/LinuxTargetHelper.js +0 -346
  778. package/out/targets/LinuxTargetHelper.js.map +0 -1
  779. package/out/targets/MsiTarget.d.ts +0 -28
  780. package/out/targets/MsiTarget.js +0 -268
  781. package/out/targets/MsiTarget.js.map +0 -1
  782. package/out/targets/MsiWrappedTarget.d.ts +0 -19
  783. package/out/targets/MsiWrappedTarget.js +0 -80
  784. package/out/targets/MsiWrappedTarget.js.map +0 -1
  785. package/out/targets/appimage/AppImageTarget.d.ts +0 -15
  786. package/out/targets/appimage/AppImageTarget.js +0 -147
  787. package/out/targets/appimage/AppImageTarget.js.map +0 -1
  788. package/out/targets/appimage/appImageUtil.d.ts +0 -56
  789. package/out/targets/appimage/appImageUtil.js +0 -323
  790. package/out/targets/appimage/appImageUtil.js.map +0 -1
  791. package/out/targets/appimage/appLauncher.d.ts +0 -3
  792. package/out/targets/appimage/appLauncher.js +0 -95
  793. package/out/targets/appimage/appLauncher.js.map +0 -1
  794. package/out/targets/archive.d.ts +0 -26
  795. package/out/targets/archive.js +0 -178
  796. package/out/targets/archive.js.map +0 -1
  797. package/out/targets/blockmap/blockmap.d.ts +0 -16
  798. package/out/targets/blockmap/blockmap.js +0 -153
  799. package/out/targets/blockmap/blockmap.js.map +0 -1
  800. package/out/targets/differentialUpdateInfoBuilder.d.ts +0 -15
  801. package/out/targets/differentialUpdateInfoBuilder.js +0 -80
  802. package/out/targets/differentialUpdateInfoBuilder.js.map +0 -1
  803. package/out/targets/nsis/Commands.d.ts +0 -9
  804. package/out/targets/nsis/Commands.js +0 -3
  805. package/out/targets/nsis/Commands.js.map +0 -1
  806. package/out/targets/nsis/Defines.d.ts +0 -80
  807. package/out/targets/nsis/Defines.js +0 -3
  808. package/out/targets/nsis/Defines.js.map +0 -1
  809. package/out/targets/nsis/NsisTarget.d.ts +0 -37
  810. package/out/targets/nsis/NsisTarget.js +0 -729
  811. package/out/targets/nsis/NsisTarget.js.map +0 -1
  812. package/out/targets/nsis/WebInstallerTarget.d.ts +0 -13
  813. package/out/targets/nsis/WebInstallerTarget.js +0 -47
  814. package/out/targets/nsis/WebInstallerTarget.js.map +0 -1
  815. package/out/targets/nsis/nsisLang.d.ts +0 -10
  816. package/out/targets/nsis/nsisLang.js +0 -100
  817. package/out/targets/nsis/nsisLang.js.map +0 -1
  818. package/out/targets/nsis/nsisLicense.d.ts +0 -4
  819. package/out/targets/nsis/nsisLicense.js +0 -77
  820. package/out/targets/nsis/nsisLicense.js.map +0 -1
  821. package/out/targets/nsis/nsisOptions.d.ts +0 -274
  822. package/out/targets/nsis/nsisOptions.js +0 -3
  823. package/out/targets/nsis/nsisOptions.js.map +0 -1
  824. package/out/targets/nsis/nsisScriptGenerator.d.ts +0 -12
  825. package/out/targets/nsis/nsisScriptGenerator.js +0 -64
  826. package/out/targets/nsis/nsisScriptGenerator.js.map +0 -1
  827. package/out/targets/nsis/nsisUtil.d.ts +0 -25
  828. package/out/targets/nsis/nsisUtil.js +0 -225
  829. package/out/targets/nsis/nsisUtil.js.map +0 -1
  830. package/out/targets/nsis/nsisValidation.d.ts +0 -18
  831. package/out/targets/nsis/nsisValidation.js +0 -53
  832. package/out/targets/nsis/nsisValidation.js.map +0 -1
  833. package/out/targets/pkg.d.ts +0 -30
  834. package/out/targets/pkg.js +0 -279
  835. package/out/targets/pkg.js.map +0 -1
  836. package/out/targets/snap/SnapTarget.d.ts +0 -36
  837. package/out/targets/snap/SnapTarget.js +0 -105
  838. package/out/targets/snap/SnapTarget.js.map +0 -1
  839. package/out/targets/snap/core24.d.ts +0 -52
  840. package/out/targets/snap/core24.js +0 -449
  841. package/out/targets/snap/core24.js.map +0 -1
  842. package/out/targets/snap/coreCustom.d.ts +0 -28
  843. package/out/targets/snap/coreCustom.js +0 -63
  844. package/out/targets/snap/coreCustom.js.map +0 -1
  845. package/out/targets/snap/coreLegacy.d.ts +0 -43
  846. package/out/targets/snap/coreLegacy.js +0 -416
  847. package/out/targets/snap/coreLegacy.js.map +0 -1
  848. package/out/targets/snap/snapcraftBuilder.d.ts +0 -39
  849. package/out/targets/snap/snapcraftBuilder.js +0 -419
  850. package/out/targets/snap/snapcraftBuilder.js.map +0 -1
  851. package/out/targets/targetFactory.d.ts +0 -12
  852. package/out/targets/targetFactory.js +0 -101
  853. package/out/targets/targetFactory.js.map +0 -1
  854. package/out/targets/targetUtil.d.ts +0 -14
  855. package/out/targets/targetUtil.js +0 -47
  856. package/out/targets/targetUtil.js.map +0 -1
  857. package/out/toolsets/7zip.d.ts +0 -2
  858. package/out/toolsets/7zip.js +0 -72
  859. package/out/toolsets/7zip.js.map +0 -1
  860. package/out/toolsets/icons.d.ts +0 -8
  861. package/out/toolsets/icons.js +0 -37
  862. package/out/toolsets/icons.js.map +0 -1
  863. package/out/toolsets/linux.d.ts +0 -26
  864. package/out/toolsets/linux.js +0 -146
  865. package/out/toolsets/linux.js.map +0 -1
  866. package/out/toolsets/windows.d.ts +0 -61
  867. package/out/toolsets/windows.js +0 -259
  868. package/out/toolsets/windows.js.map +0 -1
  869. package/out/toolsets/wine.d.ts +0 -5
  870. package/out/toolsets/wine.js +0 -100
  871. package/out/toolsets/wine.js.map +0 -1
  872. package/out/util/AppFileWalker.d.ts +0 -13
  873. package/out/util/AppFileWalker.js +0 -74
  874. package/out/util/AppFileWalker.js.map +0 -1
  875. package/out/util/NodeModuleCopyHelper.d.ts +0 -1
  876. package/out/util/NodeModuleCopyHelper.js +0 -165
  877. package/out/util/NodeModuleCopyHelper.js.map +0 -1
  878. package/out/util/appFileCopier.d.ts +0 -16
  879. package/out/util/appFileCopier.js +0 -251
  880. package/out/util/appFileCopier.js.map +0 -1
  881. package/out/util/asyncEventEmitter.d.ts +0 -33
  882. package/out/util/asyncEventEmitter.js +0 -63
  883. package/out/util/asyncEventEmitter.js.map +0 -1
  884. package/out/util/bundledTool.d.ts +0 -7
  885. package/out/util/bundledTool.js +0 -20
  886. package/out/util/bundledTool.js.map +0 -1
  887. package/out/util/cacheManager.d.ts +0 -18
  888. package/out/util/cacheManager.js +0 -70
  889. package/out/util/cacheManager.js.map +0 -1
  890. package/out/util/cacheState.d.ts +0 -28
  891. package/out/util/cacheState.js +0 -143
  892. package/out/util/cacheState.js.map +0 -1
  893. package/out/util/config/config.d.ts +0 -12
  894. package/out/util/config/config.js +0 -256
  895. package/out/util/config/config.js.map +0 -1
  896. package/out/util/config/load.d.ts +0 -19
  897. package/out/util/config/load.js +0 -129
  898. package/out/util/config/load.js.map +0 -1
  899. package/out/util/config/schemaValidator.d.ts +0 -7
  900. package/out/util/config/schemaValidator.js +0 -154
  901. package/out/util/config/schemaValidator.js.map +0 -1
  902. package/out/util/dynamicImport.d.ts +0 -1
  903. package/out/util/dynamicImport.js +0 -12
  904. package/out/util/dynamicImport.js.map +0 -1
  905. package/out/util/electronGet.d.ts +0 -61
  906. package/out/util/electronGet.js +0 -464
  907. package/out/util/electronGet.js.map +0 -1
  908. package/out/util/envPath.d.ts +0 -2
  909. package/out/util/envPath.js +0 -28
  910. package/out/util/envPath.js.map +0 -1
  911. package/out/util/filter.d.ts +0 -1
  912. package/out/util/filter.js +0 -68
  913. package/out/util/filter.js.map +0 -1
  914. package/out/util/flags.d.ts +0 -3
  915. package/out/util/flags.js +0 -16
  916. package/out/util/flags.js.map +0 -1
  917. package/out/util/hash.d.ts +0 -1
  918. package/out/util/hash.js +0 -19
  919. package/out/util/hash.js.map +0 -1
  920. package/out/util/iconConverter.d.ts +0 -25
  921. package/out/util/iconConverter.js +0 -260
  922. package/out/util/iconConverter.js.map +0 -1
  923. package/out/util/langs.d.ts +0 -189
  924. package/out/util/langs.js +0 -436
  925. package/out/util/langs.js.map +0 -1
  926. package/out/util/license.d.ts +0 -16
  927. package/out/util/license.js +0 -47
  928. package/out/util/license.js.map +0 -1
  929. package/out/util/macosIconComposer.d.ts +0 -10
  930. package/out/util/macosIconComposer.js +0 -102
  931. package/out/util/macosIconComposer.js.map +0 -1
  932. package/out/util/macosVersion.d.ts +0 -3
  933. package/out/util/macosVersion.js +0 -36
  934. package/out/util/macosVersion.js.map +0 -1
  935. package/out/util/macroExpander.d.ts +0 -3
  936. package/out/util/macroExpander.js +0 -64
  937. package/out/util/macroExpander.js.map +0 -1
  938. package/out/util/normalizePackageData.d.ts +0 -1
  939. package/out/util/normalizePackageData.js +0 -328
  940. package/out/util/normalizePackageData.js.map +0 -1
  941. package/out/util/packageDependencies.d.ts +0 -6
  942. package/out/util/packageDependencies.js +0 -3
  943. package/out/util/packageDependencies.js.map +0 -1
  944. package/out/util/packageMetadata.d.ts +0 -1
  945. package/out/util/packageMetadata.js +0 -124
  946. package/out/util/packageMetadata.js.map +0 -1
  947. package/out/util/pathManager.d.ts +0 -3
  948. package/out/util/pathManager.js +0 -23
  949. package/out/util/pathManager.js.map +0 -1
  950. package/out/util/plist.d.ts +0 -7
  951. package/out/util/plist.js +0 -31
  952. package/out/util/plist.js.map +0 -1
  953. package/out/util/rebuild.d.ts +0 -2
  954. package/out/util/rebuild.js +0 -60
  955. package/out/util/rebuild.js.map +0 -1
  956. package/out/util/repositoryInfo.d.ts +0 -3
  957. package/out/util/repositoryInfo.js +0 -79
  958. package/out/util/repositoryInfo.js.map +0 -1
  959. package/out/util/resEdit.d.ts +0 -10
  960. package/out/util/resEdit.js +0 -49
  961. package/out/util/resEdit.js.map +0 -1
  962. package/out/util/resolve.d.ts +0 -2
  963. package/out/util/resolve.js +0 -59
  964. package/out/util/resolve.js.map +0 -1
  965. package/out/util/timer.d.ts +0 -11
  966. package/out/util/timer.js +0 -28
  967. package/out/util/timer.js.map +0 -1
  968. package/out/util/toolsetLock.d.ts +0 -1
  969. package/out/util/toolsetLock.js +0 -23
  970. package/out/util/toolsetLock.js.map +0 -1
  971. package/out/util/yarn.d.ts +0 -22
  972. package/out/util/yarn.js +0 -160
  973. package/out/util/yarn.js.map +0 -1
  974. package/out/version.d.ts +0 -1
  975. package/out/version.js +0 -5
  976. package/out/version.js.map +0 -1
  977. package/out/vm/MonoVm.d.ts +0 -8
  978. package/out/vm/MonoVm.js +0 -20
  979. package/out/vm/MonoVm.js.map +0 -1
  980. package/out/vm/ParallelsVm.d.ts +0 -23
  981. package/out/vm/ParallelsVm.js +0 -102
  982. package/out/vm/ParallelsVm.js.map +0 -1
  983. package/out/vm/PwshVm.d.ts +0 -6
  984. package/out/vm/PwshVm.js +0 -25
  985. package/out/vm/PwshVm.js.map +0 -1
  986. package/out/vm/WineVm.d.ts +0 -12
  987. package/out/vm/WineVm.js +0 -38
  988. package/out/vm/WineVm.js.map +0 -1
  989. package/out/vm/vm.d.ts +0 -14
  990. package/out/vm/vm.js +0 -88
  991. package/out/vm/vm.js.map +0 -1
  992. package/out/winPackager.d.ts +0 -29
  993. package/out/winPackager.js +0 -271
  994. package/out/winPackager.js.map +0 -1
  995. /package/{out → dist}/node-module-collector/types.js.map +0 -0
  996. /package/{out → dist}/options/FileAssociation.js.map +0 -0
  997. /package/helpers/{dynamic-import.js → dynamic-import.cjs} +0 -0
@@ -0,0 +1,1010 @@
1
+ import { Arch } from "builder-util";
2
+ import { BeforeBuildContext, Target } from "./core.js";
3
+ import { ElectronBrandingOptions } from "./electron/ElectronFramework.js";
4
+ import { PrepareApplicationStageDirectoryOptions } from "./Framework.js";
5
+ import { AppXOptions } from "./options/AppXOptions.js";
6
+ import { AppImageOptions, DebOptions, FlatpakOptions, LinuxConfiguration, LinuxTargetSpecificOptions, PacmanOptions, RpmOptions } from "./options/linuxOptions.js";
7
+ import { DmgOptions, MacConfiguration, MasConfiguration } from "./options/macOptions.js";
8
+ import { MsiOptions } from "./options/MsiOptions.js";
9
+ import { MsiWrappedOptions } from "./options/MsiWrappedOptions.js";
10
+ import { PkgOptions } from "./options/pkgOptions.js";
11
+ import { PlatformSpecificBuildOptions } from "./options/PlatformSpecificBuildOptions.js";
12
+ import { SnapcraftOptions } from "./options/SnapOptions.js";
13
+ import { SquirrelWindowsOptions } from "./options/SquirrelWindowsOptions.js";
14
+ import { WindowsConfiguration } from "./options/winOptions.js";
15
+ import { BuildResult } from "./packager.js";
16
+ import { ArtifactBuildStarted, ArtifactCreated } from "./packagerApi.js";
17
+ import { PlatformPackager } from "./platformPackager.js";
18
+ import { NsisOptions, NsisWebOptions, PortableOptions } from "./targets/win/nsis/nsisOptions.js";
19
+ import { ElectronDownloadOptions, ElectronGetOptions } from "./util/electronGet.js";
20
+ /**
21
+ * Configuration options shared across all platforms.
22
+ *
23
+ * These properties apply regardless of the target platform and control general build behaviour such
24
+ * as the application identity, output paths, native dependency rebuilding, toolset versions, and
25
+ * platform-specific target sub-configurations.
26
+ */
27
+ export interface CommonConfiguration {
28
+ /**
29
+ * The application identifier.
30
+ *
31
+ * Used as [`CFBundleIdentifier`](https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleidentifier)
32
+ * on macOS and as the
33
+ * [Application User Model ID](https://learn.microsoft.com/en-us/windows/win32/shell/appids)
34
+ * on Windows (NSIS target only; Squirrel.Windows does not support custom Application User Model IDs).
35
+ *
36
+ * It is strongly recommended to set an explicit, reverse-DNS-style identifier (e.g. `"com.example.myapp"`)
37
+ * rather than relying on the generated default.
38
+ *
39
+ * @default com.electron.${name}
40
+ */
41
+ readonly appId?: string | null;
42
+ /**
43
+ * The human-readable product name displayed in installers, the macOS dock, and the Windows
44
+ * Apps & Features list.
45
+ *
46
+ * Unlike the `name` field in `package.json`, this value may contain spaces and other characters
47
+ * that are not allowed in npm package names.
48
+ *
49
+ * Resolution order:
50
+ * 1. `productName` inside the `build` configuration block.
51
+ * 2. `productName` at the top level of `package.json`.
52
+ * 3. `name` at the top level of `package.json`.
53
+ */
54
+ readonly productName?: string | null;
55
+ /**
56
+ * The copyright string embedded in the built artifacts.
57
+ *
58
+ * Appears in the Windows `LegalCopyright` version-info field and the macOS `NSHumanReadableCopyright`
59
+ * Info.plist key.
60
+ *
61
+ * @default Copyright © ${year} ${author}
62
+ */
63
+ readonly copyright?: string | null;
64
+ /**
65
+ * Overrides for input/output directory paths used during the build.
66
+ *
67
+ * @see {@link MetadataDirectories}
68
+ */
69
+ readonly directories?: MetadataDirectories | null;
70
+ /**
71
+ * Pinned versions of the binary toolsets electron-builder downloads and uses internally.
72
+ *
73
+ * Each property selects a specific release of the corresponding tool bundle. Set a property to
74
+ * `"0.0.0"` to force the legacy bundle (pre-v27 behaviour). Leave a property unset (or set to
75
+ * `null`) to use the modern default for that toolset.
76
+ *
77
+ * @see {@link ToolsetConfig}
78
+ */
79
+ readonly toolsets?: ToolsetConfig | null;
80
+ /**
81
+ * macOS-specific build options (signing, entitlements, notarization, target categories, etc.).
82
+ * @see {@link MacConfiguration}
83
+ */
84
+ readonly mac?: MacConfiguration | null;
85
+ /**
86
+ * macOS App Store (MAS) submission options.
87
+ * @see {@link MasConfiguration}
88
+ */
89
+ readonly mas?: MasConfiguration | null;
90
+ /**
91
+ * macOS App Store development-signing options (`mas-dev` target).
92
+ * Used for local testing of MAS builds without submitting to the store.
93
+ * @see {@link MasConfiguration}
94
+ */
95
+ readonly masDev?: MasConfiguration | null;
96
+ /**
97
+ * macOS DMG disk image options (background image, window position, icon layout, licence, etc.).
98
+ * @see {@link DmgOptions}
99
+ */
100
+ readonly dmg?: DmgOptions | null;
101
+ /**
102
+ * macOS PKG flat-package installer options.
103
+ * @see {@link PkgOptions}
104
+ */
105
+ readonly pkg?: PkgOptions | null;
106
+ /**
107
+ * Windows-specific build options (signing, NSIS, icon, file associations, etc.).
108
+ * @see {@link WindowsConfiguration}
109
+ */
110
+ readonly win?: WindowsConfiguration | null;
111
+ /**
112
+ * NSIS one-click installer options.
113
+ *
114
+ * NSIS (Nullsoft Scriptable Install System) is the default Windows installer format produced by
115
+ * electron-builder. It generates a lightweight, self-extracting `.exe` installer.
116
+ *
117
+ * @see {@link NsisOptions}
118
+ */
119
+ readonly nsis?: NsisOptions | null;
120
+ /**
121
+ * NSIS web installer options.
122
+ *
123
+ * Like the standard NSIS installer but the app payload is downloaded from a remote URL at install
124
+ * time rather than bundled into the `.exe`. Useful for very large apps or staged rollouts.
125
+ *
126
+ * @see {@link NsisWebOptions}
127
+ */
128
+ readonly nsisWeb?: NsisWebOptions | null;
129
+ /**
130
+ * Portable executable options.
131
+ *
132
+ * Produces a single `.exe` that requires no installation — it extracts and runs directly.
133
+ *
134
+ * @see {@link PortableOptions}
135
+ */
136
+ readonly portable?: PortableOptions | null;
137
+ /**
138
+ * Windows Store (MSIX/AppX) package options.
139
+ *
140
+ * Produces a `.appx` or `.msix` package suitable for distribution through the Microsoft Store or
141
+ * side-loading.
142
+ *
143
+ * @see {@link AppXOptions}
144
+ */
145
+ readonly appx?: AppXOptions | null;
146
+ /**
147
+ * WiX-based MSI installer options.
148
+ *
149
+ * Produces a traditional `.msi` package built with the WiX Toolset. Best for enterprise
150
+ * deployments that require MSI-based installation policies.
151
+ *
152
+ * @see {@link MsiOptions}
153
+ */
154
+ readonly msi?: MsiOptions | null;
155
+ /**
156
+ * MSI-wrapped NSIS installer options.
157
+ *
158
+ * Wraps the standard NSIS installer inside an MSI package so that it can be deployed via
159
+ * Group Policy or other MSI-only channels while preserving the NSIS installer UX.
160
+ *
161
+ * @see {@link MsiWrappedOptions}
162
+ */
163
+ readonly msiWrapped?: MsiWrappedOptions | null;
164
+ /**
165
+ * Squirrel.Windows auto-update installer options.
166
+ *
167
+ * Requires the `electron-builder-squirrel-windows` optional dependency.
168
+ *
169
+ * @see {@link SquirrelWindowsOptions}
170
+ */
171
+ readonly squirrelWindows?: SquirrelWindowsOptions | null;
172
+ /**
173
+ * General Linux build options shared across all Linux targets (icon, category, desktop entry,
174
+ * executable name, etc.). Target-specific compression and packaging options live in the
175
+ * per-format interfaces (`DebOptions`, `RpmOptions`, `PacmanOptions`, etc.).
176
+ *
177
+ * @see {@link LinuxConfiguration}
178
+ */
179
+ readonly linux?: LinuxConfiguration | null;
180
+ /**
181
+ * Debian package options.
182
+ *
183
+ * Targets Debian, Ubuntu, and Debian-based distributions. Produces a `.deb` archive
184
+ * installable via `dpkg -i` or `apt install ./package.deb`.
185
+ *
186
+ * @see {@link DebOptions}
187
+ */
188
+ readonly deb?: DebOptions | null;
189
+ /**
190
+ * Snapcraft configuration.
191
+ *
192
+ * Selects the snapcraft base and provides per-core options:
193
+ * - `base: "core18" | "core20" | "core22"` — legacy bases; still functional but not recommended
194
+ * for new apps.
195
+ * - `base: "core24"` — modern base with the GNOME extension (recommended, requires Electron 25+).
196
+ * - `base: "custom"` — pass an existing `snapcraft.yaml` through unchanged; no plugs, extensions,
197
+ * or desktop files are injected.
198
+ *
199
+ * @example
200
+ * ```json
201
+ * { "snapcraft": { "base": "core24", "core24": { "useLXD": true } } }
202
+ * ```
203
+ *
204
+ * @see {@link SnapcraftOptions}
205
+ */
206
+ readonly snapcraft?: SnapcraftOptions | null;
207
+ /**
208
+ * AppImage options.
209
+ *
210
+ * AppImage is a portable application format that bundles the app and its runtime dependencies
211
+ * into a single self-contained executable that runs on most Linux distributions without
212
+ * installation. The produced `.AppImage` file is executable after `chmod +x`.
213
+ *
214
+ * @see {@link AppImageOptions}
215
+ */
216
+ readonly appImage?: AppImageOptions | null;
217
+ /**
218
+ * Flatpak options.
219
+ *
220
+ * Flatpak is a sandboxed application distribution format for Linux distributed via
221
+ * [Flathub](https://flathub.org/) or self-hosted OSTree repositories.
222
+ *
223
+ * @see {@link FlatpakOptions}
224
+ */
225
+ readonly flatpak?: FlatpakOptions | null;
226
+ /**
227
+ * Pacman package options.
228
+ *
229
+ * Targets Arch Linux and Arch-based distributions (Manjaro, EndeavourOS, etc.).
230
+ * Produces a `.pacman` archive installable via `pacman -U ./package.pacman`.
231
+ *
232
+ * @see {@link PacmanOptions}
233
+ */
234
+ readonly pacman?: PacmanOptions | null;
235
+ /**
236
+ * RPM package options.
237
+ *
238
+ * Targets Fedora, Red Hat Enterprise Linux, SUSE, and RPM-based distributions.
239
+ * Produces a `.rpm` archive installable via `rpm -i` or `dnf install ./package.rpm`.
240
+ *
241
+ * @see {@link RpmOptions}
242
+ */
243
+ readonly rpm?: RpmOptions | null;
244
+ /**
245
+ * FreeBSD `pkg` package options.
246
+ *
247
+ * Produces a `.pkg` archive for the FreeBSD package manager.
248
+ */
249
+ readonly freebsd?: LinuxTargetSpecificOptions | null;
250
+ /**
251
+ * Solaris IPS package options.
252
+ *
253
+ * Produces a `.p5p` archive for the Solaris Image Packaging System (`pkg`).
254
+ */
255
+ readonly p5p?: LinuxTargetSpecificOptions | null;
256
+ /**
257
+ * Alpine Linux APK package options.
258
+ *
259
+ * Produces an `.apk` archive installable via `apk add --allow-untrusted ./package.apk`.
260
+ */
261
+ readonly apk?: LinuxTargetSpecificOptions | null;
262
+ /**
263
+ * Additional command-line arguments appended to the package manager's `install` command when
264
+ * electron-builder installs app dependencies (i.e., when `node_modules` is missing and a fresh
265
+ * install is required).
266
+ *
267
+ * These arguments are appended **only** during the install phase, not during the rebuild phase.
268
+ * To influence `@electron/rebuild` directly, see {@link NativeModulesConfig.rebuildMode}.
269
+ *
270
+ * @example
271
+ * ```json
272
+ * { "npmArgs": ["--prefer-offline", "--ignore-scripts"] }
273
+ * ```
274
+ */
275
+ readonly npmArgs?: Array<string> | string | null;
276
+ /**
277
+ * Configuration for native Node.js module installation and rebuilding.
278
+ *
279
+ * Groups all options that control how electron-builder handles native modules — from forcing
280
+ * source builds during install through to the `@electron/rebuild` compilation mode.
281
+ *
282
+ * @see {@link NativeModulesConfig}
283
+ */
284
+ readonly nativeModules?: NativeModulesConfig | null;
285
+ /**
286
+ * The build number.
287
+ *
288
+ * Maps to the `--iteration` flag for FPM-based Linux targets and is appended to the version
289
+ * string in `CFBundleVersion` (macOS) and `FileVersion` (Windows) when {@link buildVersion} is
290
+ * not set explicitly.
291
+ *
292
+ * If not set, falls back to the first defined environment variable among:
293
+ * `BUILD_NUMBER`, `TRAVIS_BUILD_NUMBER`, `APPVEYOR_BUILD_NUMBER`, `CIRCLE_BUILD_NUM`,
294
+ * `BUILD_BUILDNUMBER`, `CI_PIPELINE_IID`.
295
+ */
296
+ readonly buildNumber?: string | null;
297
+ /**
298
+ * The full build version string.
299
+ *
300
+ * Maps to `CFBundleVersion` on macOS and the `FileVersion` metadata field on Windows.
301
+ * Defaults to the `version` field from `package.json`.
302
+ *
303
+ * If `buildVersion` is not set but {@link buildNumber} is defined (or resolved from an
304
+ * environment variable), the effective build version becomes `${version}.${buildNumber}`.
305
+ */
306
+ readonly buildVersion?: string | null;
307
+ /**
308
+ * Whether to download the FFmpeg library variant from Electron's release assets and replace the
309
+ * default (proprietary codec) FFmpeg library before signing.
310
+ *
311
+ * The alternate FFmpeg is compiled without proprietary codec support (H.264, AAC, etc.) and is
312
+ * required for distributing on certain platforms (e.g., Linux distributions that prohibit
313
+ * proprietary codecs). Enabling this swaps the bundled `ffmpeg` dynamic library before the app
314
+ * is signed.
315
+ */
316
+ readonly downloadAlternateFFmpeg?: boolean;
317
+ /**
318
+ * Additional properties to deep-merge into the app's `package.json` at build time.
319
+ *
320
+ * Useful for injecting build-time metadata (e.g., a git commit hash or CI build URL) that
321
+ * should be readable at runtime via `require('./package.json')` or `import.meta.url`.
322
+ *
323
+ * @example
324
+ * ```json
325
+ * { "extraMetadata": { "commitHash": "abc1234", "buildDate": "2025-01-01" } }
326
+ * ```
327
+ */
328
+ readonly extraMetadata?: any;
329
+ /**
330
+ * Whether to throw an error and abort the build if the app could not be code-signed.
331
+ *
332
+ * Set to `true` in release pipelines to catch missing or misconfigured signing credentials
333
+ * before producing unsigned artifacts. When `false` (the default), missing signing credentials
334
+ * produce a warning and the build continues unsigned.
335
+ *
336
+ * @default false
337
+ */
338
+ readonly forceCodeSigning?: boolean;
339
+ /**
340
+ * Whether to include `.pdb` (Program Database) symbol files in the output.
341
+ *
342
+ * PDB files enable Windows crash-dump analysis but significantly increase artifact size. Enable
343
+ * for internal builds where you want symbol information; disable for public distribution.
344
+ *
345
+ * @default false
346
+ */
347
+ readonly includePdb?: boolean;
348
+ /**
349
+ * Whether to remove the `scripts` field from bundled `package.json` files.
350
+ *
351
+ * Lifecycle scripts (`preinstall`, `postinstall`, etc.) have no meaning inside a packaged
352
+ * Electron app and can trigger unintended behaviour if any tooling inspects the bundled
353
+ * `package.json`. Removing them reduces artifact size and prevents accidental execution.
354
+ *
355
+ * @default true
356
+ */
357
+ readonly removePackageScripts?: boolean;
358
+ /**
359
+ * Whether to remove the `keywords` field from bundled `package.json` files.
360
+ *
361
+ * The `keywords` array is only meaningful for package registry discoverability and has no
362
+ * runtime value inside a packaged Electron app. Removing it marginally reduces artifact size.
363
+ *
364
+ * @default true
365
+ */
366
+ readonly removePackageKeywords?: boolean;
367
+ /**
368
+ * Options forwarded to [`@electron/fuses`](https://github.com/electron/fuses) to flip Electron
369
+ * feature flags in the binary.
370
+ *
371
+ * Fuses are compile-time-like flags baked into the Electron binary that cannot be changed at
372
+ * runtime. Flipping them is the approved mechanism for hardening Electron apps (e.g., disabling
373
+ * `ELECTRON_RUN_AS_NODE`, enabling ASAR integrity, etc.).
374
+ *
375
+ * electron-builder flips fuses after packaging but before signing so that the final signature
376
+ * covers the modified binary.
377
+ *
378
+ * @see {@link FuseOptionsV1}
379
+ */
380
+ readonly electronFuses?: FuseOptionsV1 | null;
381
+ /**
382
+ * Configuration for experimental concurrent (multi-platform / multi-arch) builds.
383
+ *
384
+ * When `jobs > 1`, electron-builder runs up to `jobs` platform builds in parallel. This is an
385
+ * experimental feature — use with caution and verify that your hook functions and build resources
386
+ * are safe to execute concurrently.
387
+ *
388
+ * @see {@link Concurrency}
389
+ */
390
+ readonly concurrency?: Concurrency | null;
391
+ }
392
+ /**
393
+ * The root build configuration object passed to electron-builder.
394
+ *
395
+ * Extends {@link CommonConfiguration} with top-level Electron-specific options, configuration
396
+ * inheritance/presets, and all per-platform build hooks.
397
+ */
398
+ export interface Configuration extends CommonConfiguration, PlatformSpecificBuildOptions, Hooks {
399
+ /**
400
+ * Options forwarded to [`@electron/get`](https://github.com/electron/get) when downloading the
401
+ * Electron distribution to package.
402
+ *
403
+ * Also accepts the legacy `electron-download` shape for backward compatibility.
404
+ */
405
+ readonly electronDownload?: ElectronDownloadOptions | ElectronGetOptions | null;
406
+ /**
407
+ * Electron branding overrides.
408
+ *
409
+ * Required only when packaging a custom Electron fork that ships a modified `BRANDING.json`
410
+ * (e.g., a fork that renames the `Electron Helper` process or the `Electron Framework`).
411
+ * Standard Electron builds do not need this.
412
+ */
413
+ readonly electronBranding?: ElectronBrandingOptions;
414
+ /**
415
+ * The Electron version to package against.
416
+ *
417
+ * Defaults to the version of the `electron` (or `electron-prebuilt`) dependency declared in
418
+ * `package.json`. Set this explicitly only when the installed Electron version is not the one
419
+ * you want to package against (e.g., in monorepos where the Electron dependency lives in a
420
+ * different workspace).
421
+ */
422
+ electronVersion?: string | null;
423
+ /**
424
+ * One or more configuration presets or file paths to merge into this configuration.
425
+ *
426
+ * Accepts a string or array of strings, each of which is either:
427
+ * - A built-in preset name (`"react-cra"` is the only currently supported value).
428
+ * - A path to a JS/JSON config file relative to the project directory.
429
+ *
430
+ * Configs are merged left-to-right using a deep-assign strategy that properly combines `files`
431
+ * glob patterns rather than replacing them.
432
+ *
433
+ * The `react-cra` preset is applied automatically when `react-scripts` is found in
434
+ * `dependencies`. Set `extends: null` to opt out of automatic preset detection.
435
+ */
436
+ extends?: Array<string> | string | null;
437
+ }
438
+ /**
439
+ * Configuration for native Node.js module installation and rebuilding.
440
+ *
441
+ * All options that control how electron-builder handles native modules — from forcing source
442
+ * builds at install time through to the `@electron/rebuild` compilation mode.
443
+ */
444
+ export interface NativeModulesConfig {
445
+ /**
446
+ * Whether to pass `--build-from-source` to the package manager when installing native
447
+ * dependencies, forcing them to compile from source rather than using pre-built binaries.
448
+ *
449
+ * Useful when pre-built binaries are not available for the target platform/arch combination,
450
+ * or when you need to ensure native modules are compiled against the exact Electron ABI.
451
+ *
452
+ * @default false
453
+ */
454
+ buildDependenciesFromSource?: boolean;
455
+ /**
456
+ * Whether to run `node-gyp rebuild` with Electron headers before packaging.
457
+ *
458
+ * This is a low-level escape hatch for cases where the standard `@electron/rebuild` path
459
+ * (controlled by {@link npmRebuild}) is insufficient. Most projects should leave this `false`
460
+ * and rely on `@electron/rebuild` instead.
461
+ *
462
+ * When `true`, electron-builder runs `node-gyp rebuild` with the correct `npm_config_*`
463
+ * environment variables set for the target Electron version and architecture before the
464
+ * normal rebuild step.
465
+ *
466
+ * @default false
467
+ */
468
+ readonly nodeGypRebuild?: boolean;
469
+ /**
470
+ * Whether to rebuild native Node.js modules for the target Electron version and architecture
471
+ * before packaging.
472
+ *
473
+ * When `true` (the default), electron-builder runs `@electron/rebuild` against the app's
474
+ * `node_modules` directory to ensure all native modules are compiled against the correct Electron
475
+ * ABI. Set to `false` to skip this step entirely — useful when native modules are pre-built
476
+ * elsewhere in your pipeline or when the app has no native dependencies.
477
+ *
478
+ * The compilation mode (`sequential` vs `parallel`) is controlled by {@link rebuildMode}.
479
+ *
480
+ * @default true
481
+ */
482
+ readonly npmRebuild?: boolean;
483
+ /**
484
+ * Compilation mode for `@electron/rebuild`.
485
+ *
486
+ * - `"sequential"` — rebuilds native modules one at a time. Safer in memory-constrained
487
+ * environments and produces cleaner log output.
488
+ * - `"parallel"` — rebuilds all native modules concurrently. Faster on machines with many cores
489
+ * and plentiful memory, but may exhaust resources on CI agents with limited RAM.
490
+ *
491
+ * @default "sequential"
492
+ */
493
+ readonly rebuildMode?: "sequential" | "parallel" | null;
494
+ }
495
+ export type Hook<T, V> = (contextOrPath: T) => Promise<V> | V;
496
+ export interface PackContext {
497
+ readonly outDir: string;
498
+ readonly appOutDir: string;
499
+ readonly packager: PlatformPackager<any>;
500
+ readonly electronPlatformName: string;
501
+ readonly arch: Arch;
502
+ readonly targets: Array<Target>;
503
+ }
504
+ export type AfterPackContext = PackContext;
505
+ export type BeforePackContext = PackContext;
506
+ export type AfterExtractContext = PackContext;
507
+ /**
508
+ * Version pins and custom bundle overrides for the binary toolsets that electron-builder
509
+ * downloads and caches locally.
510
+ *
511
+ * Each toolset is a versioned archive hosted at
512
+ * [electron-userland/electron-builder-binaries](https://github.com/electron-userland/electron-builder-binaries/releases).
513
+ * Omitting a property (or setting it to `null`) selects the modern default for that toolset.
514
+ * Setting a property to `"0.0.0"` forces the legacy bundle — useful only for diagnosing
515
+ * regressions introduced by newer toolset bundles.
516
+ *
517
+ * To supply your own bundle, set the property to a {@link ToolsetCustom} object with a `url`
518
+ * (https:// or file://) and a `checksum` for verification. The bundle must mirror the expected
519
+ * directory layout of the corresponding built-in bundle; see the build scripts at
520
+ * https://github.com/electron-userland/electron-builder-binaries/tree/master/packages.
521
+ */
522
+ export interface ToolsetConfig {
523
+ /**
524
+ * Version of the `win-codesign` bundle used for Windows code signing and resource editing.
525
+ *
526
+ * The bundle ships:
527
+ * - **`signtool.exe`** (Windows) / **`osslsigncode`** (macOS & Linux) — used to sign `.exe`,
528
+ * `.dll`, and `.msix` artifacts.
529
+ * - **`rcedit`** — used to embed version metadata and icons into `.exe` files.
530
+ * - **Windows Kits** (`10.0.26100.0`) — used by AppX/MSIX packaging (`makeappx`, `signtool`).
531
+ *
532
+ * Available versions:
533
+ * | Version | Contents |
534
+ * |---------|----------|
535
+ * | `"0.0.0"` | Legacy bundle — `winCodeSign-2.6.0` (pre-v27 default) |
536
+ * | `"1.0.0"` | Modern bundle — Windows Kits 10.0.26100.0, `win-codesign` v1.0.0 |
537
+ * | `"1.1.0"` | Modern bundle — Windows Kits 10.0.26100.0, `win-codesign` v1.1.0 (default) |
538
+ *
539
+ * Releases: https://github.com/electron-userland/electron-builder-binaries/releases?q=win-codesign
540
+ *
541
+ * @default "1.1.0"
542
+ */
543
+ readonly winCodeSign?: "0.0.0" | "1.0.0" | "1.1.0" | ToolsetCustom | null;
544
+ /**
545
+ * Version of the AppImage toolset bundle used for building `.AppImage` files.
546
+ *
547
+ * The bundle ships:
548
+ * - **`mksquashfs`** — creates the SquashFS filesystem embedded in the AppImage.
549
+ * - **`desktop-file-validate`** — validates the generated `.desktop` entry.
550
+ * - **AppImage runtime** — the self-executing stub that mounts the SquashFS at launch.
551
+ *
552
+ * Available versions:
553
+ * | Version | Runtime date | Notes |
554
+ * |---------|-------------|-------|
555
+ * | `"0.0.0"` | Legacy | FUSE2-based AppImage runtime (pre-v27 default) |
556
+ * | `"1.0.2"` | 20251108 | Static-runtime (FUSE3-compatible) |
557
+ * | `"1.0.3"` | 20251108 | Static-runtime (FUSE3-compatible); recommended (default) |
558
+ *
559
+ * Releases: https://github.com/electron-userland/electron-builder-binaries/releases?q=appimage
560
+ *
561
+ * @default "1.0.3"
562
+ */
563
+ readonly appimage?: "0.0.0" | "1.0.2" | "1.0.3" | ToolsetCustom | null;
564
+ /**
565
+ * Version of the NSIS toolset bundle used to compile Windows installers.
566
+ *
567
+ * The bundle ships:
568
+ * - **`makensis`** — the NSIS compiler invoked to build `.nsi` scripts into `.exe` installers.
569
+ * - **NSIS plugins** — the plugin DLLs (`NsisMultiUser`, `UAC`, `StdUtils`, etc.) referenced by
570
+ * electron-builder's default installer scripts.
571
+ * - **`elevate.exe`** — UAC elevation helper included in NSIS installers.
572
+ *
573
+ * Available versions:
574
+ * | Version | `makensis` version | Notes |
575
+ * |---------|------------------|-------|
576
+ * | `"0.0.0"` | 3.0.4.1 | Legacy split bundle — `nsis` + `nsis-resources` archives (pre-v27 default) |
577
+ * | `"1.2.1"` | 3.12 | Unified bundle — single archive, entrypoint scripts auto-set `NSISDIR` (default) |
578
+ *
579
+ * Releases: https://github.com/electron-userland/electron-builder-binaries/releases?q=nsis
580
+ *
581
+ * @default "1.2.1"
582
+ */
583
+ readonly nsis?: "0.0.0" | "1.2.1" | ToolsetCustom | null;
584
+ /**
585
+ * Version of the Wine bundle used to run Windows tools (NSIS, rcedit, signtool) on
586
+ * non-Windows hosts (macOS and Linux).
587
+ *
588
+ * Wine is only required when building Windows targets on a non-Windows machine. On Windows,
589
+ * this setting has no effect.
590
+ *
591
+ * Available versions:
592
+ * | Version | Wine version | Platform support | Notes |
593
+ * |---------|-------------|-----------------|-------|
594
+ * | `"0.0.0"` | 4.0.1 | macOS only | Legacy portable bundle (pre-v27 default) |
595
+ *
596
+ * On Linux, the system `wine` binary is used instead of a bundled one.
597
+ * Set `USE_SYSTEM_WINE=true` to force system Wine regardless of this setting.
598
+ *
599
+ * Releases: https://github.com/electron-userland/electron-builder-binaries/releases?q=wine
600
+ *
601
+ * @default "0.0.0"
602
+ */
603
+ readonly wine?: "0.0.0" | ToolsetCustom | null;
604
+ /**
605
+ * Version of the FPM bundle used to build Linux packages (`.deb`, `.rpm`, `.pacman`, etc.)
606
+ * on macOS and Linux hosts.
607
+ *
608
+ * Available versions:
609
+ * | Version | FPM version | Notes |
610
+ * |---------|------------|-------|
611
+ * | `"2.2.1"` | 1.17.0 (Ruby 3.4.3) | Current default |
612
+ *
613
+ * Releases: https://github.com/electron-userland/electron-builder-binaries/releases?q=fpm
614
+ *
615
+ * @default "2.2.1"
616
+ */
617
+ readonly fpm?: "2.2.1" | ToolsetCustom | null;
618
+ /**
619
+ * Version of the Linux-tools-mac bundle used to produce `.tar.lz` archives and build
620
+ * Linux targets on macOS hosts.
621
+ *
622
+ * The bundle ships macOS-native builds of `ar`, `lzip`, and `gtar` (GNU tar).
623
+ *
624
+ * Available versions:
625
+ * | Version | Notes |
626
+ * |---------|-------|
627
+ * | `"1.0.0"` | Current default |
628
+ *
629
+ * Releases: https://github.com/electron-userland/electron-builder-binaries/releases?q=linux-tools-mac
630
+ *
631
+ * @default "1.0.0"
632
+ */
633
+ readonly linuxToolsMac?: "1.0.0" | ToolsetCustom | null;
634
+ /**
635
+ * Version of the 7-Zip binary bundle used internally to extract `.7z` and `.tar.xz` archives.
636
+ *
637
+ * Set to a {@link ToolsetCustom} object to supply your own 7za binary.
638
+ * The `url` must point to a directory (or a `.tar.gz`/`.zip` archive of one) that contains
639
+ * `bin/7za` (macOS/Linux) or `bin/7za.exe` (Windows).
640
+ *
641
+ * **Bootstrap constraint:** the custom bundle itself must be a `.tar.gz` or `.zip` archive
642
+ * (or a bare `file://` directory). `.7z` and `.tar.xz` archives cannot be used here because
643
+ * extracting them requires 7za — a circular dependency.
644
+ *
645
+ * @default "1.0.0"
646
+ */
647
+ readonly sevenZip?: "1.0.0" | ToolsetCustom | null;
648
+ /**
649
+ * Version of the icons-conversion bundle used to convert source images to `.icns`, `.ico`,
650
+ * and PNG icon sets.
651
+ *
652
+ * Set to a {@link ToolsetCustom} object to supply your own icons bundle directory.
653
+ *
654
+ * Available versions:
655
+ * | Version | Notes |
656
+ * |---------|-------|
657
+ * | `"1.1.0"` | Current default |
658
+ *
659
+ * Releases: https://github.com/electron-userland/electron-builder-binaries/releases?q=icons
660
+ *
661
+ * @default "1.1.0"
662
+ */
663
+ readonly icons?: "1.1.0" | ToolsetCustom | null;
664
+ }
665
+ /**
666
+ * A custom toolset bundle supplied by the user in place of a built-in versioned bundle.
667
+ *
668
+ * The bundle must mirror the expected directory layout of the corresponding built-in bundle.
669
+ * See the build scripts at
670
+ * https://github.com/electron-userland/electron-builder-binaries/tree/master/packages.
671
+ *
672
+ * File formats supported for `url` archives: `.zip`, `.7z`, `.tar.gz`, `.tar.xz`.
673
+ *
674
+ * @example
675
+ * ```json
676
+ * {
677
+ * "toolsets": {
678
+ * "nsis": {
679
+ * "url": "file:///path/to/my-nsis-bundle.tar.gz",
680
+ * "checksum": "abc123...",
681
+ * "version": "my-custom-1.0"
682
+ * }
683
+ * }
684
+ * }
685
+ * ```
686
+ */
687
+ export interface ToolsetCustom {
688
+ /**
689
+ * The `https://` URL or `file://` path to load the custom toolset bundle from.
690
+ *
691
+ * - `https://` — downloaded and cached locally; the archive is extracted before use.
692
+ * - `file:///absolute/path` — used directly; relative paths must be within the project resources dir.
693
+ *
694
+ * Archives (`.zip`, `.7z`, `.tar.gz`, `.tar.xz`) are extracted automatically.
695
+ * A bare directory path (no archive) is used as-is.
696
+ */
697
+ readonly url: string;
698
+ /**
699
+ * SHA checksum of the custom toolset bundle for verification.
700
+ * Required for remote (`https://`) URLs and local archive files (`file://`).
701
+ * Not needed for bare directory paths — the directory is used as-is with no caching.
702
+ */
703
+ readonly checksum?: string;
704
+ /**
705
+ * Optional version label used in the local cache directory name.
706
+ * Falls back to the first 8 characters of `checksum` when omitted.
707
+ */
708
+ readonly version?: string;
709
+ }
710
+ /**
711
+ * Lifecycle hooks that run at specific points during the electron-builder pipeline.
712
+ *
713
+ * Each hook can be specified as:
714
+ * - An **inline function** (JavaScript/TypeScript config files only):
715
+ * ```js
716
+ * // electron-builder.config.js
717
+ * module.exports = { beforePack: async (context) => { /* ... *\/ } }
718
+ * ```
719
+ * - A **path** to a CommonJS/ESM module (relative to the project directory) that exports the
720
+ * hook as its **default export**:
721
+ * ```json
722
+ * { "build": { "beforePack": "./scripts/myHook.js" } }
723
+ * ```
724
+ * ```js
725
+ * // scripts/myHook.js
726
+ * export default async function (context) { /* ... *\/ }
727
+ * ```
728
+ */
729
+ export interface Hooks {
730
+ /**
731
+ * Called immediately before electron-builder begins packing the app for each platform/arch
732
+ * combination.
733
+ *
734
+ * Use this hook to perform last-minute modifications to source files or build resources before
735
+ * they are read by the packager.
736
+ *
737
+ * Receives a {@link BeforePackContext}.
738
+ */
739
+ readonly beforePack?: Hook<BeforePackContext, void> | string | null;
740
+ /**
741
+ * Called after the prebuilt Electron binary has been extracted to the staging directory but
742
+ * before the app files have been copied into it.
743
+ *
744
+ * Use this hook to patch or augment the Electron binary itself (e.g. rename helper processes,
745
+ * inject native libraries) before the app payload is laid down on top.
746
+ *
747
+ * Receives an {@link AfterExtractContext}.
748
+ */
749
+ readonly afterExtract?: Hook<AfterExtractContext, void> | string | null;
750
+ /**
751
+ * Called after the app files have been copied into the staging directory (and ASAR created if
752
+ * applicable) but **before** signing and before the output archive/installer is built.
753
+ *
754
+ * Use this hook to post-process the staged app bundle (e.g. strip debug symbols, inject
755
+ * platform-specific resources).
756
+ *
757
+ * Receives an {@link AfterPackContext}.
758
+ */
759
+ readonly afterPack?: Hook<AfterPackContext, void> | string | null;
760
+ /**
761
+ * Called after code signing but **before** the signed app is packed into the final
762
+ * distributable format (e.g. before `dmg` is created from the signed `.app`).
763
+ *
764
+ * Use this hook to perform post-sign validation or to add signed resources that are not part of
765
+ * the main app bundle.
766
+ *
767
+ * Receives an {@link AfterPackContext}.
768
+ */
769
+ readonly afterSign?: Hook<AfterPackContext, void> | string | null;
770
+ /**
771
+ * Called when an individual artifact build starts (e.g. just before a `.dmg` or `.exe` is
772
+ * written to disk).
773
+ *
774
+ * Receives an {@link ArtifactBuildStarted}.
775
+ */
776
+ readonly artifactBuildStarted?: Hook<ArtifactBuildStarted, void> | string | null;
777
+ /**
778
+ * Called when an individual artifact has been successfully built and written to disk.
779
+ *
780
+ * Use this hook to collect artifact paths, upload to custom destinations, or trigger
781
+ * post-processing steps.
782
+ *
783
+ * Receives an {@link ArtifactCreated}.
784
+ */
785
+ readonly artifactBuildCompleted?: Hook<ArtifactCreated, void> | string | null;
786
+ /**
787
+ * Called after **all** artifacts across all platforms/architectures have been built.
788
+ *
789
+ * May return an array of additional file paths that should be treated as publish targets
790
+ * (i.e. uploaded to the configured publisher).
791
+ *
792
+ * Receives a {@link BuildResult}.
793
+ *
794
+ * @example
795
+ * ```js
796
+ * export default async function afterAllArtifactBuild(result) {
797
+ * return ["/path/to/extra-file.txt"]
798
+ * }
799
+ * ```
800
+ */
801
+ readonly afterAllArtifactBuild?: Hook<BuildResult, Array<string>> | string | null;
802
+ /**
803
+ * Called after the WiX MSI project XML has been written to a temporary directory but before
804
+ * `candle.exe` / `light.exe` compile it into a `.msi` package.
805
+ *
806
+ * The hook receives the path to the project directory as a string. Use it to patch the generated
807
+ * `.wxs` files for customizations not exposed through electron-builder's options.
808
+ */
809
+ readonly msiProjectCreated?: Hook<string, void> | string | null;
810
+ /**
811
+ * Called after the AppX/MSIX manifest XML has been written to the staging directory but before
812
+ * `makeappx` packages it.
813
+ *
814
+ * The hook receives the path to the manifest file as a string. Use it to inject custom manifest
815
+ * extensions (capabilities, protocol handlers, etc.) not exposed through {@link AppXOptions}.
816
+ */
817
+ readonly appxManifestCreated?: Hook<string, void> | string | null;
818
+ /**
819
+ * Called for every file inside each `node_modules` package directory as electron-builder
820
+ * decides whether to include it in the packaged app.
821
+ *
822
+ * Return `true` to force-include the file regardless of the default exclusion rules.
823
+ * Return `false` or `undefined` to let electron-builder apply its normal filtering logic.
824
+ *
825
+ * Receives the absolute path of the file as a string.
826
+ */
827
+ readonly onNodeModuleFile?: Hook<string, void | boolean> | string | null;
828
+ /**
829
+ * Called before dependencies are installed or native modules are rebuilt.
830
+ *
831
+ * Return `false` (or a `Promise` that resolves to `false`) to skip the install/rebuild step
832
+ * entirely — useful when you manage `node_modules` externally (e.g. in a CI pipeline that
833
+ * restores them from cache). When not set, electron-builder proceeds with the normal
834
+ * install/rebuild flow.
835
+ *
836
+ * If this hook is provided and `node_modules` is missing, electron-builder will not perform
837
+ * the production-dependencies check.
838
+ *
839
+ * Receives a {@link BeforeBuildContext}.
840
+ */
841
+ readonly beforeBuild?: Hook<BeforeBuildContext, boolean | void> | string | null;
842
+ /**
843
+ * Override the source of the Electron distribution to stage.
844
+ *
845
+ * Should return the path to either:
846
+ * - A **directory** containing a pre-built, unpacked Electron app (e.g. `~/electron/out/R`).
847
+ * - A **directory** containing Electron zip archives following the naming convention
848
+ * `electron-v${version}-${platformName}-${arch}.zip`.
849
+ *
850
+ * When not set, electron-builder downloads the official Electron release from GitHub (or the
851
+ * mirror configured via `electronDownload`).
852
+ *
853
+ * Receives a {@link PrepareApplicationStageDirectoryOptions}.
854
+ */
855
+ readonly electronDist?: Hook<PrepareApplicationStageDirectoryOptions, string> | string | null;
856
+ }
857
+ /**
858
+ * Overrides for the input and output directories used during the build.
859
+ */
860
+ export interface MetadataDirectories {
861
+ /**
862
+ * The directory that contains static build resources (icons, background images, license files,
863
+ * custom NSIS scripts, etc.) that electron-builder reads during packaging.
864
+ *
865
+ * **Build resources are not copied into the packaged app.** If you need runtime access to a
866
+ * file (e.g. a tray icon), include it explicitly via the `files` option:
867
+ * ```json
868
+ * { "files": ["**\/*", "build/icon.*"] }
869
+ * ```
870
+ *
871
+ * @default "build"
872
+ */
873
+ readonly buildResources?: string | null;
874
+ /**
875
+ * The directory where electron-builder writes its output (installers, zip archives, etc.).
876
+ *
877
+ * [File macros](https://www.electron.build/file-patterns#file-macros) are supported, e.g.
878
+ * `"dist/${os}-${arch}"` to separate outputs by platform and architecture.
879
+ *
880
+ * @default "dist"
881
+ */
882
+ readonly output?: string | null;
883
+ /**
884
+ * The directory that contains the application's `package.json` and source code.
885
+ *
886
+ * Defaults to `app`, then `www`, then the project root. Set this when your packagable app
887
+ * lives in a subdirectory (common in monorepos or when using a separate frontend build step).
888
+ */
889
+ readonly app?: string | null;
890
+ }
891
+ /**
892
+ * Feature flags ("fuses") baked into the Electron binary at build time.
893
+ *
894
+ * All options map 1:1 to the flags documented by
895
+ * [`@electron/fuses`](https://github.com/electron/fuses) and the upstream
896
+ * [Electron fuses guide](https://www.electronjs.org/docs/latest/tutorial/fuses).
897
+ *
898
+ * electron-builder flips fuses after packaging and **before** signing so that the final
899
+ * code signature covers the modified binary. On Apple Silicon, the ad-hoc signature is
900
+ * re-applied automatically after flipping fuses.
901
+ */
902
+ export interface FuseOptionsV1 {
903
+ /**
904
+ * Controls whether the `ELECTRON_RUN_AS_NODE` environment variable is respected.
905
+ *
906
+ * When `true` (the Electron default), setting `ELECTRON_RUN_AS_NODE=1` in the environment
907
+ * makes Electron behave like a plain Node.js process, bypassing the app entirely. Disable
908
+ * this fuse in production apps to prevent that escape path.
909
+ *
910
+ * **Note:** Disabling this fuse also breaks `process.fork()` in the main process because
911
+ * it relies on `ELECTRON_RUN_AS_NODE` internally. Use
912
+ * [Utility Processes](https://www.electronjs.org/docs/latest/api/utility-process) as a
913
+ * replacement.
914
+ */
915
+ runAsNode?: boolean;
916
+ /**
917
+ * Controls whether the Chromium cookie store is encrypted using OS-level cryptography keys.
918
+ *
919
+ * When enabled, cookies are stored encrypted on disk (the same mechanism Chrome uses).
920
+ * **This is a one-way transition**: existing unencrypted cookies are re-encrypted on write, but
921
+ * disabling the fuse afterwards will leave the cookie database unreadable.
922
+ *
923
+ * Most production apps can safely enable this fuse.
924
+ */
925
+ enableCookieEncryption?: boolean;
926
+ /**
927
+ * Controls whether the [`NODE_OPTIONS`](https://nodejs.org/api/cli.html#node_optionsoptions)
928
+ * and `NODE_EXTRA_CA_CERTS` environment variables are respected.
929
+ *
930
+ * `NODE_OPTIONS` allows injecting arbitrary Node.js runtime flags (e.g. `--require`) and is
931
+ * rarely needed in production. Most apps can safely disable this fuse.
932
+ */
933
+ enableNodeOptionsEnvironmentVariable?: boolean;
934
+ /**
935
+ * Controls whether the `--inspect`, `--inspect-brk`, and related Node.js debugger flags are
936
+ * honoured.
937
+ *
938
+ * When disabled, `SIGUSR1` no longer opens the V8 inspector in the main process either.
939
+ * Most production apps can safely disable this fuse.
940
+ */
941
+ enableNodeCliInspectArguments?: boolean;
942
+ /**
943
+ * Enables ASAR integrity validation — Electron verifies the embedded SHA-256 hash of
944
+ * `app.asar` before loading it.
945
+ *
946
+ * Platform support:
947
+ * - macOS: Electron ≥ 16.0.0
948
+ * - Windows: Electron ≥ 30.0.0
949
+ *
950
+ * For this fuse to be meaningful, `asar.disableIntegrity` must **not** be
951
+ * `true` (otherwise the hash is not embedded).
952
+ *
953
+ * See the [ASAR Integrity guide](https://www.electronjs.org/docs/latest/tutorial/asar-integrity).
954
+ */
955
+ enableEmbeddedAsarIntegrityValidation?: boolean;
956
+ /**
957
+ * When enabled, Electron searches for the app exclusively in `app.asar`, skipping the `app`
958
+ * directory and `default_app.asar` fallbacks.
959
+ *
960
+ * Combined with `enableEmbeddedAsarIntegrityValidation`, this makes it impossible to side-load
961
+ * unverified code by replacing `app.asar` with an unarchived `app/` directory.
962
+ */
963
+ onlyLoadAppFromAsar?: boolean;
964
+ /**
965
+ * When enabled, the browser (main) process uses a separate V8 snapshot file
966
+ * (`browser_v8_context_snapshot.bin`) instead of the shared one.
967
+ *
968
+ * This is only useful when you ship a custom V8 snapshot for the main process that differs
969
+ * from the renderer snapshot. Standard apps do not need this.
970
+ */
971
+ loadBrowserProcessSpecificV8Snapshot?: boolean;
972
+ /**
973
+ * Controls whether pages loaded from the `file://` protocol receive elevated privileges
974
+ * beyond what a standard web browser would grant.
975
+ *
976
+ * These extra privileges include `fetch` to other `file://` URLs, service workers, and
977
+ * universal frame access for child frames also on `file://`. This behaviour pre-dates modern
978
+ * Electron security best practices.
979
+ *
980
+ * Disable this fuse if your app does not load content directly from `file://` (i.e. you use
981
+ * a [custom protocol](https://www.electronjs.org/docs/latest/tutorial/security#18-avoid-usage-of-the-file-protocol-and-prefer-usage-of-custom-protocols)).
982
+ */
983
+ grantFileProtocolExtraPrivileges?: boolean;
984
+ /**
985
+ * Re-applies the ad-hoc codesignature on macOS after fuses are flipped.
986
+ *
987
+ * electron-builder already re-signs the app after flipping fuses, so this flag is
988
+ * generally not needed and exists only as a compatibility shim for edge cases.
989
+ *
990
+ * See [`@electron/fuses` — Apple Silicon](https://github.com/electron/fuses?tab=readme-ov-file#apple-silicon).
991
+ */
992
+ resetAdHocDarwinSignature?: boolean;
993
+ }
994
+ /**
995
+ * Configuration for experimental concurrent builds.
996
+ */
997
+ export interface Concurrency {
998
+ /**
999
+ * Maximum number of platform/architecture builds to run in parallel.
1000
+ *
1001
+ * Set to `1` to disable concurrency (sequential builds, the safe default). Higher values
1002
+ * reduce wall-clock time on multi-platform builds at the cost of increased memory and CPU
1003
+ * usage. Ensure that your {@link Hooks} and build resources are safe to execute concurrently
1004
+ * before raising this limit.
1005
+ *
1006
+ * @default 1
1007
+ */
1008
+ jobs: number;
1009
+ }
1010
+ //# sourceMappingURL=configuration.d.ts.map