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
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createUpdateInfoTasks = createUpdateInfoTasks;
|
|
4
|
-
exports.writeUpdateInfoFiles = writeUpdateInfoFiles;
|
|
5
|
-
const tiny_async_pool_1 = require("tiny-async-pool");
|
|
6
|
-
const builder_util_1 = require("builder-util");
|
|
7
|
-
const fs_extra_1 = require("fs-extra");
|
|
8
|
-
const lazy_val_1 = require("lazy-val");
|
|
9
|
-
const path = require("path");
|
|
10
|
-
const semver = require("semver");
|
|
11
|
-
const core_1 = require("../core");
|
|
12
|
-
const hash_1 = require("../util/hash");
|
|
13
|
-
const PublishManager_1 = require("./PublishManager");
|
|
14
|
-
async function getReleaseInfo(packager) {
|
|
15
|
-
const releaseInfo = { ...(packager.platformSpecificBuildOptions.releaseInfo || packager.config.releaseInfo) };
|
|
16
|
-
if (releaseInfo.releaseNotes == null) {
|
|
17
|
-
const releaseNotesFile = await packager.getResource(releaseInfo.releaseNotesFile, `release-notes-${packager.platform.buildConfigurationKey}.md`, `release-notes-${packager.platform.name}.md`, `release-notes-${packager.platform.nodeName}.md`, "release-notes.md");
|
|
18
|
-
const releaseNotes = releaseNotesFile == null ? null : await (0, fs_extra_1.readFile)(releaseNotesFile, "utf-8");
|
|
19
|
-
// to avoid undefined in the file, check for null
|
|
20
|
-
if (releaseNotes != null) {
|
|
21
|
-
releaseInfo.releaseNotes = releaseNotes;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
delete releaseInfo.releaseNotesFile;
|
|
25
|
-
return releaseInfo;
|
|
26
|
-
}
|
|
27
|
-
function isGenerateUpdatesFilesForAllChannels(packager) {
|
|
28
|
-
const value = packager.platformSpecificBuildOptions.generateUpdatesFilesForAllChannels;
|
|
29
|
-
return value == null ? packager.config.generateUpdatesFilesForAllChannels : value;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
if this is an "alpha" version, we need to generate only the "alpha" .yml file
|
|
33
|
-
if this is a "beta" version, we need to generate both the "alpha" and "beta" .yml file
|
|
34
|
-
if this is a "stable" version, we need to generate all the "alpha", "beta" and "stable" .yml file
|
|
35
|
-
*/
|
|
36
|
-
function computeChannelNames(packager, publishConfig) {
|
|
37
|
-
const currentChannel = publishConfig.channel || "latest";
|
|
38
|
-
// for GitHub should be pre-release way be used
|
|
39
|
-
if (currentChannel === "alpha" || publishConfig.provider === "github" || !isGenerateUpdatesFilesForAllChannels(packager)) {
|
|
40
|
-
return [currentChannel];
|
|
41
|
-
}
|
|
42
|
-
switch (currentChannel) {
|
|
43
|
-
case "beta":
|
|
44
|
-
return [currentChannel, "alpha"];
|
|
45
|
-
case "latest":
|
|
46
|
-
return [currentChannel, "alpha", "beta"];
|
|
47
|
-
default:
|
|
48
|
-
return [currentChannel];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function getUpdateInfoFileName(channel, packager, arch) {
|
|
52
|
-
const osSuffix = packager.platform === core_1.Platform.WINDOWS ? "" : `-${packager.platform.buildConfigurationKey}`;
|
|
53
|
-
return `${channel}${osSuffix}${getArchPrefixForUpdateFile(arch, packager)}.yml`;
|
|
54
|
-
}
|
|
55
|
-
function getArchPrefixForUpdateFile(arch, packager) {
|
|
56
|
-
if (arch == null || arch === builder_util_1.Arch.x64 || packager.platform !== core_1.Platform.LINUX) {
|
|
57
|
-
return "";
|
|
58
|
-
}
|
|
59
|
-
return arch === builder_util_1.Arch.armv7l ? "-arm" : `-${builder_util_1.Arch[arch]}`;
|
|
60
|
-
}
|
|
61
|
-
function computeIsisElectronUpdater1xCompatibility(updaterCompatibility, publishConfiguration, packager) {
|
|
62
|
-
if (updaterCompatibility != null) {
|
|
63
|
-
return semver.satisfies("1.0.0", updaterCompatibility);
|
|
64
|
-
}
|
|
65
|
-
// spaces is a new publish provider, no need to keep backward compatibility
|
|
66
|
-
if (publishConfiguration.provider === "spaces") {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
const updaterVersion = packager.metadata.dependencies == null ? null : packager.metadata.dependencies["electron-updater"];
|
|
70
|
-
return updaterVersion == null || semver.lt(updaterVersion, "4.0.0");
|
|
71
|
-
}
|
|
72
|
-
async function createUpdateInfoTasks(event, _publishConfigs) {
|
|
73
|
-
const packager = event.packager;
|
|
74
|
-
const publishConfigs = await (0, PublishManager_1.getPublishConfigsForUpdateInfo)(packager, _publishConfigs, event.arch);
|
|
75
|
-
if (publishConfigs == null || publishConfigs.length === 0) {
|
|
76
|
-
return [];
|
|
77
|
-
}
|
|
78
|
-
const outDir = event.target.outDir;
|
|
79
|
-
const version = packager.appInfo.version;
|
|
80
|
-
const sha2 = new lazy_val_1.Lazy(() => (0, hash_1.hashFile)(event.file, "sha256", "hex"));
|
|
81
|
-
const isMac = packager.platform === core_1.Platform.MAC;
|
|
82
|
-
const createdFiles = new Set();
|
|
83
|
-
const sharedInfo = await createUpdateInfo(version, event, await getReleaseInfo(packager));
|
|
84
|
-
const tasks = [];
|
|
85
|
-
const electronUpdaterCompatibility = packager.platformSpecificBuildOptions.electronUpdaterCompatibility || packager.config.electronUpdaterCompatibility || ">=2.15";
|
|
86
|
-
for (const publishConfiguration of publishConfigs) {
|
|
87
|
-
let dir = outDir;
|
|
88
|
-
if (publishConfigs.length > 1 && publishConfiguration !== publishConfigs[0]) {
|
|
89
|
-
dir = path.join(outDir, publishConfiguration.provider);
|
|
90
|
-
}
|
|
91
|
-
let isElectronUpdater1xCompatibility = computeIsisElectronUpdater1xCompatibility(electronUpdaterCompatibility, publishConfiguration, packager.info);
|
|
92
|
-
let info = sharedInfo;
|
|
93
|
-
// noinspection JSDeprecatedSymbols
|
|
94
|
-
if (isElectronUpdater1xCompatibility && packager.platform === core_1.Platform.WINDOWS) {
|
|
95
|
-
info = {
|
|
96
|
-
...info,
|
|
97
|
-
};
|
|
98
|
-
info.sha2 = await sha2.value;
|
|
99
|
-
}
|
|
100
|
-
if (event.safeArtifactName != null && publishConfiguration.provider === "github") {
|
|
101
|
-
const newFiles = info.files.slice();
|
|
102
|
-
newFiles[0].url = event.safeArtifactName;
|
|
103
|
-
info = {
|
|
104
|
-
...info,
|
|
105
|
-
files: newFiles,
|
|
106
|
-
path: event.safeArtifactName,
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
for (const channel of computeChannelNames(packager, publishConfiguration)) {
|
|
110
|
-
if (isMac && isElectronUpdater1xCompatibility && event.file.endsWith(".zip")) {
|
|
111
|
-
// write only for first channel (generateUpdatesFilesForAllChannels is a new functionality, no need to generate old mac update info file)
|
|
112
|
-
isElectronUpdater1xCompatibility = false;
|
|
113
|
-
await writeOldMacInfo(publishConfiguration, outDir, dir, channel, createdFiles, version, packager);
|
|
114
|
-
}
|
|
115
|
-
const updateInfoFile = path.join(dir, getUpdateInfoFileName(channel, packager, event.arch));
|
|
116
|
-
if (createdFiles.has(updateInfoFile)) {
|
|
117
|
-
continue;
|
|
118
|
-
}
|
|
119
|
-
createdFiles.add(updateInfoFile);
|
|
120
|
-
// artifact should be uploaded only to designated publish provider
|
|
121
|
-
tasks.push({
|
|
122
|
-
file: updateInfoFile,
|
|
123
|
-
info,
|
|
124
|
-
publishConfiguration,
|
|
125
|
-
packager,
|
|
126
|
-
arch: event.arch,
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return tasks;
|
|
131
|
-
}
|
|
132
|
-
async function createUpdateInfo(version, event, releaseInfo) {
|
|
133
|
-
const customUpdateInfo = event.updateInfo;
|
|
134
|
-
const url = path.basename(event.file);
|
|
135
|
-
const sha512 = (customUpdateInfo == null ? null : customUpdateInfo.sha512) || (await (0, hash_1.hashFile)(event.file));
|
|
136
|
-
const files = [{ url, sha512 }];
|
|
137
|
-
const result = {
|
|
138
|
-
// @ts-ignore
|
|
139
|
-
version,
|
|
140
|
-
// @ts-ignore
|
|
141
|
-
files,
|
|
142
|
-
// @ts-ignore
|
|
143
|
-
path: url /* backward compatibility, electron-updater 1.x - electron-updater 2.15.0 */,
|
|
144
|
-
// @ts-ignore
|
|
145
|
-
sha512 /* backward compatibility, electron-updater 1.x - electron-updater 2.15.0 */,
|
|
146
|
-
...releaseInfo,
|
|
147
|
-
};
|
|
148
|
-
if (customUpdateInfo != null) {
|
|
149
|
-
// file info or nsis web installer packages info
|
|
150
|
-
Object.assign("sha512" in customUpdateInfo ? files[0] : result, customUpdateInfo);
|
|
151
|
-
}
|
|
152
|
-
return result;
|
|
153
|
-
}
|
|
154
|
-
async function writeUpdateInfoFiles(updateInfoFileTasks, packager) {
|
|
155
|
-
// zip must be first and zip info must be used for old path/sha512 properties in the update info
|
|
156
|
-
// universal installer (arch === null) must precede arch-specific ones so path:/sha512: point to the right artifact
|
|
157
|
-
updateInfoFileTasks.sort((a, b) => {
|
|
158
|
-
var _a, _b;
|
|
159
|
-
const zipDiff = (a.info.files[0].url.endsWith(".zip") ? 0 : 100) - (b.info.files[0].url.endsWith(".zip") ? 0 : 100);
|
|
160
|
-
if (zipDiff !== 0) {
|
|
161
|
-
return zipDiff;
|
|
162
|
-
}
|
|
163
|
-
// universal (arch === null) before arch-specific; tie-break by Arch enum value for full determinism
|
|
164
|
-
// undefined arch (external callers predating this field) treated as arch-specific via strict === null check
|
|
165
|
-
const aArch = a.arch === null ? -1 : ((_a = a.arch) !== null && _a !== void 0 ? _a : Number.MAX_SAFE_INTEGER);
|
|
166
|
-
const bArch = b.arch === null ? -1 : ((_b = b.arch) !== null && _b !== void 0 ? _b : Number.MAX_SAFE_INTEGER);
|
|
167
|
-
return aArch - bArch;
|
|
168
|
-
});
|
|
169
|
-
const updateChannelFileToInfo = new Map();
|
|
170
|
-
for (const task of updateInfoFileTasks) {
|
|
171
|
-
// https://github.com/electron-userland/electron-builder/pull/2994
|
|
172
|
-
const key = `${task.file}@${(0, builder_util_1.safeStringifyJson)(task.publishConfiguration, new Set(["releaseType"]))}`;
|
|
173
|
-
const existingTask = updateChannelFileToInfo.get(key);
|
|
174
|
-
if (existingTask == null) {
|
|
175
|
-
updateChannelFileToInfo.set(key, task);
|
|
176
|
-
continue;
|
|
177
|
-
}
|
|
178
|
-
existingTask.info.files.push(...task.info.files);
|
|
179
|
-
}
|
|
180
|
-
const releaseDate = new Date().toISOString();
|
|
181
|
-
const concurrency = 4;
|
|
182
|
-
await (0, tiny_async_pool_1.default)(concurrency, Array.from(updateChannelFileToInfo.values()), async (task) => {
|
|
183
|
-
const publishConfig = task.publishConfiguration;
|
|
184
|
-
if (publishConfig.publishAutoUpdate === false) {
|
|
185
|
-
builder_util_1.log.debug({
|
|
186
|
-
provider: publishConfig.provider,
|
|
187
|
-
reason: "publishAutoUpdate is set to false",
|
|
188
|
-
}, "auto update metadata file not published");
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
if (task.info.releaseDate == null) {
|
|
192
|
-
task.info.releaseDate = releaseDate;
|
|
193
|
-
}
|
|
194
|
-
const fileContent = Buffer.from((0, builder_util_1.serializeToYaml)(task.info, false, true));
|
|
195
|
-
await (0, fs_extra_1.outputFile)(task.file, fileContent);
|
|
196
|
-
await packager.emitArtifactCreated({
|
|
197
|
-
file: task.file,
|
|
198
|
-
fileContent,
|
|
199
|
-
arch: null,
|
|
200
|
-
packager: task.packager,
|
|
201
|
-
target: null,
|
|
202
|
-
publishConfig,
|
|
203
|
-
});
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
// backward compatibility - write json file
|
|
207
|
-
async function writeOldMacInfo(publishConfig, outDir, dir, channel, createdFiles, version, packager) {
|
|
208
|
-
const isGitHub = publishConfig.provider === "github";
|
|
209
|
-
const updateInfoFile = isGitHub && outDir === dir ? path.join(dir, "github", `${channel}-mac.json`) : path.join(dir, `${channel}-mac.json`);
|
|
210
|
-
if (!createdFiles.has(updateInfoFile)) {
|
|
211
|
-
createdFiles.add(updateInfoFile);
|
|
212
|
-
await (0, fs_extra_1.outputJson)(updateInfoFile, {
|
|
213
|
-
version,
|
|
214
|
-
releaseDate: new Date().toISOString(),
|
|
215
|
-
url: (0, PublishManager_1.computeDownloadUrl)(publishConfig, packager.generateName2("zip", "mac", isGitHub), packager),
|
|
216
|
-
}, { spaces: 2 });
|
|
217
|
-
await packager.info.emitArtifactCreated({
|
|
218
|
-
file: updateInfoFile,
|
|
219
|
-
arch: null,
|
|
220
|
-
packager,
|
|
221
|
-
target: null,
|
|
222
|
-
publishConfig,
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
//# sourceMappingURL=updateInfoBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateInfoBuilder.js","sourceRoot":"","sources":["../../src/publish/updateInfoBuilder.ts"],"names":[],"mappings":";;AAkGA,sDAoEC;AA0BD,oDA0DC;AA1PD,qDAAuC;AACvC,+CAA4E;AAE5E,uCAA2D;AAC3D,uCAA+B;AAC/B,6BAA4B;AAC5B,iCAAgC;AAChC,kCAAkC;AAKlC,uCAAuC;AACvC,qDAAqF;AAErF,KAAK,UAAU,cAAc,CAAC,QAA+B;IAC3D,MAAM,WAAW,GAAgB,EAAE,GAAG,CA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CAAkB,EAAC,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC;SACjG,EACD,EAAE,MAAM,EAAE,CAAC,EAAE,CACd,CAAA;QAED,MAAM,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC;YACtC,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,IAAI;YACV,QAAQ;YACR,MAAM,EAAE,IAAI;YACZ,aAAa;SACd,CAAC,CAAA;IACJ,CAAC;AACH,CAAC","sourcesContent":["import asyncPool from \"tiny-async-pool\"\nimport { Arch, log, safeStringifyJson, serializeToYaml } from \"builder-util\"\nimport { GenericServerOptions, PublishConfiguration, UpdateInfo, WindowsUpdateInfo } from \"builder-util-runtime\"\nimport { outputFile, outputJson, readFile } from \"fs-extra\"\nimport { Lazy } from \"lazy-val\"\nimport * as path from \"path\"\nimport * as semver from \"semver\"\nimport { Platform } from \"../core\"\nimport { ReleaseInfo } from \"../options/PlatformSpecificBuildOptions\"\nimport { Packager } from \"../packager\"\nimport { ArtifactCreated } from \"../packagerApi\"\nimport { PlatformPackager } from \"../platformPackager\"\nimport { hashFile } from \"../util/hash\"\nimport { computeDownloadUrl, getPublishConfigsForUpdateInfo } from \"./PublishManager\"\n\nasync function getReleaseInfo(packager: PlatformPackager<any>) {\n const releaseInfo: ReleaseInfo = { ...(packager.platformSpecificBuildOptions.releaseInfo || packager.config.releaseInfo) }\n if (releaseInfo.releaseNotes == null) {\n const releaseNotesFile = await packager.getResource(\n releaseInfo.releaseNotesFile,\n `release-notes-${packager.platform.buildConfigurationKey}.md`,\n `release-notes-${packager.platform.name}.md`,\n `release-notes-${packager.platform.nodeName}.md`,\n \"release-notes.md\"\n )\n const releaseNotes = releaseNotesFile == null ? null : await readFile(releaseNotesFile, \"utf-8\")\n // to avoid undefined in the file, check for null\n if (releaseNotes != null) {\n releaseInfo.releaseNotes = releaseNotes\n }\n }\n delete releaseInfo.releaseNotesFile\n return releaseInfo\n}\n\nfunction isGenerateUpdatesFilesForAllChannels(packager: PlatformPackager<any>) {\n const value = packager.platformSpecificBuildOptions.generateUpdatesFilesForAllChannels\n return value == null ? packager.config.generateUpdatesFilesForAllChannels : value\n}\n\n/**\n if this is an \"alpha\" version, we need to generate only the \"alpha\" .yml file\n if this is a \"beta\" version, we need to generate both the \"alpha\" and \"beta\" .yml file\n if this is a \"stable\" version, we need to generate all the \"alpha\", \"beta\" and \"stable\" .yml file\n */\nfunction computeChannelNames(packager: PlatformPackager<any>, publishConfig: PublishConfiguration): Array<string> {\n const currentChannel: string = (publishConfig as GenericServerOptions).channel || \"latest\"\n // for GitHub should be pre-release way be used\n if (currentChannel === \"alpha\" || publishConfig.provider === \"github\" || !isGenerateUpdatesFilesForAllChannels(packager)) {\n return [currentChannel]\n }\n\n switch (currentChannel) {\n case \"beta\":\n return [currentChannel, \"alpha\"]\n\n case \"latest\":\n return [currentChannel, \"alpha\", \"beta\"]\n\n default:\n return [currentChannel]\n }\n}\n\nfunction getUpdateInfoFileName(channel: string, packager: PlatformPackager<any>, arch: Arch | null): string {\n const osSuffix = packager.platform === Platform.WINDOWS ? \"\" : `-${packager.platform.buildConfigurationKey}`\n return `${channel}${osSuffix}${getArchPrefixForUpdateFile(arch, packager)}.yml`\n}\n\nfunction getArchPrefixForUpdateFile(arch: Arch | null, packager: PlatformPackager<any>) {\n if (arch == null || arch === Arch.x64 || packager.platform !== Platform.LINUX) {\n return \"\"\n }\n return arch === Arch.armv7l ? \"-arm\" : `-${Arch[arch]}`\n}\n\nexport interface UpdateInfoFileTask {\n readonly file: string\n readonly info: UpdateInfo\n readonly publishConfiguration: PublishConfiguration\n readonly packager: PlatformPackager<any>\n readonly arch?: Arch | null\n}\n\nfunction computeIsisElectronUpdater1xCompatibility(updaterCompatibility: string | null, publishConfiguration: PublishConfiguration, packager: Packager) {\n if (updaterCompatibility != null) {\n return semver.satisfies(\"1.0.0\", updaterCompatibility)\n }\n\n // spaces is a new publish provider, no need to keep backward compatibility\n if (publishConfiguration.provider === \"spaces\") {\n return false\n }\n\n const updaterVersion = packager.metadata.dependencies == null ? null : packager.metadata.dependencies[\"electron-updater\"]\n return updaterVersion == null || semver.lt(updaterVersion, \"4.0.0\")\n}\n\nexport async function createUpdateInfoTasks(event: ArtifactCreated, _publishConfigs: Array<PublishConfiguration>): Promise<Array<UpdateInfoFileTask>> {\n const packager = event.packager\n const publishConfigs = await getPublishConfigsForUpdateInfo(packager, _publishConfigs, event.arch)\n if (publishConfigs == null || publishConfigs.length === 0) {\n return []\n }\n\n const outDir = event.target!.outDir\n const version = packager.appInfo.version\n const sha2 = new Lazy<string>(() => hashFile(event.file, \"sha256\", \"hex\"))\n const isMac = packager.platform === Platform.MAC\n const createdFiles = new Set<string>()\n const sharedInfo = await createUpdateInfo(version, event, await getReleaseInfo(packager))\n const tasks: Array<UpdateInfoFileTask> = []\n const electronUpdaterCompatibility = packager.platformSpecificBuildOptions.electronUpdaterCompatibility || packager.config.electronUpdaterCompatibility || \">=2.15\"\n for (const publishConfiguration of publishConfigs) {\n let dir = outDir\n if (publishConfigs.length > 1 && publishConfiguration !== publishConfigs[0]) {\n dir = path.join(outDir, publishConfiguration.provider)\n }\n\n let isElectronUpdater1xCompatibility = computeIsisElectronUpdater1xCompatibility(electronUpdaterCompatibility, publishConfiguration, packager.info)\n\n let info = sharedInfo\n // noinspection JSDeprecatedSymbols\n if (isElectronUpdater1xCompatibility && packager.platform === Platform.WINDOWS) {\n info = {\n ...info,\n }\n // noinspection JSDeprecatedSymbols\n ;(info as WindowsUpdateInfo).sha2 = await sha2.value\n }\n\n if (event.safeArtifactName != null && publishConfiguration.provider === \"github\") {\n const newFiles = info.files.slice()\n newFiles[0].url = event.safeArtifactName\n info = {\n ...info,\n files: newFiles,\n path: event.safeArtifactName,\n }\n }\n\n for (const channel of computeChannelNames(packager, publishConfiguration)) {\n if (isMac && isElectronUpdater1xCompatibility && event.file.endsWith(\".zip\")) {\n // write only for first channel (generateUpdatesFilesForAllChannels is a new functionality, no need to generate old mac update info file)\n isElectronUpdater1xCompatibility = false\n await writeOldMacInfo(publishConfiguration, outDir, dir, channel, createdFiles, version, packager)\n }\n\n const updateInfoFile = path.join(dir, getUpdateInfoFileName(channel, packager, event.arch))\n if (createdFiles.has(updateInfoFile)) {\n continue\n }\n\n createdFiles.add(updateInfoFile)\n\n // artifact should be uploaded only to designated publish provider\n tasks.push({\n file: updateInfoFile,\n info,\n publishConfiguration,\n packager,\n arch: event.arch,\n })\n }\n }\n return tasks\n}\n\nasync function createUpdateInfo(version: string, event: ArtifactCreated, releaseInfo: ReleaseInfo): Promise<UpdateInfo> {\n const customUpdateInfo = event.updateInfo\n const url = path.basename(event.file)\n const sha512 = (customUpdateInfo == null ? null : customUpdateInfo.sha512) || (await hashFile(event.file))\n const files = [{ url, sha512 }]\n const result: UpdateInfo = {\n // @ts-ignore\n version,\n // @ts-ignore\n files,\n // @ts-ignore\n path: url /* backward compatibility, electron-updater 1.x - electron-updater 2.15.0 */,\n // @ts-ignore\n sha512 /* backward compatibility, electron-updater 1.x - electron-updater 2.15.0 */,\n ...(releaseInfo as UpdateInfo),\n }\n\n if (customUpdateInfo != null) {\n // file info or nsis web installer packages info\n Object.assign(\"sha512\" in customUpdateInfo ? files[0] : result, customUpdateInfo)\n }\n return result\n}\n\nexport async function writeUpdateInfoFiles(updateInfoFileTasks: Array<UpdateInfoFileTask>, packager: Packager) {\n // zip must be first and zip info must be used for old path/sha512 properties in the update info\n // universal installer (arch === null) must precede arch-specific ones so path:/sha512: point to the right artifact\n updateInfoFileTasks.sort((a, b) => {\n const zipDiff = (a.info.files[0].url.endsWith(\".zip\") ? 0 : 100) - (b.info.files[0].url.endsWith(\".zip\") ? 0 : 100)\n if (zipDiff !== 0) {\n return zipDiff\n }\n // universal (arch === null) before arch-specific; tie-break by Arch enum value for full determinism\n // undefined arch (external callers predating this field) treated as arch-specific via strict === null check\n const aArch = a.arch === null ? -1 : (a.arch ?? Number.MAX_SAFE_INTEGER)\n const bArch = b.arch === null ? -1 : (b.arch ?? Number.MAX_SAFE_INTEGER)\n return aArch - bArch\n })\n\n const updateChannelFileToInfo = new Map<string, UpdateInfoFileTask>()\n for (const task of updateInfoFileTasks) {\n // https://github.com/electron-userland/electron-builder/pull/2994\n const key = `${task.file}@${safeStringifyJson(task.publishConfiguration, new Set([\"releaseType\"]))}`\n const existingTask = updateChannelFileToInfo.get(key)\n if (existingTask == null) {\n updateChannelFileToInfo.set(key, task)\n continue\n }\n\n existingTask.info.files.push(...task.info.files)\n }\n\n const releaseDate = new Date().toISOString()\n const concurrency = 4\n await asyncPool<UpdateInfoFileTask, void>(concurrency, Array.from(updateChannelFileToInfo.values()), async task => {\n const publishConfig = task.publishConfiguration\n if (publishConfig.publishAutoUpdate === false) {\n log.debug(\n {\n provider: publishConfig.provider,\n reason: \"publishAutoUpdate is set to false\",\n },\n \"auto update metadata file not published\"\n )\n return\n }\n\n if (task.info.releaseDate == null) {\n task.info.releaseDate = releaseDate\n }\n\n const fileContent = Buffer.from(serializeToYaml(task.info, false, true))\n await outputFile(task.file, fileContent)\n await packager.emitArtifactCreated({\n file: task.file,\n fileContent,\n arch: null,\n packager: task.packager,\n target: null,\n publishConfig,\n })\n })\n}\n\n// backward compatibility - write json file\nasync function writeOldMacInfo(\n publishConfig: PublishConfiguration,\n outDir: string,\n dir: string,\n channel: string,\n createdFiles: Set<string>,\n version: string,\n packager: PlatformPackager<any>\n) {\n const isGitHub = publishConfig.provider === \"github\"\n const updateInfoFile = isGitHub && outDir === dir ? path.join(dir, \"github\", `${channel}-mac.json`) : path.join(dir, `${channel}-mac.json`)\n if (!createdFiles.has(updateInfoFile)) {\n createdFiles.add(updateInfoFile)\n await outputJson(\n updateInfoFile,\n {\n version,\n releaseDate: new Date().toISOString(),\n url: computeDownloadUrl(publishConfig, packager.generateName2(\"zip\", \"mac\", isGitHub), packager),\n },\n { spaces: 2 }\n )\n\n await packager.info.emitArtifactCreated({\n file: updateInfoFile,\n arch: null,\n packager,\n target: null,\n publishConfig,\n })\n }\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface Capability {
|
|
2
|
-
readonly nsAlias: string | null;
|
|
3
|
-
readonly nsURI: string | null;
|
|
4
|
-
readonly name: string;
|
|
5
|
-
toXMLString(): string;
|
|
6
|
-
}
|
|
7
|
-
export declare const CAPABILITIES: Capability[];
|
|
8
|
-
export declare function isValidCapabilityName(name: string | null | undefined): boolean;
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CAPABILITIES = void 0;
|
|
4
|
-
exports.isValidCapabilityName = isValidCapabilityName;
|
|
5
|
-
class AppxCapability {
|
|
6
|
-
constructor(nsAlias, nsURI, declareNS, elementName, name) {
|
|
7
|
-
this.nsAlias = nsAlias;
|
|
8
|
-
this.nsURI = nsURI;
|
|
9
|
-
this.declareNS = declareNS;
|
|
10
|
-
this.elementName = elementName;
|
|
11
|
-
this.name = name;
|
|
12
|
-
if (!this.nsAlias && this.declareNS) {
|
|
13
|
-
throw new Error("local declaration of namespace without prefix is not supported");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
toXMLString() {
|
|
17
|
-
const tagName = this.nsAlias ? `${this.nsAlias}:${this.elementName}` : this.elementName;
|
|
18
|
-
if (this.declareNS) {
|
|
19
|
-
return `<${tagName} xmlns:${this.nsAlias}="${this.nsURI}" Name="${this.name}"/>`;
|
|
20
|
-
}
|
|
21
|
-
return `<${tagName} Name="${this.name}"/>`;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
// Capability type configurations
|
|
25
|
-
const CAPABILITY_TYPES = {
|
|
26
|
-
common: {
|
|
27
|
-
nsAlias: null,
|
|
28
|
-
nsURI: "http://schemas.microsoft.com/appx/manifest/foundation/windows10",
|
|
29
|
-
declareNS: false,
|
|
30
|
-
elementName: "Capability",
|
|
31
|
-
},
|
|
32
|
-
uap: {
|
|
33
|
-
nsAlias: "uap",
|
|
34
|
-
nsURI: "http://schemas.microsoft.com/appx/manifest/uap/windows10",
|
|
35
|
-
declareNS: false, // ns already declared in template
|
|
36
|
-
elementName: "Capability",
|
|
37
|
-
},
|
|
38
|
-
device: {
|
|
39
|
-
nsAlias: null,
|
|
40
|
-
nsURI: "http://schemas.microsoft.com/appx/manifest/foundation/windows10",
|
|
41
|
-
declareNS: false,
|
|
42
|
-
elementName: "DeviceCapability",
|
|
43
|
-
},
|
|
44
|
-
uap6: {
|
|
45
|
-
nsAlias: "uap6",
|
|
46
|
-
nsURI: "http://schemas.microsoft.com/appx/manifest/uap/windows10/6",
|
|
47
|
-
declareNS: true,
|
|
48
|
-
elementName: "Capability",
|
|
49
|
-
},
|
|
50
|
-
uap7: {
|
|
51
|
-
nsAlias: "uap7",
|
|
52
|
-
nsURI: "http://schemas.microsoft.com/appx/manifest/uap/windows10/7",
|
|
53
|
-
declareNS: true,
|
|
54
|
-
elementName: "Capability",
|
|
55
|
-
},
|
|
56
|
-
mobile: {
|
|
57
|
-
nsAlias: "mobile",
|
|
58
|
-
nsURI: "http://schemas.microsoft.com/appx/manifest/mobile/windows10",
|
|
59
|
-
declareNS: true,
|
|
60
|
-
elementName: "Capability",
|
|
61
|
-
},
|
|
62
|
-
rescap: {
|
|
63
|
-
nsAlias: "rescap",
|
|
64
|
-
nsURI: "http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities",
|
|
65
|
-
declareNS: false, // ns already declared in template
|
|
66
|
-
elementName: "Capability",
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
// Map of capability types to their capability names (grouped by type)
|
|
70
|
-
const CAPABILITY_MAP = new Map([
|
|
71
|
-
// Common capabilities
|
|
72
|
-
[
|
|
73
|
-
"common",
|
|
74
|
-
[
|
|
75
|
-
"internetClient",
|
|
76
|
-
"internetClientServer",
|
|
77
|
-
"privateNetworkClientServer",
|
|
78
|
-
"codeGeneration",
|
|
79
|
-
"allJoyn",
|
|
80
|
-
"backgroundMediaPlayback",
|
|
81
|
-
"remoteSystem",
|
|
82
|
-
"spatialPerception",
|
|
83
|
-
"userDataTasks",
|
|
84
|
-
"userNotificationListener",
|
|
85
|
-
],
|
|
86
|
-
],
|
|
87
|
-
// UAP capabilities
|
|
88
|
-
[
|
|
89
|
-
"uap",
|
|
90
|
-
[
|
|
91
|
-
"musicLibrary",
|
|
92
|
-
"picturesLibrary",
|
|
93
|
-
"videosLibrary",
|
|
94
|
-
"removableStorage",
|
|
95
|
-
"appointments",
|
|
96
|
-
"contacts",
|
|
97
|
-
"phoneCall",
|
|
98
|
-
"phoneCallHistoryPublic",
|
|
99
|
-
"userAccountInformation",
|
|
100
|
-
"voipCall",
|
|
101
|
-
"objects3D",
|
|
102
|
-
"chat",
|
|
103
|
-
"blockedChatMessages",
|
|
104
|
-
"enterpriseAuthentication",
|
|
105
|
-
"sharedUserCertificates",
|
|
106
|
-
"documentsLibrary",
|
|
107
|
-
],
|
|
108
|
-
],
|
|
109
|
-
// Mobile capabilities
|
|
110
|
-
["mobile", ["recordedCallsFolder"]],
|
|
111
|
-
// Restricted capabilities
|
|
112
|
-
[
|
|
113
|
-
"rescap",
|
|
114
|
-
[
|
|
115
|
-
"enterpriseDataPolicy",
|
|
116
|
-
"appCaptureSettings",
|
|
117
|
-
"cellularDeviceControl",
|
|
118
|
-
"cellularDeviceIdentity",
|
|
119
|
-
"cellularMessaging",
|
|
120
|
-
"deviceUnlock",
|
|
121
|
-
"dualSimTiles",
|
|
122
|
-
"enterpriseDeviceLockdown",
|
|
123
|
-
"inputInjectionBrokered",
|
|
124
|
-
"inputObservation",
|
|
125
|
-
"inputSuppression",
|
|
126
|
-
"networkingVpnProvider",
|
|
127
|
-
"packageManagement",
|
|
128
|
-
"screenDuplication",
|
|
129
|
-
"userPrincipalName",
|
|
130
|
-
"walletSystem",
|
|
131
|
-
"locationHistory",
|
|
132
|
-
"confirmAppClose",
|
|
133
|
-
"phoneCallHistory",
|
|
134
|
-
"appointmentsSystem",
|
|
135
|
-
"chatSystem",
|
|
136
|
-
"contactsSystem",
|
|
137
|
-
"email",
|
|
138
|
-
"emailSystem",
|
|
139
|
-
"phoneCallHistorySystem",
|
|
140
|
-
"smsSend",
|
|
141
|
-
"userDataSystem",
|
|
142
|
-
"previewStore",
|
|
143
|
-
"firstSignInSettings",
|
|
144
|
-
"teamEditionExperience",
|
|
145
|
-
"remotePassportAuthentication",
|
|
146
|
-
"previewUiComposition",
|
|
147
|
-
"secureAssessment",
|
|
148
|
-
"networkConnectionManagerProvisioning",
|
|
149
|
-
"networkDataPlanProvisioning",
|
|
150
|
-
"slapiQueryLicenseValue",
|
|
151
|
-
"extendedBackgroundTaskTime",
|
|
152
|
-
"extendedExecutionBackgroundAudio",
|
|
153
|
-
"extendedExecutionCritical",
|
|
154
|
-
"extendedExecutionUnconstrained",
|
|
155
|
-
"deviceManagementDmAccount",
|
|
156
|
-
"deviceManagementFoundation",
|
|
157
|
-
"deviceManagementWapSecurityPolicies",
|
|
158
|
-
"deviceManagementEmailAccount",
|
|
159
|
-
"packagePolicySystem",
|
|
160
|
-
"gameList",
|
|
161
|
-
"xboxAccessoryManagement",
|
|
162
|
-
"cortanaSpeechAccessory",
|
|
163
|
-
"accessoryManager",
|
|
164
|
-
"interopServices",
|
|
165
|
-
"inputForegroundObservation",
|
|
166
|
-
"oemDeployment",
|
|
167
|
-
"oemPublicDirectory",
|
|
168
|
-
"appLicensing",
|
|
169
|
-
"locationSystem",
|
|
170
|
-
"userDataAccountsProvider",
|
|
171
|
-
"previewPenWorkspace",
|
|
172
|
-
"secondaryAuthenticationFactor",
|
|
173
|
-
"storeLicenseManagement",
|
|
174
|
-
"userSystemId",
|
|
175
|
-
"targetedContent",
|
|
176
|
-
"uiAutomation",
|
|
177
|
-
"gameBarServices",
|
|
178
|
-
"appCaptureServices",
|
|
179
|
-
"appBroadcastServices",
|
|
180
|
-
"audioDeviceConfiguration",
|
|
181
|
-
"backgroundMediaRecording",
|
|
182
|
-
"previewInkWorkspace",
|
|
183
|
-
"startScreenManagement",
|
|
184
|
-
"cortanaPermissions",
|
|
185
|
-
"allAppMods",
|
|
186
|
-
"expandedResources",
|
|
187
|
-
"protectedApp",
|
|
188
|
-
"gameMonitor",
|
|
189
|
-
"appDiagnostics",
|
|
190
|
-
"devicePortalProvider",
|
|
191
|
-
"enterpriseCloudSSO",
|
|
192
|
-
"backgroundVoIP",
|
|
193
|
-
"oneProcessVoIP",
|
|
194
|
-
"developmentModeNetwork",
|
|
195
|
-
"broadFileSystemAccess",
|
|
196
|
-
"smbios",
|
|
197
|
-
"runFullTrust",
|
|
198
|
-
"allowElevation",
|
|
199
|
-
"teamEditionDeviceCredential",
|
|
200
|
-
"teamEditionView",
|
|
201
|
-
"cameraProcessingExtension",
|
|
202
|
-
"networkDataUsageManagement",
|
|
203
|
-
"phoneLineTransportManagement",
|
|
204
|
-
"unvirtualizedResources",
|
|
205
|
-
"modifiableApp",
|
|
206
|
-
"packageWriteRedirectionCompatibilityShim",
|
|
207
|
-
"customInstallActions",
|
|
208
|
-
"packagedServices",
|
|
209
|
-
"localSystemServices",
|
|
210
|
-
"backgroundSpatialPerception",
|
|
211
|
-
"uiAccess",
|
|
212
|
-
],
|
|
213
|
-
],
|
|
214
|
-
// UAP6 capabilities
|
|
215
|
-
["uap6", ["graphicsCapture"]],
|
|
216
|
-
// UAP7 capabilities
|
|
217
|
-
["uap7", ["globalMediaControl"]],
|
|
218
|
-
// Device capabilities
|
|
219
|
-
[
|
|
220
|
-
"device",
|
|
221
|
-
[
|
|
222
|
-
"location",
|
|
223
|
-
"microphone",
|
|
224
|
-
"webcam",
|
|
225
|
-
"proximity",
|
|
226
|
-
"pointOfService",
|
|
227
|
-
"wiFiControl",
|
|
228
|
-
"radios",
|
|
229
|
-
"optical",
|
|
230
|
-
"activity",
|
|
231
|
-
"humanPresence",
|
|
232
|
-
"serialcommunication",
|
|
233
|
-
"gazeInput",
|
|
234
|
-
"lowLevel",
|
|
235
|
-
"packageQuery",
|
|
236
|
-
],
|
|
237
|
-
],
|
|
238
|
-
]);
|
|
239
|
-
// Factory function to create capabilities
|
|
240
|
-
function createCapability(type, name) {
|
|
241
|
-
const config = CAPABILITY_TYPES[type];
|
|
242
|
-
if (!config) {
|
|
243
|
-
throw new Error(`unknown capability type '${type}'`);
|
|
244
|
-
}
|
|
245
|
-
return new AppxCapability(config.nsAlias, config.nsURI, config.declareNS, config.elementName, name);
|
|
246
|
-
}
|
|
247
|
-
// Export ordered list of all capabilities (order matters per Microsoft docs)
|
|
248
|
-
// Schema: https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/schema-root
|
|
249
|
-
// Packaging: https://learn.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations
|
|
250
|
-
// !! the docs are not clear in which order is correct. the schema doc specifies an order that differs from the order described in packaging doc !!
|
|
251
|
-
// https://learn.microsoft.com/en-us/answers/questions/92754/why-does-the-order-of-items-in-(capabilities)-of-p
|
|
252
|
-
// as stated in the above post the packaging docs is the one to follow as MakeAppx.exe is following this specification when it checks the manifests validity
|
|
253
|
-
exports.CAPABILITIES = Array.from(CAPABILITY_MAP.entries()).flatMap(([type, names]) => names.map(name => createCapability(type, name)));
|
|
254
|
-
const CAPABILITY_NAMES = new Set(Array.from(CAPABILITY_MAP.values()).flat());
|
|
255
|
-
function isValidCapabilityName(name) {
|
|
256
|
-
return !!name && CAPABILITY_NAMES.has(name);
|
|
257
|
-
}
|
|
258
|
-
//# sourceMappingURL=AppxCapabilities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppxCapabilities.js","sourceRoot":"","sources":["../../src/targets/AppxCapabilities.ts"],"names":[],"mappings":";;;AAyRA,sDAEC;AA5QD,MAAM,cAAc;IAClB,YACkB,OAAsB,EACtB,KAAoB,EACnB,SAAkB,EAClB,WAAmB,EACpB,IAAY;QAJZ,YAAO,GAAP,OAAO,CAAe;QACtB,U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n readonly nsAlias: string | null\n readonly nsURI: string | null\n readonly name: string\n\n toXMLString(): string\n}\n\ntype CapabilityConfig = {\n nsAlias: string | null\n nsURI: string | null\n declareNS: boolean\n elementName: string\n}\n\nclass AppxCapability implements Capability {\n constructor(\n public readonly nsAlias: string | null,\n public readonly nsURI: string | null,\n private readonly declareNS: boolean,\n private readonly elementName: string,\n public readonly name: string\n ) {\n if (!this.nsAlias && this.declareNS) {\n throw new Error(\"local declaration of namespace without prefix is not supported\")\n }\n }\n\n toXMLString(): string {\n const tagName = this.nsAlias ? `${this.nsAlias}:${this.elementName}` : this.elementName\n if (this.declareNS) {\n return `<${tagName} xmlns:${this.nsAlias}=\"${this.nsURI}\" Name=\"${this.name}\"/>`\n }\n return `<${tagName} Name=\"${this.name}\"/>`\n }\n}\n\n// Capability type configurations\nconst CAPABILITY_TYPES: Record<string, CapabilityConfig> = {\n common: {\n nsAlias: null,\n nsURI: \"http://schemas.microsoft.com/appx/manifest/foundation/windows10\",\n declareNS: false,\n elementName: \"Capability\",\n },\n uap: {\n nsAlias: \"uap\",\n nsURI: \"http://schemas.microsoft.com/appx/manifest/uap/windows10\",\n declareNS: false, // ns already declared in template\n elementName: \"Capability\",\n },\n device: {\n nsAlias: null,\n nsURI: \"http://schemas.microsoft.com/appx/manifest/foundation/windows10\",\n declareNS: false,\n elementName: \"DeviceCapability\",\n },\n uap6: {\n nsAlias: \"uap6\",\n nsURI: \"http://schemas.microsoft.com/appx/manifest/uap/windows10/6\",\n declareNS: true,\n elementName: \"Capability\",\n },\n uap7: {\n nsAlias: \"uap7\",\n nsURI: \"http://schemas.microsoft.com/appx/manifest/uap/windows10/7\",\n declareNS: true,\n elementName: \"Capability\",\n },\n mobile: {\n nsAlias: \"mobile\",\n nsURI: \"http://schemas.microsoft.com/appx/manifest/mobile/windows10\",\n declareNS: true,\n elementName: \"Capability\",\n },\n rescap: {\n nsAlias: \"rescap\",\n nsURI: \"http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities\",\n declareNS: false, // ns already declared in template\n elementName: \"Capability\",\n },\n} as const\n\ntype CapabilityType = keyof typeof CAPABILITY_TYPES\n\n// Map of capability types to their capability names (grouped by type)\nconst CAPABILITY_MAP = new Map<CapabilityType, string[]>([\n // Common capabilities\n [\n \"common\",\n [\n \"internetClient\",\n \"internetClientServer\",\n \"privateNetworkClientServer\",\n \"codeGeneration\",\n \"allJoyn\",\n \"backgroundMediaPlayback\",\n \"remoteSystem\",\n \"spatialPerception\",\n \"userDataTasks\",\n \"userNotificationListener\",\n ],\n ],\n\n // UAP capabilities\n [\n \"uap\",\n [\n \"musicLibrary\",\n \"picturesLibrary\",\n \"videosLibrary\",\n \"removableStorage\",\n \"appointments\",\n \"contacts\",\n \"phoneCall\",\n \"phoneCallHistoryPublic\",\n \"userAccountInformation\",\n \"voipCall\",\n \"objects3D\",\n \"chat\",\n \"blockedChatMessages\",\n \"enterpriseAuthentication\",\n \"sharedUserCertificates\",\n \"documentsLibrary\",\n ],\n ],\n\n // Mobile capabilities\n [\"mobile\", [\"recordedCallsFolder\"]],\n\n // Restricted capabilities\n [\n \"rescap\",\n [\n \"enterpriseDataPolicy\",\n \"appCaptureSettings\",\n \"cellularDeviceControl\",\n \"cellularDeviceIdentity\",\n \"cellularMessaging\",\n \"deviceUnlock\",\n \"dualSimTiles\",\n \"enterpriseDeviceLockdown\",\n \"inputInjectionBrokered\",\n \"inputObservation\",\n \"inputSuppression\",\n \"networkingVpnProvider\",\n \"packageManagement\",\n \"screenDuplication\",\n \"userPrincipalName\",\n \"walletSystem\",\n \"locationHistory\",\n \"confirmAppClose\",\n \"phoneCallHistory\",\n \"appointmentsSystem\",\n \"chatSystem\",\n \"contactsSystem\",\n \"email\",\n \"emailSystem\",\n \"phoneCallHistorySystem\",\n \"smsSend\",\n \"userDataSystem\",\n \"previewStore\",\n \"firstSignInSettings\",\n \"teamEditionExperience\",\n \"remotePassportAuthentication\",\n \"previewUiComposition\",\n \"secureAssessment\",\n \"networkConnectionManagerProvisioning\",\n \"networkDataPlanProvisioning\",\n \"slapiQueryLicenseValue\",\n \"extendedBackgroundTaskTime\",\n \"extendedExecutionBackgroundAudio\",\n \"extendedExecutionCritical\",\n \"extendedExecutionUnconstrained\",\n \"deviceManagementDmAccount\",\n \"deviceManagementFoundation\",\n \"deviceManagementWapSecurityPolicies\",\n \"deviceManagementEmailAccount\",\n \"packagePolicySystem\",\n \"gameList\",\n \"xboxAccessoryManagement\",\n \"cortanaSpeechAccessory\",\n \"accessoryManager\",\n \"interopServices\",\n \"inputForegroundObservation\",\n \"oemDeployment\",\n \"oemPublicDirectory\",\n \"appLicensing\",\n \"locationSystem\",\n \"userDataAccountsProvider\",\n \"previewPenWorkspace\",\n \"secondaryAuthenticationFactor\",\n \"storeLicenseManagement\",\n \"userSystemId\",\n \"targetedContent\",\n \"uiAutomation\",\n \"gameBarServices\",\n \"appCaptureServices\",\n \"appBroadcastServices\",\n \"audioDeviceConfiguration\",\n \"backgroundMediaRecording\",\n \"previewInkWorkspace\",\n \"startScreenManagement\",\n \"cortanaPermissions\",\n \"allAppMods\",\n \"expandedResources\",\n \"protectedApp\",\n \"gameMonitor\",\n \"appDiagnostics\",\n \"devicePortalProvider\",\n \"enterpriseCloudSSO\",\n \"backgroundVoIP\",\n \"oneProcessVoIP\",\n \"developmentModeNetwork\",\n \"broadFileSystemAccess\",\n \"smbios\",\n \"runFullTrust\",\n \"allowElevation\",\n \"teamEditionDeviceCredential\",\n \"teamEditionView\",\n \"cameraProcessingExtension\",\n \"networkDataUsageManagement\",\n \"phoneLineTransportManagement\",\n \"unvirtualizedResources\",\n \"modifiableApp\",\n \"packageWriteRedirectionCompatibilityShim\",\n \"customInstallActions\",\n \"packagedServices\",\n \"localSystemServices\",\n \"backgroundSpatialPerception\",\n \"uiAccess\",\n ],\n ],\n\n // UAP6 capabilities\n [\"uap6\", [\"graphicsCapture\"]],\n\n // UAP7 capabilities\n [\"uap7\", [\"globalMediaControl\"]],\n\n // Device capabilities\n [\n \"device\",\n [\n \"location\",\n \"microphone\",\n \"webcam\",\n \"proximity\",\n \"pointOfService\",\n \"wiFiControl\",\n \"radios\",\n \"optical\",\n \"activity\",\n \"humanPresence\",\n \"serialcommunication\",\n \"gazeInput\",\n \"lowLevel\",\n \"packageQuery\",\n ],\n ],\n])\n\n// Factory function to create capabilities\nfunction createCapability(type: CapabilityType, name: string): Capability {\n const config = CAPABILITY_TYPES[type]\n if (!config) {\n throw new Error(`unknown capability type '${type}'`)\n }\n return new AppxCapability(config.nsAlias, config.nsURI, config.declareNS, config.elementName, name)\n}\n\n// Export ordered list of all capabilities (order matters per Microsoft docs)\n// Schema: https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/schema-root\n// Packaging: https://learn.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations\n// !! the docs are not clear in which order is correct. the schema doc specifies an order that differs from the order described in packaging doc !!\n// https://learn.microsoft.com/en-us/answers/questions/92754/why-does-the-order-of-items-in-(capabilities)-of-p\n// as stated in the above post the packaging docs is the one to follow as MakeAppx.exe is following this specification when it checks the manifests validity\nexport const CAPABILITIES: Capability[] = Array.from(CAPABILITY_MAP.entries()).flatMap(([type, names]) => names.map(name => createCapability(type, name)))\n\nconst CAPABILITY_NAMES: Set<string> = new Set<string>(Array.from(CAPABILITY_MAP.values()).flat())\n\nexport function isValidCapabilityName(name: string | null | undefined): boolean {\n return !!name && CAPABILITY_NAMES.has(name)\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Arch } from "builder-util";
|
|
2
|
-
import { AppXOptions } from "../";
|
|
3
|
-
import { Target } from "../core";
|
|
4
|
-
import { WinPackager } from "../winPackager";
|
|
5
|
-
export default class AppXTarget extends Target {
|
|
6
|
-
private readonly packager;
|
|
7
|
-
readonly outDir: string;
|
|
8
|
-
readonly options: AppXOptions;
|
|
9
|
-
isAsyncSupported: boolean;
|
|
10
|
-
constructor(packager: WinPackager, outDir: string);
|
|
11
|
-
build(appOutDir: string, arch: Arch): Promise<any>;
|
|
12
|
-
private static computeUserAssets;
|
|
13
|
-
private computePublisherName;
|
|
14
|
-
private writeManifest;
|
|
15
|
-
private getCapabilities;
|
|
16
|
-
private getExtensions;
|
|
17
|
-
}
|