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.
- package/dist/Framework.d.ts +40 -0
- package/dist/Framework.d.ts.map +1 -0
- package/dist/Framework.js +4 -0
- package/dist/Framework.js.map +1 -0
- package/dist/appInfo.d.ts +32 -0
- package/dist/appInfo.d.ts.map +1 -0
- package/dist/appInfo.js +145 -0
- package/dist/appInfo.js.map +1 -0
- package/dist/asar/asar.d.ts +39 -0
- package/dist/asar/asar.d.ts.map +1 -0
- package/dist/asar/asar.js +155 -0
- package/dist/asar/asar.js.map +1 -0
- package/dist/asar/asarFileChecker.d.ts +3 -0
- package/dist/asar/asarFileChecker.d.ts.map +1 -0
- package/dist/asar/asarFileChecker.js +22 -0
- package/dist/asar/asarFileChecker.js.map +1 -0
- package/dist/asar/asarUtil.d.ts +2 -0
- package/dist/asar/asarUtil.d.ts.map +1 -0
- package/dist/asar/asarUtil.js +278 -0
- package/dist/asar/asarUtil.js.map +1 -0
- package/dist/asar/integrity.d.ts +16 -0
- package/dist/asar/integrity.d.ts.map +1 -0
- package/dist/asar/integrity.js +59 -0
- package/dist/asar/integrity.js.map +1 -0
- package/dist/asar/unpackDetector.d.ts +2 -0
- package/dist/asar/unpackDetector.d.ts.map +1 -0
- package/dist/asar/unpackDetector.js +39 -0
- package/dist/asar/unpackDetector.js.map +1 -0
- package/dist/codeSign/certInfo.d.ts +55 -0
- package/dist/codeSign/certInfo.d.ts.map +1 -0
- package/dist/codeSign/certInfo.js +459 -0
- package/dist/codeSign/certInfo.js.map +1 -0
- package/dist/codeSign/codesign.d.ts +4 -0
- package/dist/codeSign/codesign.d.ts.map +1 -0
- package/dist/codeSign/codesign.js +32 -0
- package/dist/codeSign/codesign.js.map +1 -0
- package/dist/codeSign/mac/macCodeSign.d.ts +29 -0
- package/dist/codeSign/mac/macCodeSign.d.ts.map +1 -0
- package/dist/codeSign/mac/macCodeSign.js +273 -0
- package/dist/codeSign/mac/macCodeSign.js.map +1 -0
- package/dist/codeSign/signManager.d.ts +14 -0
- package/dist/codeSign/signManager.d.ts.map +1 -0
- package/dist/codeSign/signManager.js +2 -0
- package/dist/codeSign/signManager.js.map +1 -0
- package/dist/codeSign/win/windowsCodeSign.d.ts +8 -0
- package/dist/codeSign/win/windowsCodeSign.d.ts.map +1 -0
- package/dist/codeSign/win/windowsCodeSign.js +34 -0
- package/dist/codeSign/win/windowsCodeSign.js.map +1 -0
- package/dist/codeSign/win/windowsSignAzureManager.d.ts +18 -0
- package/dist/codeSign/win/windowsSignAzureManager.d.ts.map +1 -0
- package/dist/codeSign/win/windowsSignAzureManager.js +68 -0
- package/dist/codeSign/win/windowsSignAzureManager.js.map +1 -0
- package/dist/codeSign/win/windowsSignToolManager.d.ts +59 -0
- package/dist/codeSign/win/windowsSignToolManager.d.ts.map +1 -0
- package/dist/codeSign/win/windowsSignToolManager.js +364 -0
- package/dist/codeSign/win/windowsSignToolManager.js.map +1 -0
- package/dist/configuration.d.ts +1010 -0
- package/dist/configuration.d.ts.map +1 -0
- package/dist/configuration.js +2 -0
- package/dist/configuration.js.map +1 -0
- package/dist/core.d.ts +61 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +61 -0
- package/dist/core.js.map +1 -0
- package/dist/electron/ElectronFramework.d.ts +17 -0
- package/dist/electron/ElectronFramework.d.ts.map +1 -0
- package/dist/electron/ElectronFramework.js +236 -0
- package/dist/electron/ElectronFramework.js.map +1 -0
- package/dist/electron/electronVersion.d.ts +7 -0
- package/dist/electron/electronVersion.d.ts.map +1 -0
- package/dist/electron/electronVersion.js +119 -0
- package/dist/electron/electronVersion.js.map +1 -0
- package/dist/electron/injectFFMPEG.d.ts +12 -0
- package/dist/electron/injectFFMPEG.d.ts.map +1 -0
- package/dist/electron/injectFFMPEG.js +53 -0
- package/dist/electron/injectFFMPEG.js.map +1 -0
- package/dist/electron/mac/electronMac.d.ts +2 -0
- package/dist/electron/mac/electronMac.d.ts.map +1 -0
- package/dist/electron/mac/electronMac.js +254 -0
- package/dist/electron/mac/electronMac.js.map +1 -0
- package/dist/electron/search-module.d.ts +24 -0
- package/dist/electron/search-module.d.ts.map +1 -0
- package/dist/electron/search-module.js +68 -0
- package/dist/electron/search-module.js.map +1 -0
- package/dist/electron/win/electronWin.d.ts +2 -0
- package/dist/electron/win/electronWin.d.ts.map +1 -0
- package/dist/electron/win/electronWin.js +36 -0
- package/dist/electron/win/electronWin.js.map +1 -0
- package/dist/errorMessages.d.ts +2 -0
- package/dist/errorMessages.d.ts.map +1 -0
- package/dist/errorMessages.js +8 -0
- package/dist/errorMessages.js.map +1 -0
- package/dist/fileMatcher.d.ts +31 -0
- package/dist/fileMatcher.d.ts.map +1 -0
- package/dist/fileMatcher.js +277 -0
- package/dist/fileMatcher.js.map +1 -0
- package/dist/fileTransformer.d.ts +2 -0
- package/dist/fileTransformer.d.ts.map +1 -0
- package/dist/fileTransformer.js +82 -0
- package/dist/fileTransformer.js.map +1 -0
- package/dist/forge-maker.d.ts +6 -0
- package/dist/forge-maker.d.ts.map +1 -0
- package/dist/forge-maker.js +20 -0
- package/dist/forge-maker.js.map +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +77 -0
- package/dist/index.js.map +1 -0
- package/dist/indexInternal.d.ts +46 -0
- package/dist/indexInternal.d.ts.map +1 -0
- package/dist/indexInternal.js +39 -0
- package/dist/indexInternal.js.map +1 -0
- package/dist/linuxPackager.d.ts +13 -0
- package/dist/linuxPackager.d.ts.map +1 -0
- package/dist/linuxPackager.js +75 -0
- package/dist/linuxPackager.js.map +1 -0
- package/dist/macPackager.d.ts +50 -0
- package/dist/macPackager.d.ts.map +1 -0
- package/dist/macPackager.js +442 -0
- package/dist/macPackager.js.map +1 -0
- package/dist/node-module-collector/bunNodeModulesCollector.d.ts +11 -0
- package/dist/node-module-collector/bunNodeModulesCollector.d.ts.map +1 -0
- package/dist/node-module-collector/bunNodeModulesCollector.js +14 -0
- package/dist/node-module-collector/bunNodeModulesCollector.js.map +1 -0
- package/dist/node-module-collector/hoist.d.ts +124 -0
- package/dist/node-module-collector/hoist.d.ts.map +1 -0
- package/dist/node-module-collector/hoist.js +880 -0
- package/dist/node-module-collector/hoist.js.map +1 -0
- package/dist/node-module-collector/index.d.ts +21 -0
- package/dist/node-module-collector/index.d.ts.map +1 -0
- package/dist/node-module-collector/index.js +124 -0
- package/dist/node-module-collector/index.js.map +1 -0
- package/dist/node-module-collector/moduleManager.d.ts +94 -0
- package/dist/node-module-collector/moduleManager.d.ts.map +1 -0
- package/dist/node-module-collector/moduleManager.js +314 -0
- package/dist/node-module-collector/moduleManager.js.map +1 -0
- package/dist/node-module-collector/nodeModulesCollector.d.ts +138 -0
- package/dist/node-module-collector/nodeModulesCollector.d.ts.map +1 -0
- package/dist/node-module-collector/nodeModulesCollector.js +421 -0
- package/dist/node-module-collector/nodeModulesCollector.js.map +1 -0
- package/dist/node-module-collector/npmNodeModulesCollector.d.ts +15 -0
- package/dist/node-module-collector/npmNodeModulesCollector.d.ts.map +1 -0
- package/dist/node-module-collector/npmNodeModulesCollector.js +75 -0
- package/dist/node-module-collector/npmNodeModulesCollector.js.map +1 -0
- package/dist/node-module-collector/packageManager.d.ts +18 -0
- package/dist/node-module-collector/packageManager.d.ts.map +1 -0
- package/dist/node-module-collector/packageManager.js +137 -0
- package/dist/node-module-collector/packageManager.js.map +1 -0
- package/dist/node-module-collector/pnpmNodeModulesCollector.d.ts +45 -0
- package/dist/node-module-collector/pnpmNodeModulesCollector.d.ts.map +1 -0
- package/dist/node-module-collector/pnpmNodeModulesCollector.js +184 -0
- package/dist/node-module-collector/pnpmNodeModulesCollector.js.map +1 -0
- package/dist/node-module-collector/traversalNodeModulesCollector.d.ts +19 -0
- package/dist/node-module-collector/traversalNodeModulesCollector.d.ts.map +1 -0
- package/dist/node-module-collector/traversalNodeModulesCollector.js +118 -0
- package/dist/node-module-collector/traversalNodeModulesCollector.js.map +1 -0
- package/dist/node-module-collector/types.d.ts +53 -0
- package/dist/node-module-collector/types.d.ts.map +1 -0
- package/dist/node-module-collector/types.js +2 -0
- package/dist/node-module-collector/yarnBerryNodeModulesCollector.d.ts +16 -0
- package/dist/node-module-collector/yarnBerryNodeModulesCollector.d.ts.map +1 -0
- package/dist/node-module-collector/yarnBerryNodeModulesCollector.js +87 -0
- package/dist/node-module-collector/yarnBerryNodeModulesCollector.js.map +1 -0
- package/dist/node-module-collector/yarnNodeModulesCollector.d.ts +11 -0
- package/dist/node-module-collector/yarnNodeModulesCollector.d.ts.map +1 -0
- package/dist/node-module-collector/yarnNodeModulesCollector.js +18 -0
- package/dist/node-module-collector/yarnNodeModulesCollector.js.map +1 -0
- package/dist/options/AppXOptions.d.ts +106 -0
- package/dist/options/AppXOptions.d.ts.map +1 -0
- package/dist/options/AppXOptions.js +2 -0
- package/dist/options/AppXOptions.js.map +1 -0
- package/dist/options/CommonWindowsInstallerConfiguration.d.ts +48 -0
- package/dist/options/CommonWindowsInstallerConfiguration.d.ts.map +1 -0
- package/dist/options/CommonWindowsInstallerConfiguration.js +47 -0
- package/dist/options/CommonWindowsInstallerConfiguration.js.map +1 -0
- package/dist/options/FileAssociation.d.ts +46 -0
- package/dist/options/FileAssociation.d.ts.map +1 -0
- package/dist/options/FileAssociation.js +2 -0
- package/dist/options/MsiOptions.d.ts +27 -0
- package/dist/options/MsiOptions.d.ts.map +1 -0
- package/dist/options/MsiOptions.js +2 -0
- package/dist/options/MsiOptions.js.map +1 -0
- package/dist/options/MsiWrappedOptions.d.ts +27 -0
- package/dist/options/MsiWrappedOptions.d.ts.map +1 -0
- package/dist/options/MsiWrappedOptions.js +2 -0
- package/dist/options/MsiWrappedOptions.js.map +1 -0
- package/dist/options/PlatformSpecificBuildOptions.d.ts +261 -0
- package/dist/options/PlatformSpecificBuildOptions.d.ts.map +1 -0
- package/dist/options/PlatformSpecificBuildOptions.js +2 -0
- package/dist/options/PlatformSpecificBuildOptions.js.map +1 -0
- package/dist/options/SnapOptions.d.ts +480 -0
- package/dist/options/SnapOptions.d.ts.map +1 -0
- package/dist/options/SnapOptions.js +2 -0
- package/dist/options/SnapOptions.js.map +1 -0
- package/dist/options/SquirrelWindowsOptions.d.ts +47 -0
- package/dist/options/SquirrelWindowsOptions.d.ts.map +1 -0
- package/dist/options/SquirrelWindowsOptions.js +2 -0
- package/dist/options/SquirrelWindowsOptions.js.map +1 -0
- package/dist/options/linuxOptions.d.ts +289 -0
- package/dist/options/linuxOptions.d.ts.map +1 -0
- package/dist/options/linuxOptions.js +2 -0
- package/dist/options/linuxOptions.js.map +1 -0
- package/dist/options/macOptions.d.ts +390 -0
- package/dist/options/macOptions.d.ts.map +1 -0
- package/dist/options/macOptions.js +2 -0
- package/dist/options/macOptions.js.map +1 -0
- package/dist/options/metadata.d.ts +54 -0
- package/dist/options/metadata.d.ts.map +1 -0
- package/dist/options/metadata.js +2 -0
- package/dist/options/metadata.js.map +1 -0
- package/dist/options/pkgOptions.d.ts +137 -0
- package/dist/options/pkgOptions.d.ts.map +1 -0
- package/dist/options/pkgOptions.js +2 -0
- package/dist/options/pkgOptions.js.map +1 -0
- package/dist/options/winOptions.d.ts +166 -0
- package/dist/options/winOptions.d.ts.map +1 -0
- package/dist/options/winOptions.js +2 -0
- package/dist/options/winOptions.js.map +1 -0
- package/dist/packager.d.ts +100 -0
- package/dist/packager.d.ts.map +1 -0
- package/dist/packager.js +491 -0
- package/dist/packager.js.map +1 -0
- package/dist/packagerApi.d.ts +32 -0
- package/dist/packagerApi.d.ts.map +1 -0
- package/dist/packagerApi.js +2 -0
- package/dist/packagerApi.js.map +1 -0
- package/dist/platformPackager.d.ts +132 -0
- package/dist/platformPackager.d.ts.map +1 -0
- package/dist/platformPackager.js +761 -0
- package/dist/platformPackager.js.map +1 -0
- package/dist/presets/rectCra.d.ts +2 -0
- package/dist/presets/rectCra.d.ts.map +1 -0
- package/dist/presets/rectCra.js +19 -0
- package/dist/presets/rectCra.js.map +1 -0
- package/dist/publish/PublishManager.d.ts +33 -0
- package/dist/publish/PublishManager.d.ts.map +1 -0
- package/dist/publish/PublishManager.js +470 -0
- package/dist/publish/PublishManager.js.map +1 -0
- package/dist/publish/updateInfoBuilder.d.ts +15 -0
- package/dist/publish/updateInfoBuilder.d.ts.map +1 -0
- package/dist/publish/updateInfoBuilder.js +221 -0
- package/dist/publish/updateInfoBuilder.js.map +1 -0
- package/dist/targets/ArchiveTarget.d.ts +12 -0
- package/dist/targets/ArchiveTarget.d.ts.map +1 -0
- package/dist/targets/ArchiveTarget.js +93 -0
- package/dist/targets/ArchiveTarget.js.map +1 -0
- package/dist/targets/archive.d.ts +27 -0
- package/dist/targets/archive.d.ts.map +1 -0
- package/dist/targets/archive.js +174 -0
- package/dist/targets/archive.js.map +1 -0
- package/dist/targets/blockmap/blockmap.d.ts +17 -0
- package/dist/targets/blockmap/blockmap.d.ts.map +1 -0
- package/dist/targets/blockmap/blockmap.js +150 -0
- package/dist/targets/blockmap/blockmap.js.map +1 -0
- package/dist/targets/differentialUpdateInfoBuilder.d.ts +16 -0
- package/dist/targets/differentialUpdateInfoBuilder.d.ts.map +1 -0
- package/dist/targets/differentialUpdateInfoBuilder.js +73 -0
- package/dist/targets/differentialUpdateInfoBuilder.js.map +1 -0
- package/dist/targets/linux/FlatpakTarget.d.ts +21 -0
- package/dist/targets/linux/FlatpakTarget.d.ts.map +1 -0
- package/dist/targets/linux/FlatpakTarget.js +156 -0
- package/dist/targets/linux/FlatpakTarget.js.map +1 -0
- package/dist/targets/linux/FpmTarget.d.ts +23 -0
- package/dist/targets/linux/FpmTarget.d.ts.map +1 -0
- package/dist/targets/linux/FpmTarget.js +365 -0
- package/dist/targets/linux/FpmTarget.js.map +1 -0
- package/dist/targets/linux/LinuxTargetHelper.d.ts +24 -0
- package/dist/targets/linux/LinuxTargetHelper.d.ts.map +1 -0
- package/dist/targets/linux/LinuxTargetHelper.js +332 -0
- package/dist/targets/linux/LinuxTargetHelper.js.map +1 -0
- package/dist/targets/linux/appimage/AppImageTarget.d.ts +16 -0
- package/dist/targets/linux/appimage/AppImageTarget.d.ts.map +1 -0
- package/dist/targets/linux/appimage/AppImageTarget.js +141 -0
- package/dist/targets/linux/appimage/AppImageTarget.js.map +1 -0
- package/dist/targets/linux/appimage/appImageUtil.d.ts +57 -0
- package/dist/targets/linux/appimage/appImageUtil.d.ts.map +1 -0
- package/dist/targets/linux/appimage/appImageUtil.js +317 -0
- package/dist/targets/linux/appimage/appImageUtil.js.map +1 -0
- package/dist/targets/linux/appimage/appLauncher.d.ts +4 -0
- package/dist/targets/linux/appimage/appLauncher.d.ts.map +1 -0
- package/dist/targets/linux/appimage/appLauncher.js +91 -0
- package/dist/targets/linux/appimage/appLauncher.js.map +1 -0
- package/dist/targets/linux/snap/SnapTarget.d.ts +37 -0
- package/dist/targets/linux/snap/SnapTarget.d.ts.map +1 -0
- package/dist/targets/linux/snap/SnapTarget.js +96 -0
- package/dist/targets/linux/snap/SnapTarget.js.map +1 -0
- package/dist/targets/linux/snap/core24.d.ts +53 -0
- package/dist/targets/linux/snap/core24.d.ts.map +1 -0
- package/dist/targets/linux/snap/core24.js +444 -0
- package/dist/targets/linux/snap/core24.js.map +1 -0
- package/dist/targets/linux/snap/coreCustom.d.ts +29 -0
- package/dist/targets/linux/snap/coreCustom.d.ts.map +1 -0
- package/dist/targets/linux/snap/coreCustom.js +60 -0
- package/dist/targets/linux/snap/coreCustom.js.map +1 -0
- package/dist/targets/linux/snap/coreLegacy.d.ts +46 -0
- package/dist/targets/linux/snap/coreLegacy.d.ts.map +1 -0
- package/dist/targets/linux/snap/coreLegacy.js +402 -0
- package/dist/targets/linux/snap/coreLegacy.js.map +1 -0
- package/dist/targets/linux/snap/snapcraftBuilder.d.ts +40 -0
- package/dist/targets/linux/snap/snapcraftBuilder.d.ts.map +1 -0
- package/dist/targets/linux/snap/snapcraftBuilder.js +414 -0
- package/dist/targets/linux/snap/snapcraftBuilder.js.map +1 -0
- package/dist/targets/mac/MacTargetHelper.d.ts +30 -0
- package/dist/targets/mac/MacTargetHelper.d.ts.map +1 -0
- package/dist/targets/mac/MacTargetHelper.js +267 -0
- package/dist/targets/mac/MacTargetHelper.js.map +1 -0
- package/dist/targets/mac/pkg.d.ts +31 -0
- package/dist/targets/mac/pkg.d.ts.map +1 -0
- package/dist/targets/mac/pkg.js +271 -0
- package/dist/targets/mac/pkg.js.map +1 -0
- package/dist/targets/targetFactory.d.ts +13 -0
- package/dist/targets/targetFactory.d.ts.map +1 -0
- package/dist/targets/targetFactory.js +94 -0
- package/dist/targets/targetFactory.js.map +1 -0
- package/dist/targets/targetUtil.d.ts +16 -0
- package/dist/targets/targetUtil.d.ts.map +1 -0
- package/dist/targets/targetUtil.js +40 -0
- package/dist/targets/targetUtil.js.map +1 -0
- package/dist/targets/win/AppxCapabilities.d.ts +9 -0
- package/dist/targets/win/AppxCapabilities.d.ts.map +1 -0
- package/dist/targets/win/AppxCapabilities.js +254 -0
- package/dist/targets/win/AppxCapabilities.js.map +1 -0
- package/dist/targets/win/AppxTarget.d.ts +18 -0
- package/dist/targets/win/AppxTarget.d.ts.map +1 -0
- package/dist/targets/win/AppxTarget.js +398 -0
- package/dist/targets/win/AppxTarget.js.map +1 -0
- package/dist/targets/win/MsiTarget.d.ts +29 -0
- package/dist/targets/win/MsiTarget.d.ts.map +1 -0
- package/dist/targets/win/MsiTarget.js +268 -0
- package/dist/targets/win/MsiTarget.js.map +1 -0
- package/dist/targets/win/MsiWrappedTarget.d.ts +20 -0
- package/dist/targets/win/MsiWrappedTarget.d.ts.map +1 -0
- package/dist/targets/win/MsiWrappedTarget.js +77 -0
- package/dist/targets/win/MsiWrappedTarget.js.map +1 -0
- package/dist/targets/win/nsis/Commands.d.ts +10 -0
- package/dist/targets/win/nsis/Commands.d.ts.map +1 -0
- package/dist/targets/win/nsis/Commands.js +2 -0
- package/dist/targets/win/nsis/Commands.js.map +1 -0
- package/dist/targets/win/nsis/Defines.d.ts +81 -0
- package/dist/targets/win/nsis/Defines.d.ts.map +1 -0
- package/dist/targets/win/nsis/Defines.js +2 -0
- package/dist/targets/win/nsis/Defines.js.map +1 -0
- package/dist/targets/win/nsis/NsisTarget.d.ts +43 -0
- package/dist/targets/win/nsis/NsisTarget.d.ts.map +1 -0
- package/dist/targets/win/nsis/NsisTarget.js +726 -0
- package/dist/targets/win/nsis/NsisTarget.js.map +1 -0
- package/dist/targets/win/nsis/WebInstallerTarget.d.ts +14 -0
- package/dist/targets/win/nsis/WebInstallerTarget.d.ts.map +1 -0
- package/dist/targets/win/nsis/WebInstallerTarget.js +43 -0
- package/dist/targets/win/nsis/WebInstallerTarget.js.map +1 -0
- package/dist/targets/win/nsis/nsisLang.d.ts +11 -0
- package/dist/targets/win/nsis/nsisLang.d.ts.map +1 -0
- package/dist/targets/win/nsis/nsisLang.js +94 -0
- package/dist/targets/win/nsis/nsisLang.js.map +1 -0
- package/dist/targets/win/nsis/nsisLicense.d.ts +5 -0
- package/dist/targets/win/nsis/nsisLicense.d.ts.map +1 -0
- package/dist/targets/win/nsis/nsisLicense.js +73 -0
- package/dist/targets/win/nsis/nsisLicense.js.map +1 -0
- package/dist/targets/win/nsis/nsisOptions.d.ts +275 -0
- package/dist/targets/win/nsis/nsisOptions.d.ts.map +1 -0
- package/dist/targets/win/nsis/nsisOptions.js +2 -0
- package/dist/targets/win/nsis/nsisOptions.js.map +1 -0
- package/dist/targets/win/nsis/nsisScriptGenerator.d.ts +13 -0
- package/dist/targets/win/nsis/nsisScriptGenerator.d.ts.map +1 -0
- package/dist/targets/win/nsis/nsisScriptGenerator.js +59 -0
- package/dist/targets/win/nsis/nsisScriptGenerator.js.map +1 -0
- package/dist/targets/win/nsis/nsisUtil.d.ts +26 -0
- package/dist/targets/win/nsis/nsisUtil.d.ts.map +1 -0
- package/dist/targets/win/nsis/nsisUtil.js +218 -0
- package/dist/targets/win/nsis/nsisUtil.js.map +1 -0
- package/dist/targets/win/nsis/nsisValidation.d.ts +19 -0
- package/dist/targets/win/nsis/nsisValidation.d.ts.map +1 -0
- package/dist/targets/win/nsis/nsisValidation.js +49 -0
- package/dist/targets/win/nsis/nsisValidation.js.map +1 -0
- package/dist/toolsets/7zip.d.ts +9 -0
- package/dist/toolsets/7zip.d.ts.map +1 -0
- package/dist/toolsets/7zip.js +80 -0
- package/dist/toolsets/7zip.js.map +1 -0
- package/dist/toolsets/appimage.d.ts +20 -0
- package/dist/toolsets/appimage.d.ts.map +1 -0
- package/dist/toolsets/appimage.js +67 -0
- package/dist/toolsets/appimage.js.map +1 -0
- package/dist/toolsets/custom.d.ts +5 -0
- package/dist/toolsets/custom.d.ts.map +1 -0
- package/dist/toolsets/custom.js +200 -0
- package/dist/toolsets/custom.js.map +1 -0
- package/dist/toolsets/fpm.d.ts +3 -0
- package/dist/toolsets/fpm.d.ts.map +1 -0
- package/dist/toolsets/fpm.js +49 -0
- package/dist/toolsets/fpm.js.map +1 -0
- package/dist/toolsets/icons.d.ts +12 -0
- package/dist/toolsets/icons.d.ts.map +1 -0
- package/dist/toolsets/icons.js +36 -0
- package/dist/toolsets/icons.js.map +1 -0
- package/dist/toolsets/linuxToolsMac.d.ts +8 -0
- package/dist/toolsets/linuxToolsMac.d.ts.map +1 -0
- package/dist/toolsets/linuxToolsMac.js +31 -0
- package/dist/toolsets/linuxToolsMac.js.map +1 -0
- package/dist/toolsets/nsis.d.ts +13 -0
- package/dist/toolsets/nsis.d.ts.map +1 -0
- package/dist/toolsets/nsis.js +100 -0
- package/dist/toolsets/nsis.js.map +1 -0
- package/dist/toolsets/winCodeSign.d.ts +42 -0
- package/dist/toolsets/winCodeSign.d.ts.map +1 -0
- package/dist/toolsets/winCodeSign.js +142 -0
- package/dist/toolsets/winCodeSign.js.map +1 -0
- package/dist/toolsets/wine.d.ts +6 -0
- package/dist/toolsets/wine.d.ts.map +1 -0
- package/dist/toolsets/wine.js +79 -0
- package/dist/toolsets/wine.js.map +1 -0
- package/dist/util/AppFileWalker.d.ts +14 -0
- package/dist/util/AppFileWalker.d.ts.map +1 -0
- package/dist/util/AppFileWalker.js +69 -0
- package/dist/util/AppFileWalker.js.map +1 -0
- package/dist/util/NodeModuleCopyHelper.d.ts +2 -0
- package/dist/util/NodeModuleCopyHelper.d.ts.map +1 -0
- package/dist/util/NodeModuleCopyHelper.js +160 -0
- package/dist/util/NodeModuleCopyHelper.js.map +1 -0
- package/dist/util/appFileCopier.d.ts +17 -0
- package/dist/util/appFileCopier.d.ts.map +1 -0
- package/dist/util/appFileCopier.js +190 -0
- package/dist/util/appFileCopier.js.map +1 -0
- package/dist/util/asyncEventEmitter.d.ts +34 -0
- package/dist/util/asyncEventEmitter.d.ts.map +1 -0
- package/dist/util/asyncEventEmitter.js +56 -0
- package/dist/util/asyncEventEmitter.js.map +1 -0
- package/dist/util/bundledTool.d.ts +8 -0
- package/dist/util/bundledTool.d.ts.map +1 -0
- package/dist/util/bundledTool.js +16 -0
- package/dist/util/bundledTool.js.map +1 -0
- package/dist/util/cacheManager.d.ts +19 -0
- package/dist/util/cacheManager.d.ts.map +1 -0
- package/dist/util/cacheManager.js +65 -0
- package/dist/util/cacheManager.js.map +1 -0
- package/dist/util/cacheState.d.ts +29 -0
- package/dist/util/cacheState.d.ts.map +1 -0
- package/dist/util/cacheState.js +134 -0
- package/dist/util/cacheState.js.map +1 -0
- package/dist/util/config/config.d.ts +13 -0
- package/dist/util/config/config.d.ts.map +1 -0
- package/dist/util/config/config.js +236 -0
- package/dist/util/config/config.js.map +1 -0
- package/dist/util/config/load.d.ts +20 -0
- package/dist/util/config/load.d.ts.map +1 -0
- package/dist/util/config/load.js +122 -0
- package/dist/util/config/load.js.map +1 -0
- package/dist/util/config/schemaValidator.d.ts +8 -0
- package/dist/util/config/schemaValidator.d.ts.map +1 -0
- package/dist/util/config/schemaValidator.js +161 -0
- package/dist/util/config/schemaValidator.js.map +1 -0
- package/dist/util/dynamicImport.d.ts +2 -0
- package/dist/util/dynamicImport.d.ts.map +1 -0
- package/dist/util/dynamicImport.js +9 -0
- package/dist/util/dynamicImport.js.map +1 -0
- package/dist/util/electronGet.d.ts +68 -0
- package/dist/util/electronGet.d.ts.map +1 -0
- package/dist/util/electronGet.js +560 -0
- package/dist/util/electronGet.js.map +1 -0
- package/dist/util/filter.d.ts +2 -0
- package/dist/util/filter.d.ts.map +1 -0
- package/dist/util/filter.js +64 -0
- package/dist/util/filter.js.map +1 -0
- package/dist/util/flags.d.ts +16 -0
- package/dist/util/flags.d.ts.map +1 -0
- package/dist/util/flags.js +53 -0
- package/dist/util/flags.js.map +1 -0
- package/dist/util/hash.d.ts +2 -0
- package/dist/util/hash.d.ts.map +1 -0
- package/dist/util/hash.js +16 -0
- package/dist/util/hash.js.map +1 -0
- package/dist/util/iconConverter.d.ts +29 -0
- package/dist/util/iconConverter.d.ts.map +1 -0
- package/dist/util/iconConverter.js +255 -0
- package/dist/util/iconConverter.js.map +1 -0
- package/dist/util/langs.d.ts +190 -0
- package/dist/util/langs.d.ts.map +1 -0
- package/dist/util/langs.js +432 -0
- package/dist/util/langs.js.map +1 -0
- package/dist/util/license.d.ts +17 -0
- package/dist/util/license.d.ts.map +1 -0
- package/dist/util/license.js +42 -0
- package/dist/util/license.js.map +1 -0
- package/dist/util/mac/macosIconComposer.d.ts +11 -0
- package/dist/util/mac/macosIconComposer.d.ts.map +1 -0
- package/dist/util/mac/macosIconComposer.js +99 -0
- package/dist/util/mac/macosIconComposer.js.map +1 -0
- package/dist/util/mac/macosVersion.d.ts +4 -0
- package/dist/util/mac/macosVersion.d.ts.map +1 -0
- package/dist/util/mac/macosVersion.js +31 -0
- package/dist/util/mac/macosVersion.js.map +1 -0
- package/dist/util/mac/plist.d.ts +8 -0
- package/dist/util/mac/plist.d.ts.map +1 -0
- package/dist/util/mac/plist.js +27 -0
- package/dist/util/mac/plist.js.map +1 -0
- package/dist/util/macroExpander.d.ts +4 -0
- package/dist/util/macroExpander.d.ts.map +1 -0
- package/dist/util/macroExpander.js +61 -0
- package/dist/util/macroExpander.js.map +1 -0
- package/dist/util/normalizePackageData.d.ts +2 -0
- package/dist/util/normalizePackageData.d.ts.map +1 -0
- package/dist/util/normalizePackageData.js +323 -0
- package/dist/util/normalizePackageData.js.map +1 -0
- package/dist/util/packageMetadata.d.ts +2 -0
- package/dist/util/packageMetadata.d.ts.map +1 -0
- package/dist/util/packageMetadata.js +118 -0
- package/dist/util/packageMetadata.js.map +1 -0
- package/dist/util/pathManager.d.ts +4 -0
- package/dist/util/pathManager.d.ts.map +1 -0
- package/dist/util/pathManager.js +17 -0
- package/dist/util/pathManager.js.map +1 -0
- package/dist/util/rebuild.d.ts +3 -0
- package/dist/util/rebuild.d.ts.map +1 -0
- package/dist/util/rebuild.js +54 -0
- package/dist/util/rebuild.js.map +1 -0
- package/dist/util/repositoryInfo.d.ts +4 -0
- package/dist/util/repositoryInfo.d.ts.map +1 -0
- package/dist/util/repositoryInfo.js +76 -0
- package/dist/util/repositoryInfo.js.map +1 -0
- package/dist/util/resolve.d.ts +3 -0
- package/dist/util/resolve.d.ts.map +1 -0
- package/dist/util/resolve.js +56 -0
- package/dist/util/resolve.js.map +1 -0
- package/dist/util/timer.d.ts +12 -0
- package/dist/util/timer.d.ts.map +1 -0
- package/dist/util/timer.js +23 -0
- package/dist/util/timer.js.map +1 -0
- package/dist/util/toolsetLock.d.ts +2 -0
- package/dist/util/toolsetLock.d.ts.map +1 -0
- package/dist/util/toolsetLock.js +20 -0
- package/dist/util/toolsetLock.js.map +1 -0
- package/dist/util/win/resEdit.d.ts +11 -0
- package/dist/util/win/resEdit.d.ts.map +1 -0
- package/dist/util/win/resEdit.js +46 -0
- package/dist/util/win/resEdit.js.map +1 -0
- package/dist/util/yarn.d.ts +23 -0
- package/dist/util/yarn.d.ts.map +1 -0
- package/dist/util/yarn.js +153 -0
- package/dist/util/yarn.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/dist/vm/MonoVm.d.ts +9 -0
- package/dist/vm/MonoVm.d.ts.map +1 -0
- package/dist/vm/MonoVm.js +16 -0
- package/dist/vm/MonoVm.js.map +1 -0
- package/dist/vm/ParallelsVm.d.ts +24 -0
- package/dist/vm/ParallelsVm.d.ts.map +1 -0
- package/dist/vm/ParallelsVm.js +107 -0
- package/dist/vm/ParallelsVm.js.map +1 -0
- package/dist/vm/PwshVm.d.ts +7 -0
- package/dist/vm/PwshVm.d.ts.map +1 -0
- package/dist/vm/PwshVm.js +21 -0
- package/dist/vm/PwshVm.js.map +1 -0
- package/dist/vm/WineVm.d.ts +14 -0
- package/dist/vm/WineVm.d.ts.map +1 -0
- package/dist/vm/WineVm.js +35 -0
- package/dist/vm/WineVm.js.map +1 -0
- package/dist/vm/vm.d.ts +15 -0
- package/dist/vm/vm.d.ts.map +1 -0
- package/dist/vm/vm.js +81 -0
- package/dist/vm/vm.js.map +1 -0
- package/dist/winPackager.d.ts +30 -0
- package/dist/winPackager.d.ts.map +1 -0
- package/dist/winPackager.js +270 -0
- package/dist/winPackager.js.map +1 -0
- package/helpers/package.json +6 -0
- package/helpers/remote-rebuild.js +2 -4
- package/package.json +30 -33
- package/scheme.json +379 -721
- package/out/Framework.d.ts +0 -36
- package/out/Framework.js +0 -7
- package/out/Framework.js.map +0 -1
- package/out/ProtonFramework.d.ts +0 -10
- package/out/ProtonFramework.js +0 -94
- package/out/ProtonFramework.js.map +0 -1
- package/out/appInfo.d.ts +0 -31
- package/out/appInfo.js +0 -152
- package/out/appInfo.js.map +0 -1
- package/out/asar/asar.d.ts +0 -38
- package/out/asar/asar.js +0 -163
- package/out/asar/asar.js.map +0 -1
- package/out/asar/asarFileChecker.d.ts +0 -2
- package/out/asar/asarFileChecker.js +0 -25
- package/out/asar/asarFileChecker.js.map +0 -1
- package/out/asar/asarUtil.d.ts +0 -1
- package/out/asar/asarUtil.js +0 -285
- package/out/asar/asarUtil.js.map +0 -1
- package/out/asar/integrity.d.ts +0 -15
- package/out/asar/integrity.js +0 -62
- package/out/asar/integrity.js.map +0 -1
- package/out/asar/unpackDetector.d.ts +0 -1
- package/out/asar/unpackDetector.js +0 -43
- package/out/asar/unpackDetector.js.map +0 -1
- package/out/binDownload.d.ts +0 -5
- package/out/binDownload.js +0 -104
- package/out/binDownload.js.map +0 -1
- package/out/codeSign/certInfo.d.ts +0 -54
- package/out/codeSign/certInfo.js +0 -466
- package/out/codeSign/certInfo.js.map +0 -1
- package/out/codeSign/codesign.d.ts +0 -3
- package/out/codeSign/codesign.js +0 -33
- package/out/codeSign/codesign.js.map +0 -1
- package/out/codeSign/macCodeSign.d.ts +0 -28
- package/out/codeSign/macCodeSign.js +0 -284
- package/out/codeSign/macCodeSign.js.map +0 -1
- package/out/codeSign/signManager.d.ts +0 -13
- package/out/codeSign/signManager.js +0 -3
- package/out/codeSign/signManager.js.map +0 -1
- package/out/codeSign/windowsCodeSign.d.ts +0 -7
- package/out/codeSign/windowsCodeSign.js +0 -38
- package/out/codeSign/windowsCodeSign.js.map +0 -1
- package/out/codeSign/windowsSignAzureManager.d.ts +0 -17
- package/out/codeSign/windowsSignAzureManager.js +0 -73
- package/out/codeSign/windowsSignAzureManager.js.map +0 -1
- package/out/codeSign/windowsSignToolManager.d.ts +0 -58
- package/out/codeSign/windowsSignToolManager.js +0 -376
- package/out/codeSign/windowsSignToolManager.js.map +0 -1
- package/out/configuration.d.ts +0 -532
- package/out/configuration.js +0 -3
- package/out/configuration.js.map +0 -1
- package/out/core.d.ts +0 -60
- package/out/core.js +0 -66
- package/out/core.js.map +0 -1
- package/out/electron/ElectronFramework.d.ts +0 -16
- package/out/electron/ElectronFramework.js +0 -242
- package/out/electron/ElectronFramework.js.map +0 -1
- package/out/electron/electronMac.d.ts +0 -1
- package/out/electron/electronMac.js +0 -262
- package/out/electron/electronMac.js.map +0 -1
- package/out/electron/electronVersion.d.ts +0 -6
- package/out/electron/electronVersion.js +0 -125
- package/out/electron/electronVersion.js.map +0 -1
- package/out/electron/electronWin.d.ts +0 -1
- package/out/electron/electronWin.js +0 -38
- package/out/electron/electronWin.js.map +0 -1
- package/out/electron/injectFFMPEG.d.ts +0 -11
- package/out/electron/injectFFMPEG.js +0 -57
- package/out/electron/injectFFMPEG.js.map +0 -1
- package/out/electron/search-module.d.ts +0 -23
- package/out/electron/search-module.js +0 -73
- package/out/electron/search-module.js.map +0 -1
- package/out/errorMessages.d.ts +0 -1
- package/out/errorMessages.js +0 -11
- package/out/errorMessages.js.map +0 -1
- package/out/fileMatcher.d.ts +0 -29
- package/out/fileMatcher.js +0 -292
- package/out/fileMatcher.js.map +0 -1
- package/out/fileTransformer.d.ts +0 -1
- package/out/fileTransformer.js +0 -107
- package/out/fileTransformer.js.map +0 -1
- package/out/forge-maker.d.ts +0 -5
- package/out/forge-maker.js +0 -23
- package/out/forge-maker.js.map +0 -1
- package/out/frameworks/LibUiFramework.d.ts +0 -47
- package/out/frameworks/LibUiFramework.js +0 -197
- package/out/frameworks/LibUiFramework.js.map +0 -1
- package/out/index.d.ts +0 -39
- package/out/index.js +0 -99
- package/out/index.js.map +0 -1
- package/out/linuxPackager.d.ts +0 -12
- package/out/linuxPackager.js +0 -77
- package/out/linuxPackager.js.map +0 -1
- package/out/mac/MacTargetHelper.d.ts +0 -29
- package/out/mac/MacTargetHelper.js +0 -273
- package/out/mac/MacTargetHelper.js.map +0 -1
- package/out/macPackager.d.ts +0 -49
- package/out/macPackager.js +0 -445
- package/out/macPackager.js.map +0 -1
- package/out/node-module-collector/bunNodeModulesCollector.d.ts +0 -10
- package/out/node-module-collector/bunNodeModulesCollector.js +0 -18
- package/out/node-module-collector/bunNodeModulesCollector.js.map +0 -1
- package/out/node-module-collector/hoist.d.ts +0 -123
- package/out/node-module-collector/hoist.js +0 -884
- package/out/node-module-collector/hoist.js.map +0 -1
- package/out/node-module-collector/index.d.ts +0 -18
- package/out/node-module-collector/index.js +0 -130
- package/out/node-module-collector/index.js.map +0 -1
- package/out/node-module-collector/moduleManager.d.ts +0 -93
- package/out/node-module-collector/moduleManager.js +0 -321
- package/out/node-module-collector/moduleManager.js.map +0 -1
- package/out/node-module-collector/nodeModulesCollector.d.ts +0 -137
- package/out/node-module-collector/nodeModulesCollector.js +0 -428
- package/out/node-module-collector/nodeModulesCollector.js.map +0 -1
- package/out/node-module-collector/npmNodeModulesCollector.d.ts +0 -14
- package/out/node-module-collector/npmNodeModulesCollector.js +0 -80
- package/out/node-module-collector/npmNodeModulesCollector.js.map +0 -1
- package/out/node-module-collector/packageManager.d.ts +0 -17
- package/out/node-module-collector/packageManager.js +0 -144
- package/out/node-module-collector/packageManager.js.map +0 -1
- package/out/node-module-collector/pnpmNodeModulesCollector.d.ts +0 -44
- package/out/node-module-collector/pnpmNodeModulesCollector.js +0 -191
- package/out/node-module-collector/pnpmNodeModulesCollector.js.map +0 -1
- package/out/node-module-collector/traversalNodeModulesCollector.d.ts +0 -18
- package/out/node-module-collector/traversalNodeModulesCollector.js +0 -122
- package/out/node-module-collector/traversalNodeModulesCollector.js.map +0 -1
- package/out/node-module-collector/types.d.ts +0 -52
- package/out/node-module-collector/types.js +0 -3
- package/out/node-module-collector/yarnBerryNodeModulesCollector.d.ts +0 -15
- package/out/node-module-collector/yarnBerryNodeModulesCollector.js +0 -93
- package/out/node-module-collector/yarnBerryNodeModulesCollector.js.map +0 -1
- package/out/node-module-collector/yarnNodeModulesCollector.d.ts +0 -10
- package/out/node-module-collector/yarnNodeModulesCollector.js +0 -22
- package/out/node-module-collector/yarnNodeModulesCollector.js.map +0 -1
- package/out/options/AppXOptions.d.ts +0 -105
- package/out/options/AppXOptions.js +0 -3
- package/out/options/AppXOptions.js.map +0 -1
- package/out/options/CommonWindowsInstallerConfiguration.d.ts +0 -47
- package/out/options/CommonWindowsInstallerConfiguration.js +0 -51
- package/out/options/CommonWindowsInstallerConfiguration.js.map +0 -1
- package/out/options/FileAssociation.d.ts +0 -45
- package/out/options/FileAssociation.js +0 -3
- package/out/options/MsiOptions.d.ts +0 -26
- package/out/options/MsiOptions.js +0 -3
- package/out/options/MsiOptions.js.map +0 -1
- package/out/options/MsiWrappedOptions.d.ts +0 -26
- package/out/options/MsiWrappedOptions.js +0 -3
- package/out/options/MsiWrappedOptions.js.map +0 -1
- package/out/options/PlatformSpecificBuildOptions.d.ts +0 -238
- package/out/options/PlatformSpecificBuildOptions.js +0 -3
- package/out/options/PlatformSpecificBuildOptions.js.map +0 -1
- package/out/options/SnapOptions.d.ts +0 -500
- package/out/options/SnapOptions.js +0 -3
- package/out/options/SnapOptions.js.map +0 -1
- package/out/options/SquirrelWindowsOptions.d.ts +0 -46
- package/out/options/SquirrelWindowsOptions.js +0 -3
- package/out/options/SquirrelWindowsOptions.js.map +0 -1
- package/out/options/linuxOptions.d.ts +0 -287
- package/out/options/linuxOptions.js +0 -3
- package/out/options/linuxOptions.js.map +0 -1
- package/out/options/macOptions.d.ts +0 -388
- package/out/options/macOptions.js +0 -3
- package/out/options/macOptions.js.map +0 -1
- package/out/options/metadata.d.ts +0 -53
- package/out/options/metadata.js +0 -3
- package/out/options/metadata.js.map +0 -1
- package/out/options/pkgOptions.d.ts +0 -136
- package/out/options/pkgOptions.js +0 -3
- package/out/options/pkgOptions.js.map +0 -1
- package/out/options/winOptions.d.ts +0 -164
- package/out/options/winOptions.js +0 -3
- package/out/options/winOptions.js.map +0 -1
- package/out/packager.d.ts +0 -99
- package/out/packager.js +0 -515
- package/out/packager.js.map +0 -1
- package/out/packagerApi.d.ts +0 -31
- package/out/packagerApi.js +0 -3
- package/out/packagerApi.js.map +0 -1
- package/out/platformPackager.d.ts +0 -101
- package/out/platformPackager.js +0 -714
- package/out/platformPackager.js.map +0 -1
- package/out/presets/rectCra.d.ts +0 -1
- package/out/presets/rectCra.js +0 -22
- package/out/presets/rectCra.js.map +0 -1
- package/out/publish/PublishManager.d.ts +0 -30
- package/out/publish/PublishManager.js +0 -497
- package/out/publish/PublishManager.js.map +0 -1
- package/out/publish/updateInfoBuilder.d.ts +0 -14
- package/out/publish/updateInfoBuilder.js +0 -226
- package/out/publish/updateInfoBuilder.js.map +0 -1
- package/out/targets/AppxCapabilities.d.ts +0 -8
- package/out/targets/AppxCapabilities.js +0 -258
- package/out/targets/AppxCapabilities.js.map +0 -1
- package/out/targets/AppxTarget.d.ts +0 -17
- package/out/targets/AppxTarget.js +0 -403
- package/out/targets/AppxTarget.js.map +0 -1
- package/out/targets/ArchiveTarget.d.ts +0 -11
- package/out/targets/ArchiveTarget.js +0 -88
- package/out/targets/ArchiveTarget.js.map +0 -1
- package/out/targets/FlatpakTarget.d.ts +0 -20
- package/out/targets/FlatpakTarget.js +0 -159
- package/out/targets/FlatpakTarget.js.map +0 -1
- package/out/targets/FpmTarget.d.ts +0 -22
- package/out/targets/FpmTarget.js +0 -372
- package/out/targets/FpmTarget.js.map +0 -1
- package/out/targets/LinuxTargetHelper.d.ts +0 -23
- package/out/targets/LinuxTargetHelper.js +0 -346
- package/out/targets/LinuxTargetHelper.js.map +0 -1
- package/out/targets/MsiTarget.d.ts +0 -28
- package/out/targets/MsiTarget.js +0 -268
- package/out/targets/MsiTarget.js.map +0 -1
- package/out/targets/MsiWrappedTarget.d.ts +0 -19
- package/out/targets/MsiWrappedTarget.js +0 -80
- package/out/targets/MsiWrappedTarget.js.map +0 -1
- package/out/targets/appimage/AppImageTarget.d.ts +0 -15
- package/out/targets/appimage/AppImageTarget.js +0 -147
- package/out/targets/appimage/AppImageTarget.js.map +0 -1
- package/out/targets/appimage/appImageUtil.d.ts +0 -56
- package/out/targets/appimage/appImageUtil.js +0 -323
- package/out/targets/appimage/appImageUtil.js.map +0 -1
- package/out/targets/appimage/appLauncher.d.ts +0 -3
- package/out/targets/appimage/appLauncher.js +0 -95
- package/out/targets/appimage/appLauncher.js.map +0 -1
- package/out/targets/archive.d.ts +0 -26
- package/out/targets/archive.js +0 -178
- package/out/targets/archive.js.map +0 -1
- package/out/targets/blockmap/blockmap.d.ts +0 -16
- package/out/targets/blockmap/blockmap.js +0 -153
- package/out/targets/blockmap/blockmap.js.map +0 -1
- package/out/targets/differentialUpdateInfoBuilder.d.ts +0 -15
- package/out/targets/differentialUpdateInfoBuilder.js +0 -80
- package/out/targets/differentialUpdateInfoBuilder.js.map +0 -1
- package/out/targets/nsis/Commands.d.ts +0 -9
- package/out/targets/nsis/Commands.js +0 -3
- package/out/targets/nsis/Commands.js.map +0 -1
- package/out/targets/nsis/Defines.d.ts +0 -80
- package/out/targets/nsis/Defines.js +0 -3
- package/out/targets/nsis/Defines.js.map +0 -1
- package/out/targets/nsis/NsisTarget.d.ts +0 -37
- package/out/targets/nsis/NsisTarget.js +0 -729
- package/out/targets/nsis/NsisTarget.js.map +0 -1
- package/out/targets/nsis/WebInstallerTarget.d.ts +0 -13
- package/out/targets/nsis/WebInstallerTarget.js +0 -47
- package/out/targets/nsis/WebInstallerTarget.js.map +0 -1
- package/out/targets/nsis/nsisLang.d.ts +0 -10
- package/out/targets/nsis/nsisLang.js +0 -100
- package/out/targets/nsis/nsisLang.js.map +0 -1
- package/out/targets/nsis/nsisLicense.d.ts +0 -4
- package/out/targets/nsis/nsisLicense.js +0 -77
- package/out/targets/nsis/nsisLicense.js.map +0 -1
- package/out/targets/nsis/nsisOptions.d.ts +0 -274
- package/out/targets/nsis/nsisOptions.js +0 -3
- package/out/targets/nsis/nsisOptions.js.map +0 -1
- package/out/targets/nsis/nsisScriptGenerator.d.ts +0 -12
- package/out/targets/nsis/nsisScriptGenerator.js +0 -64
- package/out/targets/nsis/nsisScriptGenerator.js.map +0 -1
- package/out/targets/nsis/nsisUtil.d.ts +0 -25
- package/out/targets/nsis/nsisUtil.js +0 -225
- package/out/targets/nsis/nsisUtil.js.map +0 -1
- package/out/targets/nsis/nsisValidation.d.ts +0 -18
- package/out/targets/nsis/nsisValidation.js +0 -53
- package/out/targets/nsis/nsisValidation.js.map +0 -1
- package/out/targets/pkg.d.ts +0 -30
- package/out/targets/pkg.js +0 -279
- package/out/targets/pkg.js.map +0 -1
- package/out/targets/snap/SnapTarget.d.ts +0 -36
- package/out/targets/snap/SnapTarget.js +0 -105
- package/out/targets/snap/SnapTarget.js.map +0 -1
- package/out/targets/snap/core24.d.ts +0 -52
- package/out/targets/snap/core24.js +0 -449
- package/out/targets/snap/core24.js.map +0 -1
- package/out/targets/snap/coreCustom.d.ts +0 -28
- package/out/targets/snap/coreCustom.js +0 -63
- package/out/targets/snap/coreCustom.js.map +0 -1
- package/out/targets/snap/coreLegacy.d.ts +0 -43
- package/out/targets/snap/coreLegacy.js +0 -416
- package/out/targets/snap/coreLegacy.js.map +0 -1
- package/out/targets/snap/snapcraftBuilder.d.ts +0 -39
- package/out/targets/snap/snapcraftBuilder.js +0 -419
- package/out/targets/snap/snapcraftBuilder.js.map +0 -1
- package/out/targets/targetFactory.d.ts +0 -12
- package/out/targets/targetFactory.js +0 -101
- package/out/targets/targetFactory.js.map +0 -1
- package/out/targets/targetUtil.d.ts +0 -14
- package/out/targets/targetUtil.js +0 -47
- package/out/targets/targetUtil.js.map +0 -1
- package/out/toolsets/7zip.d.ts +0 -2
- package/out/toolsets/7zip.js +0 -72
- package/out/toolsets/7zip.js.map +0 -1
- package/out/toolsets/icons.d.ts +0 -8
- package/out/toolsets/icons.js +0 -37
- package/out/toolsets/icons.js.map +0 -1
- package/out/toolsets/linux.d.ts +0 -26
- package/out/toolsets/linux.js +0 -146
- package/out/toolsets/linux.js.map +0 -1
- package/out/toolsets/windows.d.ts +0 -61
- package/out/toolsets/windows.js +0 -259
- package/out/toolsets/windows.js.map +0 -1
- package/out/toolsets/wine.d.ts +0 -5
- package/out/toolsets/wine.js +0 -100
- package/out/toolsets/wine.js.map +0 -1
- package/out/util/AppFileWalker.d.ts +0 -13
- package/out/util/AppFileWalker.js +0 -74
- package/out/util/AppFileWalker.js.map +0 -1
- package/out/util/NodeModuleCopyHelper.d.ts +0 -1
- package/out/util/NodeModuleCopyHelper.js +0 -165
- package/out/util/NodeModuleCopyHelper.js.map +0 -1
- package/out/util/appFileCopier.d.ts +0 -16
- package/out/util/appFileCopier.js +0 -251
- package/out/util/appFileCopier.js.map +0 -1
- package/out/util/asyncEventEmitter.d.ts +0 -33
- package/out/util/asyncEventEmitter.js +0 -63
- package/out/util/asyncEventEmitter.js.map +0 -1
- package/out/util/bundledTool.d.ts +0 -7
- package/out/util/bundledTool.js +0 -20
- package/out/util/bundledTool.js.map +0 -1
- package/out/util/cacheManager.d.ts +0 -18
- package/out/util/cacheManager.js +0 -70
- package/out/util/cacheManager.js.map +0 -1
- package/out/util/cacheState.d.ts +0 -28
- package/out/util/cacheState.js +0 -143
- package/out/util/cacheState.js.map +0 -1
- package/out/util/config/config.d.ts +0 -12
- package/out/util/config/config.js +0 -256
- package/out/util/config/config.js.map +0 -1
- package/out/util/config/load.d.ts +0 -19
- package/out/util/config/load.js +0 -129
- package/out/util/config/load.js.map +0 -1
- package/out/util/config/schemaValidator.d.ts +0 -7
- package/out/util/config/schemaValidator.js +0 -154
- package/out/util/config/schemaValidator.js.map +0 -1
- package/out/util/dynamicImport.d.ts +0 -1
- package/out/util/dynamicImport.js +0 -12
- package/out/util/dynamicImport.js.map +0 -1
- package/out/util/electronGet.d.ts +0 -61
- package/out/util/electronGet.js +0 -464
- package/out/util/electronGet.js.map +0 -1
- package/out/util/envPath.d.ts +0 -2
- package/out/util/envPath.js +0 -28
- package/out/util/envPath.js.map +0 -1
- package/out/util/filter.d.ts +0 -1
- package/out/util/filter.js +0 -68
- package/out/util/filter.js.map +0 -1
- package/out/util/flags.d.ts +0 -3
- package/out/util/flags.js +0 -16
- package/out/util/flags.js.map +0 -1
- package/out/util/hash.d.ts +0 -1
- package/out/util/hash.js +0 -19
- package/out/util/hash.js.map +0 -1
- package/out/util/iconConverter.d.ts +0 -25
- package/out/util/iconConverter.js +0 -260
- package/out/util/iconConverter.js.map +0 -1
- package/out/util/langs.d.ts +0 -189
- package/out/util/langs.js +0 -436
- package/out/util/langs.js.map +0 -1
- package/out/util/license.d.ts +0 -16
- package/out/util/license.js +0 -47
- package/out/util/license.js.map +0 -1
- package/out/util/macosIconComposer.d.ts +0 -10
- package/out/util/macosIconComposer.js +0 -102
- package/out/util/macosIconComposer.js.map +0 -1
- package/out/util/macosVersion.d.ts +0 -3
- package/out/util/macosVersion.js +0 -36
- package/out/util/macosVersion.js.map +0 -1
- package/out/util/macroExpander.d.ts +0 -3
- package/out/util/macroExpander.js +0 -64
- package/out/util/macroExpander.js.map +0 -1
- package/out/util/normalizePackageData.d.ts +0 -1
- package/out/util/normalizePackageData.js +0 -328
- package/out/util/normalizePackageData.js.map +0 -1
- package/out/util/packageDependencies.d.ts +0 -6
- package/out/util/packageDependencies.js +0 -3
- package/out/util/packageDependencies.js.map +0 -1
- package/out/util/packageMetadata.d.ts +0 -1
- package/out/util/packageMetadata.js +0 -124
- package/out/util/packageMetadata.js.map +0 -1
- package/out/util/pathManager.d.ts +0 -3
- package/out/util/pathManager.js +0 -23
- package/out/util/pathManager.js.map +0 -1
- package/out/util/plist.d.ts +0 -7
- package/out/util/plist.js +0 -31
- package/out/util/plist.js.map +0 -1
- package/out/util/rebuild.d.ts +0 -2
- package/out/util/rebuild.js +0 -60
- package/out/util/rebuild.js.map +0 -1
- package/out/util/repositoryInfo.d.ts +0 -3
- package/out/util/repositoryInfo.js +0 -79
- package/out/util/repositoryInfo.js.map +0 -1
- package/out/util/resEdit.d.ts +0 -10
- package/out/util/resEdit.js +0 -49
- package/out/util/resEdit.js.map +0 -1
- package/out/util/resolve.d.ts +0 -2
- package/out/util/resolve.js +0 -59
- package/out/util/resolve.js.map +0 -1
- package/out/util/timer.d.ts +0 -11
- package/out/util/timer.js +0 -28
- package/out/util/timer.js.map +0 -1
- package/out/util/toolsetLock.d.ts +0 -1
- package/out/util/toolsetLock.js +0 -23
- package/out/util/toolsetLock.js.map +0 -1
- package/out/util/yarn.d.ts +0 -22
- package/out/util/yarn.js +0 -160
- package/out/util/yarn.js.map +0 -1
- package/out/version.d.ts +0 -1
- package/out/version.js +0 -5
- package/out/version.js.map +0 -1
- package/out/vm/MonoVm.d.ts +0 -8
- package/out/vm/MonoVm.js +0 -20
- package/out/vm/MonoVm.js.map +0 -1
- package/out/vm/ParallelsVm.d.ts +0 -23
- package/out/vm/ParallelsVm.js +0 -102
- package/out/vm/ParallelsVm.js.map +0 -1
- package/out/vm/PwshVm.d.ts +0 -6
- package/out/vm/PwshVm.js +0 -25
- package/out/vm/PwshVm.js.map +0 -1
- package/out/vm/WineVm.d.ts +0 -12
- package/out/vm/WineVm.js +0 -38
- package/out/vm/WineVm.js.map +0 -1
- package/out/vm/vm.d.ts +0 -14
- package/out/vm/vm.js +0 -88
- package/out/vm/vm.js.map +0 -1
- package/out/winPackager.d.ts +0 -29
- package/out/winPackager.js +0 -271
- package/out/winPackager.js.map +0 -1
- /package/{out → dist}/node-module-collector/types.js.map +0 -0
- /package/{out → dist}/options/FileAssociation.js.map +0 -0
- /package/helpers/{dynamic-import.js → dynamic-import.cjs} +0 -0
package/out/platformPackager.js
DELETED
|
@@ -1,714 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlatformPackager = void 0;
|
|
4
|
-
exports.isSafeGithubName = isSafeGithubName;
|
|
5
|
-
exports.computeSafeArtifactNameIfNeeded = computeSafeArtifactNameIfNeeded;
|
|
6
|
-
exports.normalizeExt = normalizeExt;
|
|
7
|
-
exports.chooseNotNull = chooseNotNull;
|
|
8
|
-
const dynamicImport_1 = require("./util/dynamicImport");
|
|
9
|
-
const builder_util_1 = require("builder-util");
|
|
10
|
-
const builder_util_runtime_1 = require("builder-util-runtime");
|
|
11
|
-
const promises_1 = require("fs/promises");
|
|
12
|
-
const lazy_val_1 = require("lazy-val");
|
|
13
|
-
const path = require("path");
|
|
14
|
-
const fs = require("fs/promises");
|
|
15
|
-
const os = require("os");
|
|
16
|
-
const appInfo_1 = require("./appInfo");
|
|
17
|
-
const asarFileChecker_1 = require("./asar/asarFileChecker");
|
|
18
|
-
const asarUtil_1 = require("./asar/asarUtil");
|
|
19
|
-
const integrity_1 = require("./asar/integrity");
|
|
20
|
-
const fileMatcher_1 = require("./fileMatcher");
|
|
21
|
-
const fileTransformer_1 = require("./fileTransformer");
|
|
22
|
-
const Framework_1 = require("./Framework");
|
|
23
|
-
const index_1 = require("./index");
|
|
24
|
-
const appFileCopier_1 = require("./util/appFileCopier");
|
|
25
|
-
const iconConverter_1 = require("./util/iconConverter");
|
|
26
|
-
const macroExpander_1 = require("./util/macroExpander");
|
|
27
|
-
const macosIconComposer_1 = require("./util/macosIconComposer");
|
|
28
|
-
class PlatformPackager {
|
|
29
|
-
get packagerOptions() {
|
|
30
|
-
return this.info.options;
|
|
31
|
-
}
|
|
32
|
-
get buildResourcesDir() {
|
|
33
|
-
return this.info.buildResourcesDir;
|
|
34
|
-
}
|
|
35
|
-
get projectDir() {
|
|
36
|
-
return this.info.projectDir;
|
|
37
|
-
}
|
|
38
|
-
get config() {
|
|
39
|
-
return this.info.config;
|
|
40
|
-
}
|
|
41
|
-
get resourceList() {
|
|
42
|
-
return this._resourceList.value;
|
|
43
|
-
}
|
|
44
|
-
constructor(info, platform) {
|
|
45
|
-
this.info = info;
|
|
46
|
-
this.platform = platform;
|
|
47
|
-
this._resourceList = new lazy_val_1.Lazy(() => (0, builder_util_1.orIfFileNotExist)((0, promises_1.readdir)(this.info.buildResourcesDir), []));
|
|
48
|
-
this.assetCatalogResults = new Map();
|
|
49
|
-
this.cachedIcnsFromIconFile = new Map();
|
|
50
|
-
this.platformSpecificBuildOptions = PlatformPackager.normalizePlatformSpecificBuildOptions(this.config[platform.buildConfigurationKey]);
|
|
51
|
-
this.appInfo = this.prepareAppInfo(info.appInfo);
|
|
52
|
-
}
|
|
53
|
-
get compression() {
|
|
54
|
-
const compression = this.platformSpecificBuildOptions.compression;
|
|
55
|
-
// explicitly set to null - request to use default value instead of parent (in the config)
|
|
56
|
-
if (compression === null) {
|
|
57
|
-
return "normal";
|
|
58
|
-
}
|
|
59
|
-
return compression || this.config.compression || "normal";
|
|
60
|
-
}
|
|
61
|
-
get debugLogger() {
|
|
62
|
-
return this.info.debugLogger;
|
|
63
|
-
}
|
|
64
|
-
// eslint-disable-next-line
|
|
65
|
-
prepareAppInfo(appInfo) {
|
|
66
|
-
return new appInfo_1.AppInfo(this.info, null, this.platformSpecificBuildOptions);
|
|
67
|
-
}
|
|
68
|
-
static normalizePlatformSpecificBuildOptions(options) {
|
|
69
|
-
return options == null ? Object.create(null) : options;
|
|
70
|
-
}
|
|
71
|
-
getCscPassword() {
|
|
72
|
-
const password = this.doGetCscPassword();
|
|
73
|
-
if ((0, builder_util_1.isEmptyOrSpaces)(password)) {
|
|
74
|
-
builder_util_1.log.info({ reason: "CSC_KEY_PASSWORD is not defined" }, "empty password will be used for code signing");
|
|
75
|
-
return "";
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return password.trim();
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
getCscLink(extraEnvName) {
|
|
82
|
-
// allow to specify as empty string
|
|
83
|
-
const envValue = chooseNotNull(extraEnvName == null ? null : process.env[extraEnvName], process.env.CSC_LINK);
|
|
84
|
-
return chooseNotNull(chooseNotNull(this.info.config.cscLink, this.platformSpecificBuildOptions.cscLink), envValue);
|
|
85
|
-
}
|
|
86
|
-
doGetCscPassword() {
|
|
87
|
-
// allow to specify as empty string
|
|
88
|
-
return chooseNotNull(chooseNotNull(this.info.config.cscKeyPassword, this.platformSpecificBuildOptions.cscKeyPassword), process.env.CSC_KEY_PASSWORD);
|
|
89
|
-
}
|
|
90
|
-
computeAppOutDir(outDir, arch) {
|
|
91
|
-
// codeql[js/shell-command-constructed-from-input] - prepackaged and outDir are validated via sanitizeDirPath in the Packager constructor
|
|
92
|
-
return path.resolve(this.packagerOptions.prepackaged ||
|
|
93
|
-
path.join(outDir, `${this.platform.buildConfigurationKey}${(0, builder_util_1.getArchSuffix)(arch, this.platformSpecificBuildOptions.defaultArch)}${this.platform === index_1.Platform.MAC ? "" : "-unpacked"}`));
|
|
94
|
-
}
|
|
95
|
-
async pack(outDir, arch, targets, taskManager) {
|
|
96
|
-
const appOutDir = this.computeAppOutDir(outDir, arch);
|
|
97
|
-
await this.doPack({
|
|
98
|
-
outDir,
|
|
99
|
-
appOutDir,
|
|
100
|
-
platformName: this.platform.nodeName,
|
|
101
|
-
arch,
|
|
102
|
-
platformSpecificBuildOptions: this.platformSpecificBuildOptions,
|
|
103
|
-
targets,
|
|
104
|
-
});
|
|
105
|
-
this.packageInDistributableFormat(appOutDir, arch, targets, taskManager);
|
|
106
|
-
}
|
|
107
|
-
packageInDistributableFormat(appOutDir, arch, targets, taskManager) {
|
|
108
|
-
if (targets.find(it => !it.isAsyncSupported) == null) {
|
|
109
|
-
PlatformPackager.buildAsyncTargets(targets, taskManager, appOutDir, arch);
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
taskManager.add(async () => {
|
|
113
|
-
// BluebirdPromise.map doesn't invoke target.build immediately, but for RemoteTarget it is very critical to call build() before finishBuild()
|
|
114
|
-
const subTaskManager = new builder_util_1.AsyncTaskManager(this.info.cancellationToken);
|
|
115
|
-
PlatformPackager.buildAsyncTargets(targets, subTaskManager, appOutDir, arch);
|
|
116
|
-
await subTaskManager.awaitTasks();
|
|
117
|
-
for (const target of targets) {
|
|
118
|
-
if (!target.isAsyncSupported && !this.info.cancellationToken.cancelled) {
|
|
119
|
-
await target.build(appOutDir, arch);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
static buildAsyncTargets(targets, taskManager, appOutDir, arch) {
|
|
125
|
-
for (const target of targets) {
|
|
126
|
-
if (target.isAsyncSupported) {
|
|
127
|
-
taskManager.addTask(target.build(appOutDir, arch));
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
getExtraFileMatchers(isResources, appOutDir, options) {
|
|
132
|
-
const outDir = this.platform === index_1.Platform.MAC ? path.join(appOutDir, `${this.appInfo.productFilename}.app`, "Contents") : appOutDir;
|
|
133
|
-
const base = isResources ? this.getResourcesDir(appOutDir) : outDir;
|
|
134
|
-
return (0, fileMatcher_1.getFileMatchers)(this.config, isResources ? "extraResources" : "extraFiles", base, options);
|
|
135
|
-
}
|
|
136
|
-
createGetFileMatchersOptions(outDir, arch, customBuildOptions) {
|
|
137
|
-
return {
|
|
138
|
-
macroExpander: it => this.expandMacro(it, arch == null ? null : builder_util_1.Arch[arch], { "/*": "{,/**/*}" }),
|
|
139
|
-
customBuildOptions,
|
|
140
|
-
globalOutDir: outDir,
|
|
141
|
-
defaultSrc: this.projectDir,
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
async doPack(packOptions) {
|
|
145
|
-
var _a;
|
|
146
|
-
if (this.packagerOptions.prepackaged != null) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
if (this.info.cancellationToken.cancelled) {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
// Due to node-gyp rewriting GYP_MSVS_VERSION when reused across the same session, we must reset the env var: https://github.com/electron-userland/electron-builder/issues/7256
|
|
153
|
-
delete process.env.GYP_MSVS_VERSION;
|
|
154
|
-
const { outDir, appOutDir, platformName, arch, platformSpecificBuildOptions, targets, options } = packOptions;
|
|
155
|
-
await this.info.emitBeforePack({
|
|
156
|
-
appOutDir,
|
|
157
|
-
outDir,
|
|
158
|
-
arch,
|
|
159
|
-
targets,
|
|
160
|
-
packager: this,
|
|
161
|
-
electronPlatformName: platformName,
|
|
162
|
-
});
|
|
163
|
-
await this.info.installAppDependencies(this.platform, arch);
|
|
164
|
-
if (this.info.cancellationToken.cancelled) {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
const framework = this.info.framework;
|
|
168
|
-
builder_util_1.log.info({
|
|
169
|
-
platform: platformName,
|
|
170
|
-
arch: builder_util_1.Arch[arch],
|
|
171
|
-
[`${framework.name}`]: framework.version,
|
|
172
|
-
appOutDir: builder_util_1.log.filePath(appOutDir),
|
|
173
|
-
}, `packaging`);
|
|
174
|
-
await framework.prepareApplicationStageDirectory({
|
|
175
|
-
packager: this,
|
|
176
|
-
appOutDir,
|
|
177
|
-
platformName,
|
|
178
|
-
arch: builder_util_1.Arch[arch],
|
|
179
|
-
version: framework.version,
|
|
180
|
-
});
|
|
181
|
-
await this.info.emitAfterExtract({
|
|
182
|
-
appOutDir,
|
|
183
|
-
outDir,
|
|
184
|
-
arch,
|
|
185
|
-
targets,
|
|
186
|
-
packager: this,
|
|
187
|
-
electronPlatformName: platformName,
|
|
188
|
-
});
|
|
189
|
-
const excludePatterns = [];
|
|
190
|
-
const computeParsedPatterns = (patterns) => {
|
|
191
|
-
if (patterns != null) {
|
|
192
|
-
for (const pattern of patterns) {
|
|
193
|
-
pattern.computeParsedPatterns(excludePatterns, this.info.projectDir);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
const getFileMatchersOptions = this.createGetFileMatchersOptions(outDir, arch, platformSpecificBuildOptions);
|
|
198
|
-
const macroExpander = getFileMatchersOptions.macroExpander;
|
|
199
|
-
const extraResourceMatchers = this.getExtraFileMatchers(true, appOutDir, getFileMatchersOptions);
|
|
200
|
-
computeParsedPatterns(extraResourceMatchers);
|
|
201
|
-
const extraFileMatchers = this.getExtraFileMatchers(false, appOutDir, getFileMatchersOptions);
|
|
202
|
-
computeParsedPatterns(extraFileMatchers);
|
|
203
|
-
const packContext = {
|
|
204
|
-
appOutDir,
|
|
205
|
-
outDir,
|
|
206
|
-
arch,
|
|
207
|
-
targets,
|
|
208
|
-
packager: this,
|
|
209
|
-
electronPlatformName: platformName,
|
|
210
|
-
};
|
|
211
|
-
const asarOptions = await this.computeAsarOptions(platformSpecificBuildOptions);
|
|
212
|
-
const resourcesPath = this.platform === index_1.Platform.MAC
|
|
213
|
-
? path.join(appOutDir, framework.distMacOsAppName, "Contents", "Resources")
|
|
214
|
-
: (0, Framework_1.isElectronBased)(framework)
|
|
215
|
-
? path.join(appOutDir, "resources")
|
|
216
|
-
: appOutDir;
|
|
217
|
-
const taskManager = new builder_util_1.AsyncTaskManager(this.info.cancellationToken);
|
|
218
|
-
this.copyAppFiles(taskManager, asarOptions, resourcesPath, path.join(resourcesPath, "app"), packContext, platformSpecificBuildOptions, excludePatterns, macroExpander);
|
|
219
|
-
await taskManager.awaitTasks();
|
|
220
|
-
if (this.info.cancellationToken.cancelled) {
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
if (framework.beforeCopyExtraFiles != null) {
|
|
224
|
-
const resourcesRelativePath = this.platform === index_1.Platform.MAC ? "Resources" : (0, Framework_1.isElectronBased)(framework) ? "resources" : "";
|
|
225
|
-
let asarIntegrity = null;
|
|
226
|
-
if (!(asarOptions == null || (options === null || options === void 0 ? void 0 : options.disableAsarIntegrity) || this.config.disableAsarIntegrity)) {
|
|
227
|
-
asarIntegrity = await (0, integrity_1.computeData)({ resourcesPath, resourcesRelativePath, resourcesDestinationPath: this.getResourcesDir(appOutDir), extraResourceMatchers });
|
|
228
|
-
}
|
|
229
|
-
await framework.beforeCopyExtraFiles({
|
|
230
|
-
packager: this,
|
|
231
|
-
appOutDir,
|
|
232
|
-
asarIntegrity,
|
|
233
|
-
platformName,
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
if (this.info.cancellationToken.cancelled) {
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
const transformerForExtraFiles = this.createTransformerForExtraFiles(packContext);
|
|
240
|
-
await (0, fileMatcher_1.copyFiles)(extraResourceMatchers, transformerForExtraFiles);
|
|
241
|
-
await (0, fileMatcher_1.copyFiles)(extraFileMatchers, transformerForExtraFiles);
|
|
242
|
-
if (this.info.cancellationToken.cancelled) {
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
await this.info.emitAfterPack(packContext);
|
|
246
|
-
if (framework.afterPack != null) {
|
|
247
|
-
await framework.afterPack(packContext);
|
|
248
|
-
}
|
|
249
|
-
const isAsar = asarOptions != null;
|
|
250
|
-
await this.sanityCheckPackage(appOutDir, isAsar, framework, !!this.config.disableSanityCheckAsar);
|
|
251
|
-
if (!(options === null || options === void 0 ? void 0 : options.disableFuses)) {
|
|
252
|
-
await this.doAddElectronFuses(packContext);
|
|
253
|
-
}
|
|
254
|
-
if ((_a = options === null || options === void 0 ? void 0 : options.sign) !== null && _a !== void 0 ? _a : true) {
|
|
255
|
-
await this.doSignAfterPack(outDir, appOutDir, platformName, arch, platformSpecificBuildOptions, targets);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
// the fuses MUST be flipped right before signing
|
|
259
|
-
async doAddElectronFuses(packContext) {
|
|
260
|
-
if (this.config.electronFuses == null) {
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
263
|
-
const fuseConfig = await this.generateFuseConfig(this.config.electronFuses);
|
|
264
|
-
await this.addElectronFuses(packContext, fuseConfig);
|
|
265
|
-
}
|
|
266
|
-
async generateFuseConfig(fuses) {
|
|
267
|
-
const { FuseVersion, FuseV1Options } = await (0, dynamicImport_1.dynamicImport)("@electron/fuses");
|
|
268
|
-
const config = {
|
|
269
|
-
version: FuseVersion.V1,
|
|
270
|
-
resetAdHocDarwinSignature: fuses.resetAdHocDarwinSignature,
|
|
271
|
-
};
|
|
272
|
-
// this is annoying, but we must filter out undefined entries because some older electron versions will receive `the fuse wire in this version of Electron is not long enough` even if entry is set undefined
|
|
273
|
-
if (fuses.runAsNode != null) {
|
|
274
|
-
config[FuseV1Options.RunAsNode] = fuses.runAsNode;
|
|
275
|
-
}
|
|
276
|
-
if (fuses.enableCookieEncryption != null) {
|
|
277
|
-
config[FuseV1Options.EnableCookieEncryption] = fuses.enableCookieEncryption;
|
|
278
|
-
}
|
|
279
|
-
if (fuses.enableNodeOptionsEnvironmentVariable != null) {
|
|
280
|
-
config[FuseV1Options.EnableNodeOptionsEnvironmentVariable] = fuses.enableNodeOptionsEnvironmentVariable;
|
|
281
|
-
}
|
|
282
|
-
if (fuses.enableNodeCliInspectArguments != null) {
|
|
283
|
-
config[FuseV1Options.EnableNodeCliInspectArguments] = fuses.enableNodeCliInspectArguments;
|
|
284
|
-
}
|
|
285
|
-
if (fuses.enableEmbeddedAsarIntegrityValidation != null) {
|
|
286
|
-
config[FuseV1Options.EnableEmbeddedAsarIntegrityValidation] = fuses.enableEmbeddedAsarIntegrityValidation;
|
|
287
|
-
}
|
|
288
|
-
if (fuses.onlyLoadAppFromAsar != null) {
|
|
289
|
-
config[FuseV1Options.OnlyLoadAppFromAsar] = fuses.onlyLoadAppFromAsar;
|
|
290
|
-
}
|
|
291
|
-
if (fuses.loadBrowserProcessSpecificV8Snapshot != null) {
|
|
292
|
-
config[FuseV1Options.LoadBrowserProcessSpecificV8Snapshot] = fuses.loadBrowserProcessSpecificV8Snapshot;
|
|
293
|
-
}
|
|
294
|
-
if (fuses.grantFileProtocolExtraPrivileges != null) {
|
|
295
|
-
config[FuseV1Options.GrantFileProtocolExtraPrivileges] = fuses.grantFileProtocolExtraPrivileges;
|
|
296
|
-
}
|
|
297
|
-
return config;
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* Use `AfterPackContext` here to keep available for public API
|
|
301
|
-
* @param {AfterPackContext} context
|
|
302
|
-
* @param {FuseConfig} fuses
|
|
303
|
-
*
|
|
304
|
-
* Can be used in `afterPack` hook for custom fuse logic like below. It's an alternative approach if one wants to override electron-builder's @electron/fuses version
|
|
305
|
-
* ```
|
|
306
|
-
* await context.packager.addElectronFuses(context, { ... })
|
|
307
|
-
* ```
|
|
308
|
-
*/
|
|
309
|
-
async addElectronFuses(context, fuses) {
|
|
310
|
-
const { appOutDir, electronPlatformName } = context;
|
|
311
|
-
const ext = {
|
|
312
|
-
darwin: ".app",
|
|
313
|
-
mas: ".app",
|
|
314
|
-
win32: ".exe",
|
|
315
|
-
linux: "",
|
|
316
|
-
}[electronPlatformName];
|
|
317
|
-
const executableName = this instanceof index_1.LinuxPackager ? this.executableName : this.appInfo.productFilename;
|
|
318
|
-
const electronBinaryPath = path.join(appOutDir, `${executableName}${ext}`);
|
|
319
|
-
builder_util_1.log.info({ electronPath: builder_util_1.log.filePath(electronBinaryPath) }, "executing @electron/fuses");
|
|
320
|
-
const { flipFuses } = await (0, dynamicImport_1.dynamicImport)("@electron/fuses");
|
|
321
|
-
return flipFuses(electronBinaryPath, fuses);
|
|
322
|
-
}
|
|
323
|
-
async doSignAfterPack(outDir, appOutDir, platformName, arch, platformSpecificBuildOptions, targets) {
|
|
324
|
-
const asarOptions = await this.computeAsarOptions(platformSpecificBuildOptions);
|
|
325
|
-
const isAsar = asarOptions != null;
|
|
326
|
-
const packContext = {
|
|
327
|
-
appOutDir,
|
|
328
|
-
outDir,
|
|
329
|
-
arch,
|
|
330
|
-
targets,
|
|
331
|
-
packager: this,
|
|
332
|
-
electronPlatformName: platformName,
|
|
333
|
-
};
|
|
334
|
-
const didSign = await this.signApp(packContext, isAsar);
|
|
335
|
-
if (didSign) {
|
|
336
|
-
await this.info.emitAfterSign(packContext);
|
|
337
|
-
}
|
|
338
|
-
else if (this.info.filterPackagerEventListeners("afterSign", "user").length) {
|
|
339
|
-
builder_util_1.log.warn(null, `skipping "afterSign" hook as no signing occurred, perhaps you intended "afterPack"?`);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
// eslint-disable-next-line
|
|
343
|
-
createTransformerForExtraFiles(packContext) {
|
|
344
|
-
return null;
|
|
345
|
-
}
|
|
346
|
-
copyAppFiles(taskManager, asarOptions, resourcePath, defaultDestination, packContext, platformSpecificBuildOptions, excludePatterns, macroExpander) {
|
|
347
|
-
const appDir = this.info.appDir;
|
|
348
|
-
const config = this.config;
|
|
349
|
-
const isElectronCompile = asarOptions != null && (0, fileTransformer_1.isElectronCompileUsed)(this.info);
|
|
350
|
-
const mainMatchers = (0, fileMatcher_1.getMainFileMatchers)(appDir, defaultDestination, macroExpander, platformSpecificBuildOptions, this, packContext.outDir, isElectronCompile);
|
|
351
|
-
if (excludePatterns.length > 0) {
|
|
352
|
-
for (const matcher of mainMatchers) {
|
|
353
|
-
matcher.excludePatterns = excludePatterns;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
const framework = this.info.framework;
|
|
357
|
-
const transformer = (0, fileTransformer_1.createTransformer)(appDir, config, isElectronCompile
|
|
358
|
-
? {
|
|
359
|
-
originalMain: this.info.metadata.main,
|
|
360
|
-
main: appFileCopier_1.ELECTRON_COMPILE_SHIM_FILENAME,
|
|
361
|
-
...config.extraMetadata,
|
|
362
|
-
}
|
|
363
|
-
: config.extraMetadata, framework.createTransformer == null ? null : framework.createTransformer());
|
|
364
|
-
const _computeFileSets = (matchers) => {
|
|
365
|
-
return (0, appFileCopier_1.computeFileSets)(matchers, this.info.isPrepackedAppAsar ? null : transformer, this, isElectronCompile).then(async (result) => {
|
|
366
|
-
if (!this.info.isPrepackedAppAsar && !this.info.areNodeModulesHandledExternally) {
|
|
367
|
-
const moduleFileMatcher = (0, fileMatcher_1.getNodeModuleFileMatcher)(appDir, defaultDestination, macroExpander, platformSpecificBuildOptions, this.info);
|
|
368
|
-
result = result.concat(await (0, appFileCopier_1.computeNodeModuleFileSets)(this, moduleFileMatcher));
|
|
369
|
-
}
|
|
370
|
-
return result.filter(it => it.files.length > 0);
|
|
371
|
-
});
|
|
372
|
-
};
|
|
373
|
-
if (this.info.isPrepackedAppAsar) {
|
|
374
|
-
taskManager.add(async () => {
|
|
375
|
-
const fileSets = await _computeFileSets([new fileMatcher_1.FileMatcher(appDir, resourcePath, macroExpander)]);
|
|
376
|
-
fileSets.forEach(it => taskManager.addTask((0, appFileCopier_1.copyAppFiles)(it, this.info, transformer)));
|
|
377
|
-
await taskManager.awaitTasks();
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
else if (asarOptions == null) {
|
|
381
|
-
// for ASAR all asar unpacked files will be extra transformed (e.g. sign of EXE and DLL) later,
|
|
382
|
-
// for prepackaged asar extra transformation not supported yet,
|
|
383
|
-
// so, extra transform if asar is disabled
|
|
384
|
-
const transformerForExtraFiles = this.createTransformerForExtraFiles(packContext);
|
|
385
|
-
const combinedTransformer = file => {
|
|
386
|
-
if (transformerForExtraFiles != null) {
|
|
387
|
-
const result = transformerForExtraFiles(file);
|
|
388
|
-
if (result != null) {
|
|
389
|
-
return result;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
return transformer(file);
|
|
393
|
-
};
|
|
394
|
-
taskManager.add(async () => {
|
|
395
|
-
const fileSets = await _computeFileSets(mainMatchers);
|
|
396
|
-
fileSets.forEach(it => taskManager.addTask((0, appFileCopier_1.copyAppFiles)(it, this.info, combinedTransformer)));
|
|
397
|
-
await taskManager.awaitTasks();
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
else {
|
|
401
|
-
const unpackPattern = (0, fileMatcher_1.getFileMatchers)(config, "asarUnpack", defaultDestination, {
|
|
402
|
-
macroExpander,
|
|
403
|
-
customBuildOptions: platformSpecificBuildOptions,
|
|
404
|
-
globalOutDir: packContext.outDir,
|
|
405
|
-
defaultSrc: appDir,
|
|
406
|
-
});
|
|
407
|
-
const fileMatcher = unpackPattern == null ? null : unpackPattern[0];
|
|
408
|
-
taskManager.addTask(_computeFileSets(mainMatchers).then(async (fileSets) => {
|
|
409
|
-
for (const fileSet of fileSets) {
|
|
410
|
-
await (0, appFileCopier_1.transformFiles)(transformer, fileSet);
|
|
411
|
-
}
|
|
412
|
-
await new asarUtil_1.AsarPackager(this, {
|
|
413
|
-
defaultDestination,
|
|
414
|
-
resourcePath,
|
|
415
|
-
options: asarOptions,
|
|
416
|
-
unpackPattern: fileMatcher === null || fileMatcher === void 0 ? void 0 : fileMatcher.createFilter(),
|
|
417
|
-
}).pack(fileSets);
|
|
418
|
-
}));
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
422
|
-
signApp(packContext, isAsar) {
|
|
423
|
-
return Promise.resolve(false);
|
|
424
|
-
}
|
|
425
|
-
getIconPath() {
|
|
426
|
-
return Promise.resolve(null);
|
|
427
|
-
}
|
|
428
|
-
async computeAsarOptions(customBuildOptions) {
|
|
429
|
-
if (!(0, Framework_1.isElectronBased)(this.info.framework)) {
|
|
430
|
-
return null;
|
|
431
|
-
}
|
|
432
|
-
function errorMessage(name) {
|
|
433
|
-
return `${name} is deprecated is deprecated and not supported — please use asarUnpack`;
|
|
434
|
-
}
|
|
435
|
-
const buildMetadata = this.config;
|
|
436
|
-
if (buildMetadata["asar-unpack"] != null) {
|
|
437
|
-
throw new Error(errorMessage("asar-unpack"));
|
|
438
|
-
}
|
|
439
|
-
if (buildMetadata["asar-unpack-dir"] != null) {
|
|
440
|
-
throw new Error(errorMessage("asar-unpack-dir"));
|
|
441
|
-
}
|
|
442
|
-
const platformSpecific = customBuildOptions.asar;
|
|
443
|
-
const result = platformSpecific == null ? this.config.asar : platformSpecific;
|
|
444
|
-
if (result === false) {
|
|
445
|
-
const appAsarStat = await (0, builder_util_1.statOrNull)(path.join(this.info.appDir, "app.asar"));
|
|
446
|
-
//noinspection ES6MissingAwait
|
|
447
|
-
if (appAsarStat == null || !appAsarStat.isFile()) {
|
|
448
|
-
builder_util_1.log.warn({
|
|
449
|
-
solution: "enable asar and use asarUnpack to unpack files that must be externally available",
|
|
450
|
-
}, "asar usage is disabled — this is strongly not recommended");
|
|
451
|
-
}
|
|
452
|
-
return null;
|
|
453
|
-
}
|
|
454
|
-
if (result == null || result === true) {
|
|
455
|
-
return {};
|
|
456
|
-
}
|
|
457
|
-
for (const name of ["unpackDir", "unpack"]) {
|
|
458
|
-
if (result[name] != null) {
|
|
459
|
-
throw new Error(errorMessage(`asar.${name}`));
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
return (0, builder_util_runtime_1.deepAssign)({}, result);
|
|
463
|
-
}
|
|
464
|
-
getElectronSrcDir(dist) {
|
|
465
|
-
return path.resolve(this.projectDir, dist);
|
|
466
|
-
}
|
|
467
|
-
getElectronDestinationDir(appOutDir) {
|
|
468
|
-
return appOutDir;
|
|
469
|
-
}
|
|
470
|
-
getResourcesDir(appOutDir) {
|
|
471
|
-
if (this.platform === index_1.Platform.MAC) {
|
|
472
|
-
return this.getMacOsResourcesDir(appOutDir);
|
|
473
|
-
}
|
|
474
|
-
if ((0, Framework_1.isElectronBased)(this.info.framework)) {
|
|
475
|
-
return path.join(appOutDir, "resources");
|
|
476
|
-
}
|
|
477
|
-
return appOutDir;
|
|
478
|
-
}
|
|
479
|
-
getMacOsElectronFrameworkResourcesDir(appOutDir) {
|
|
480
|
-
const electronFrameworkName = path.basename(this.info.framework.distMacOsAppName, ".app") + " " + "Framework.framework";
|
|
481
|
-
return path.join(appOutDir, `${this.appInfo.productFilename}.app`, "Contents", "Frameworks", electronFrameworkName, "Versions", "A", "Resources");
|
|
482
|
-
}
|
|
483
|
-
getMacOsResourcesDir(appOutDir) {
|
|
484
|
-
return path.join(appOutDir, `${this.appInfo.productFilename}.app`, "Contents", "Resources");
|
|
485
|
-
}
|
|
486
|
-
async checkFileInPackage(resourcesDir, file, messagePrefix, isAsar, disableSanityCheckAsar) {
|
|
487
|
-
if (isAsar && disableSanityCheckAsar) {
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
const relativeFile = path.relative(this.info.appDir, path.resolve(this.info.appDir, file));
|
|
491
|
-
if (isAsar) {
|
|
492
|
-
await (0, asarFileChecker_1.checkFileInArchive)(path.join(resourcesDir, "app.asar"), relativeFile, messagePrefix);
|
|
493
|
-
return;
|
|
494
|
-
}
|
|
495
|
-
const pathParsed = path.parse(file);
|
|
496
|
-
// Even when packaging to asar is disabled, it does not imply that the main file can not be inside an .asar archive.
|
|
497
|
-
// This may occur when the packaging is done manually before processing with electron-builder.
|
|
498
|
-
if (pathParsed.dir.includes(".asar")) {
|
|
499
|
-
// The path needs to be split to the part with an asar archive which acts like a directory and the part with
|
|
500
|
-
// the path to main file itself. (e.g. path/arch.asar/dir/index.js -> path/arch.asar, dir/index.js)
|
|
501
|
-
// noinspection TypeScriptValidateJSTypes
|
|
502
|
-
const pathSplit = pathParsed.dir.split(path.sep);
|
|
503
|
-
let partWithAsarIndex = 0;
|
|
504
|
-
pathSplit.some((pathPart, index) => {
|
|
505
|
-
partWithAsarIndex = index;
|
|
506
|
-
return pathPart.endsWith(".asar");
|
|
507
|
-
});
|
|
508
|
-
const asarPath = path.join(...pathSplit.slice(0, partWithAsarIndex + 1));
|
|
509
|
-
let mainPath = pathSplit.length > partWithAsarIndex + 1 ? path.join.apply(pathSplit.slice(partWithAsarIndex + 1)) : "";
|
|
510
|
-
mainPath += path.join(mainPath, pathParsed.base);
|
|
511
|
-
await (0, asarFileChecker_1.checkFileInArchive)(path.join(resourcesDir, "app", asarPath), mainPath, messagePrefix);
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
const fullPath = path.join(resourcesDir, "app", relativeFile);
|
|
515
|
-
const outStat = await (0, builder_util_1.statOrNull)(fullPath);
|
|
516
|
-
if (outStat == null) {
|
|
517
|
-
throw new Error(`${messagePrefix} "${fullPath}" does not exist. Seems like a wrong configuration.`);
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
//noinspection ES6MissingAwait
|
|
521
|
-
if (!outStat.isFile()) {
|
|
522
|
-
throw new Error(`${messagePrefix} "${fullPath}" is not a file. Seems like a wrong configuration.`);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
async sanityCheckPackage(appOutDir, isAsar, framework, disableSanityCheckAsar) {
|
|
528
|
-
const outStat = await (0, builder_util_1.statOrNull)(appOutDir);
|
|
529
|
-
if (outStat == null) {
|
|
530
|
-
throw new Error(`Output directory "${appOutDir}" does not exist. Seems like a wrong configuration.`);
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
//noinspection ES6MissingAwait
|
|
534
|
-
if (!outStat.isDirectory()) {
|
|
535
|
-
throw new Error(`Output directory "${appOutDir}" is not a directory. Seems like a wrong configuration.`);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
const resourcesDir = this.getResourcesDir(appOutDir);
|
|
539
|
-
const mainFile = (framework.getMainFile == null ? null : framework.getMainFile(this.platform)) || this.info.metadata.main || "index.js";
|
|
540
|
-
await this.checkFileInPackage(resourcesDir, mainFile, "Application entry file", isAsar, disableSanityCheckAsar);
|
|
541
|
-
await this.checkFileInPackage(resourcesDir, "package.json", "Application", isAsar, disableSanityCheckAsar);
|
|
542
|
-
}
|
|
543
|
-
// tslint:disable-next-line:no-invalid-template-strings
|
|
544
|
-
computeSafeArtifactName(suggestedName, ext, arch, skipDefaultArch = true, defaultArch, safePattern = "${name}-${version}-${arch}.${ext}") {
|
|
545
|
-
return computeSafeArtifactNameIfNeeded(suggestedName, () => this.computeArtifactName(safePattern, ext, skipDefaultArch && arch === (0, builder_util_1.defaultArchFromString)(defaultArch) ? null : arch));
|
|
546
|
-
}
|
|
547
|
-
expandArtifactNamePattern(targetSpecificOptions, ext, arch, defaultPattern, skipDefaultArch = true, defaultArch) {
|
|
548
|
-
const { pattern, isUserForced } = this.artifactPatternConfig(targetSpecificOptions, defaultPattern);
|
|
549
|
-
return this.computeArtifactName(pattern, ext, !isUserForced && skipDefaultArch && arch === (0, builder_util_1.defaultArchFromString)(defaultArch) ? null : arch);
|
|
550
|
-
}
|
|
551
|
-
artifactPatternConfig(targetSpecificOptions, defaultPattern) {
|
|
552
|
-
const userSpecifiedPattern = (targetSpecificOptions === null || targetSpecificOptions === void 0 ? void 0 : targetSpecificOptions.artifactName) || this.platformSpecificBuildOptions.artifactName || this.config.artifactName;
|
|
553
|
-
return {
|
|
554
|
-
isUserForced: !!userSpecifiedPattern,
|
|
555
|
-
pattern: userSpecifiedPattern || defaultPattern || "${productName}-${version}-${arch}.${ext}",
|
|
556
|
-
};
|
|
557
|
-
}
|
|
558
|
-
expandArtifactBeautyNamePattern(targetSpecificOptions, ext, arch) {
|
|
559
|
-
// tslint:disable-next-line:no-invalid-template-strings
|
|
560
|
-
return this.expandArtifactNamePattern(targetSpecificOptions, ext, arch, "${productName} ${version} ${arch}.${ext}", true);
|
|
561
|
-
}
|
|
562
|
-
computeArtifactName(pattern, ext, arch) {
|
|
563
|
-
const archName = arch == null ? null : (0, builder_util_1.getArtifactArchName)(arch, ext);
|
|
564
|
-
return this.expandMacro(pattern, archName, {
|
|
565
|
-
ext,
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
expandMacro(pattern, arch, extra = {}, isProductNameSanitized = true) {
|
|
569
|
-
return (0, macroExpander_1.expandMacro)(pattern, arch, this.appInfo, { os: this.platform.buildConfigurationKey, ...extra }, isProductNameSanitized);
|
|
570
|
-
}
|
|
571
|
-
generateName2(ext, classifier, deployment) {
|
|
572
|
-
const dotExt = ext == null ? "" : `.${ext}`;
|
|
573
|
-
const separator = ext === "deb" ? "_" : "-";
|
|
574
|
-
return `${deployment ? this.appInfo.name : this.appInfo.productFilename}${separator}${this.appInfo.version}${classifier == null ? "" : `${separator}${classifier}`}${dotExt}`;
|
|
575
|
-
}
|
|
576
|
-
getTempFile(suffix) {
|
|
577
|
-
return this.info.tempDirManager.getTempFile({ suffix });
|
|
578
|
-
}
|
|
579
|
-
get fileAssociations() {
|
|
580
|
-
return (0, builder_util_1.asArray)(this.config.fileAssociations).concat((0, builder_util_1.asArray)(this.platformSpecificBuildOptions.fileAssociations));
|
|
581
|
-
}
|
|
582
|
-
async getResource(custom, ...names) {
|
|
583
|
-
const resourcesDir = this.info.buildResourcesDir;
|
|
584
|
-
if (custom === undefined) {
|
|
585
|
-
const resourceList = await this.resourceList;
|
|
586
|
-
for (const name of names) {
|
|
587
|
-
if (resourceList.includes(name)) {
|
|
588
|
-
// sanitizeDirPath with resourcesDir base enforces containment — CodeQL recognises the startsWith check inside as a path-traversal sanitizer
|
|
589
|
-
return (0, builder_util_1.sanitizeDirPath)(path.join(resourcesDir, path.basename(name)), resourcesDir);
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
else if (custom != null && !(0, builder_util_1.isEmptyOrSpaces)(custom)) {
|
|
594
|
-
const resourceList = await this.resourceList;
|
|
595
|
-
if (resourceList.includes(custom)) {
|
|
596
|
-
return (0, builder_util_1.sanitizeDirPath)(path.join(resourcesDir, path.basename(custom)), resourcesDir);
|
|
597
|
-
}
|
|
598
|
-
// codeql[js/shell-command-constructed-from-input] - intentional: custom may be an absolute path outside the build resources dir; existence is verified below via statOrNull
|
|
599
|
-
let p = path.resolve(resourcesDir, custom);
|
|
600
|
-
if ((await (0, builder_util_1.statOrNull)(p)) == null) {
|
|
601
|
-
p = path.resolve(this.projectDir, custom);
|
|
602
|
-
if ((await (0, builder_util_1.statOrNull)(p)) == null) {
|
|
603
|
-
throw new builder_util_1.InvalidConfigurationError(`cannot find specified resource "${custom}", nor relative to "${resourcesDir}", neither relative to project dir ("${this.projectDir}")`);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
return p;
|
|
607
|
-
}
|
|
608
|
-
return null;
|
|
609
|
-
}
|
|
610
|
-
get forceCodeSigning() {
|
|
611
|
-
const forceCodeSigningPlatform = this.platformSpecificBuildOptions.forceCodeSigning;
|
|
612
|
-
return (forceCodeSigningPlatform == null ? this.config.forceCodeSigning : forceCodeSigningPlatform) || false;
|
|
613
|
-
}
|
|
614
|
-
generateAssetCatalogData(iconPath) {
|
|
615
|
-
// Cache results
|
|
616
|
-
const cachedPromise = this.assetCatalogResults.get(iconPath);
|
|
617
|
-
if (cachedPromise) {
|
|
618
|
-
return cachedPromise;
|
|
619
|
-
}
|
|
620
|
-
const promise = (0, macosIconComposer_1.generateAssetCatalogForIcon)(iconPath);
|
|
621
|
-
this.assetCatalogResults.set(iconPath, promise);
|
|
622
|
-
return promise;
|
|
623
|
-
}
|
|
624
|
-
async generateIcnsFromIcon(iconPath) {
|
|
625
|
-
const cachedPromise = this.cachedIcnsFromIconFile.get(iconPath);
|
|
626
|
-
if (cachedPromise) {
|
|
627
|
-
return cachedPromise;
|
|
628
|
-
}
|
|
629
|
-
const runner = async () => {
|
|
630
|
-
const { icnsFile } = await this.generateAssetCatalogData(iconPath);
|
|
631
|
-
// Generate icns file
|
|
632
|
-
const tempDir = await fs.mkdtemp(path.resolve(os.tmpdir(), "icon-compile-"));
|
|
633
|
-
const tempIcnsPath = path.resolve(tempDir, "Icon.icns");
|
|
634
|
-
await fs.writeFile(tempIcnsPath, icnsFile);
|
|
635
|
-
return tempIcnsPath;
|
|
636
|
-
};
|
|
637
|
-
const promise = runner();
|
|
638
|
-
this.cachedIcnsFromIconFile.set(iconPath, promise);
|
|
639
|
-
return promise;
|
|
640
|
-
}
|
|
641
|
-
async getOrConvertIcon(format) {
|
|
642
|
-
if (format === "icns") {
|
|
643
|
-
const configuredIcon = this.platformSpecificBuildOptions.icon;
|
|
644
|
-
// If it is a .icon file, generate the icns file and return the path to the icns file
|
|
645
|
-
if (configuredIcon === null || configuredIcon === void 0 ? void 0 : configuredIcon.endsWith(".icon")) {
|
|
646
|
-
const iconPath = await this.getResource(configuredIcon);
|
|
647
|
-
if (iconPath) {
|
|
648
|
-
return this.generateIcnsFromIcon(iconPath);
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
const result = await this.resolveIcon((0, builder_util_1.asArray)(this.platformSpecificBuildOptions.icon || this.config.icon), [], format);
|
|
653
|
-
if (result.length === 0) {
|
|
654
|
-
const framework = this.info.framework;
|
|
655
|
-
if (framework.getDefaultIcon != null) {
|
|
656
|
-
return framework.getDefaultIcon(this.platform);
|
|
657
|
-
}
|
|
658
|
-
builder_util_1.log.warn({ reason: "application icon is not set" }, `default ${capitalizeFirstLetter(framework.name)} icon is used`);
|
|
659
|
-
return this.getDefaultFrameworkIcon();
|
|
660
|
-
}
|
|
661
|
-
else {
|
|
662
|
-
return result[0].file;
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
getDefaultFrameworkIcon() {
|
|
666
|
-
const framework = this.info.framework;
|
|
667
|
-
return framework.getDefaultIcon == null ? null : framework.getDefaultIcon(this.platform);
|
|
668
|
-
}
|
|
669
|
-
// convert if need, validate size (it is a reason why tool is called even if file has target extension (already specified as foo.icns for example))
|
|
670
|
-
async resolveIcon(sources, fallbackSources, outputFormat) {
|
|
671
|
-
const output = this.expandMacro(this.config.directories.output);
|
|
672
|
-
const outDir = (0, builder_util_1.sanitizeDirPath)(path.resolve(this.projectDir, output, `.icon-${outputFormat}`));
|
|
673
|
-
const roots = [this.buildResourcesDir, this.projectDir];
|
|
674
|
-
const filteredSources = sources.filter(s => !s.endsWith(".icon"));
|
|
675
|
-
const filteredFallbacks = fallbackSources.filter(s => !s.endsWith(".icon"));
|
|
676
|
-
const result = await (0, iconConverter_1.convertIcon)({ sources: filteredSources, fallbackSources: filteredFallbacks, roots, format: outputFormat, outDir });
|
|
677
|
-
if (result.error != null) {
|
|
678
|
-
throw new builder_util_1.InvalidConfigurationError(result.error, result.errorCode);
|
|
679
|
-
}
|
|
680
|
-
if (result.isFallback) {
|
|
681
|
-
builder_util_1.log.warn({ reason: "application icon is not set" }, `default ${capitalizeFirstLetter(this.info.framework.name)} icon is used`);
|
|
682
|
-
}
|
|
683
|
-
return result.icons;
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
exports.PlatformPackager = PlatformPackager;
|
|
687
|
-
function isSafeGithubName(name) {
|
|
688
|
-
return /^[0-9A-Za-z._-]+$/.test(name);
|
|
689
|
-
}
|
|
690
|
-
function computeSafeArtifactNameIfNeeded(suggestedName, safeNameProducer) {
|
|
691
|
-
// GitHub only allows the listed characters in file names.
|
|
692
|
-
if (suggestedName != null) {
|
|
693
|
-
if (isSafeGithubName(suggestedName)) {
|
|
694
|
-
return null;
|
|
695
|
-
}
|
|
696
|
-
// prefer to use suggested name - so, if space is the only problem, just replace only space to dash
|
|
697
|
-
suggestedName = suggestedName.replace(/ /g, "-");
|
|
698
|
-
if (isSafeGithubName(suggestedName)) {
|
|
699
|
-
return suggestedName;
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
return safeNameProducer();
|
|
703
|
-
}
|
|
704
|
-
// remove leading dot
|
|
705
|
-
function normalizeExt(ext) {
|
|
706
|
-
return ext.startsWith(".") ? ext.substring(1) : ext;
|
|
707
|
-
}
|
|
708
|
-
function chooseNotNull(v1, v2) {
|
|
709
|
-
return v1 == null ? v2 : v1;
|
|
710
|
-
}
|
|
711
|
-
function capitalizeFirstLetter(text) {
|
|
712
|
-
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
713
|
-
}
|
|
714
|
-
//# sourceMappingURL=platformPackager.js.map
|