app-builder-lib 23.5.1 → 24.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/appInfo.js +14 -2
- package/out/appInfo.js.map +1 -1
- package/out/fileMatcher.js +1 -1
- package/out/fileMatcher.js.map +1 -1
- package/out/options/macOptions.d.ts +1 -1
- package/out/options/macOptions.js.map +1 -1
- package/out/options/pkgOptions.d.ts +1 -1
- package/out/options/pkgOptions.js.map +1 -1
- package/out/packager.js +1 -1
- package/out/packager.js.map +1 -1
- package/out/targets/nsis/Defines.d.ts +1 -0
- package/out/targets/nsis/Defines.js.map +1 -1
- package/out/targets/nsis/NsisTarget.js +3 -0
- package/out/targets/nsis/NsisTarget.js.map +1 -1
- package/out/targets/nsis/nsisOptions.d.ts +5 -0
- package/out/targets/nsis/nsisOptions.js.map +1 -1
- package/out/targets/snap.js +9 -1
- package/out/targets/snap.js.map +1 -1
- package/out/util/packageMetadata.js +1 -1
- package/out/util/packageMetadata.js.map +1 -1
- package/out/util/yarn.d.ts +1 -1
- package/out/util/yarn.js +22 -35
- package/out/util/yarn.js.map +1 -1
- package/out/version.d.ts +1 -1
- package/out/version.js +1 -1
- package/out/version.js.map +1 -1
- package/package.json +7 -6
- package/scheme.json +13 -3
- package/templates/nsis/assistedInstaller.nsh +5 -3
package/out/util/yarn.js
CHANGED
|
@@ -5,13 +5,9 @@ const builder_util_1 = require("builder-util");
|
|
|
5
5
|
const fs_extra_1 = require("fs-extra");
|
|
6
6
|
const os_1 = require("os");
|
|
7
7
|
const path = require("path");
|
|
8
|
-
const
|
|
8
|
+
const electronRebuild = require("electron-rebuild");
|
|
9
|
+
const electronVersion_1 = require("../electron/electronVersion");
|
|
9
10
|
async function installOrRebuild(config, appDir, options, forceInstall = false) {
|
|
10
|
-
const effectiveOptions = {
|
|
11
|
-
buildFromSource: config.buildDependenciesFromSource === true,
|
|
12
|
-
additionalArgs: builder_util_1.asArray(config.npmArgs),
|
|
13
|
-
...options,
|
|
14
|
-
};
|
|
15
11
|
let isDependenciesInstalled = false;
|
|
16
12
|
for (const fileOrDir of ["node_modules", ".pnp.js"]) {
|
|
17
13
|
if (await fs_extra_1.pathExists(path.join(appDir, fileOrDir))) {
|
|
@@ -20,10 +16,15 @@ async function installOrRebuild(config, appDir, options, forceInstall = false) {
|
|
|
20
16
|
}
|
|
21
17
|
}
|
|
22
18
|
if (forceInstall || !isDependenciesInstalled) {
|
|
19
|
+
const effectiveOptions = {
|
|
20
|
+
buildFromSource: config.buildDependenciesFromSource === true,
|
|
21
|
+
additionalArgs: builder_util_1.asArray(config.npmArgs),
|
|
22
|
+
...options,
|
|
23
|
+
};
|
|
23
24
|
await installDependencies(appDir, effectiveOptions);
|
|
24
25
|
}
|
|
25
26
|
else {
|
|
26
|
-
await rebuild(appDir,
|
|
27
|
+
await rebuild(appDir, config.buildDependenciesFromSource === true, options.arch);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
exports.installOrRebuild = installOrRebuild;
|
|
@@ -102,23 +103,8 @@ function installDependencies(appDir, options) {
|
|
|
102
103
|
env: getGypEnv(options.frameworkInfo, platform, arch, options.buildFromSource === true),
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
|
-
async function nodeGypRebuild(
|
|
106
|
-
|
|
107
|
-
// this script must be used only for electron
|
|
108
|
-
const nodeGyp = `node-gyp${process.platform === "win32" ? ".cmd" : ""}`;
|
|
109
|
-
const args = ["rebuild"];
|
|
110
|
-
// headers of old Electron versions do not have a valid config.gypi file
|
|
111
|
-
// and --force-process-config must be passed to node-gyp >= 8.4.0 to
|
|
112
|
-
// correctly build modules for them.
|
|
113
|
-
// see also https://github.com/nodejs/node-gyp/pull/2497
|
|
114
|
-
const [major, minor] = frameworkInfo.version
|
|
115
|
-
.split(".")
|
|
116
|
-
.slice(0, 2)
|
|
117
|
-
.map(n => parseInt(n, 10));
|
|
118
|
-
if (major <= 13 || (major == 14 && minor <= 1) || (major == 15 && minor <= 2)) {
|
|
119
|
-
args.push("--force-process-config");
|
|
120
|
-
}
|
|
121
|
-
await builder_util_1.spawn(nodeGyp, args, { env: getGypEnv(frameworkInfo, platform, arch, true) });
|
|
106
|
+
async function nodeGypRebuild(arch) {
|
|
107
|
+
return rebuild(process.cwd(), false, arch);
|
|
122
108
|
}
|
|
123
109
|
exports.nodeGypRebuild = nodeGypRebuild;
|
|
124
110
|
function getPackageToolPath() {
|
|
@@ -134,18 +120,19 @@ function isRunningYarn(execPath) {
|
|
|
134
120
|
return process.env.FORCE_YARN === "true" || (execPath != null && path.basename(execPath).startsWith("yarn")) || (userAgent != null && /\byarn\b/.test(userAgent));
|
|
135
121
|
}
|
|
136
122
|
/** @internal */
|
|
137
|
-
async function rebuild(appDir,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
arch
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
buildFromSource: options.buildFromSource === true,
|
|
123
|
+
async function rebuild(appDir, buildFromSource, arch = process.arch) {
|
|
124
|
+
builder_util_1.log.info({ appDir, arch }, "executing electron-rebuild");
|
|
125
|
+
const options = {
|
|
126
|
+
buildPath: appDir,
|
|
127
|
+
electronVersion: await electronVersion_1.getElectronVersion(appDir),
|
|
128
|
+
arch,
|
|
129
|
+
force: true,
|
|
130
|
+
debug: builder_util_1.log.isDebugEnabled,
|
|
146
131
|
};
|
|
147
|
-
|
|
148
|
-
|
|
132
|
+
if (buildFromSource) {
|
|
133
|
+
options.prebuildTagPrefix = "totally-not-a-real-prefix-to-force-rebuild";
|
|
134
|
+
}
|
|
135
|
+
return electronRebuild.rebuild(options);
|
|
149
136
|
}
|
|
150
137
|
exports.rebuild = rebuild;
|
|
151
138
|
//# sourceMappingURL=yarn.js.map
|
package/out/util/yarn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yarn.js","sourceRoot":"","sources":["../../src/util/yarn.ts"],"names":[],"mappings":";;;AAAA,+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extra\"\nimport { Lazy } from \"lazy-val\"\nimport { homedir } from \"os\"\nimport * as path from \"path\"\nimport { Configuration } from \"../configuration\"\nimport { executeAppBuilderAndWriteJson } from \"./appBuilder\"\nimport { NodeModuleDirInfo } from \"./packageDependencies\"\n\nexport async function installOrRebuild(config: Configuration, appDir: string, options: RebuildOptions, forceInstall = false) {\n const effectiveOptions = {\n buildFromSource: config.buildDependenciesFromSource === true,\n additionalArgs: asArray(config.npmArgs),\n ...options,\n }\n let isDependenciesInstalled = false\n\n for (const fileOrDir of [\"node_modules\", \".pnp.js\"]) {\n if (await pathExists(path.join(appDir, fileOrDir))) {\n isDependenciesInstalled = true\n\n break\n }\n }\n\n if (forceInstall || !isDependenciesInstalled) {\n await installDependencies(appDir, effectiveOptions)\n } else {\n await rebuild(appDir, effectiveOptions)\n }\n}\n\nexport interface DesktopFrameworkInfo {\n version: string\n useCustomDist: boolean\n}\n\nfunction getElectronGypCacheDir() {\n return path.join(homedir(), \".electron-gyp\")\n}\n\nexport function getGypEnv(frameworkInfo: DesktopFrameworkInfo, platform: NodeJS.Platform, arch: string, buildFromSource: boolean) {\n const npmConfigArch = arch === \"armv7l\" ? \"arm\" : arch\n const common: any = {\n ...process.env,\n npm_config_arch: npmConfigArch,\n npm_config_target_arch: npmConfigArch,\n npm_config_platform: platform,\n npm_config_build_from_source: buildFromSource,\n // required for node-pre-gyp\n npm_config_target_platform: platform,\n npm_config_update_binary: true,\n npm_config_fallback_to_build: true,\n }\n\n if (platform !== process.platform) {\n common.npm_config_force = \"true\"\n }\n if (platform === \"win32\" || platform === \"darwin\") {\n common.npm_config_target_libc = \"unknown\"\n }\n\n if (!frameworkInfo.useCustomDist) {\n return common\n }\n\n // https://github.com/nodejs/node-gyp/issues/21\n return {\n ...common,\n npm_config_disturl: \"https://electronjs.org/headers\",\n npm_config_target: frameworkInfo.version,\n npm_config_runtime: \"electron\",\n npm_config_devdir: getElectronGypCacheDir(),\n }\n}\n\nfunction checkYarnBerry() {\n const npmUserAgent = process.env[\"npm_config_user_agent\"] || \"\"\n const regex = /yarn\\/(\\d+)\\./gm\n\n const yarnVersionMatch = regex.exec(npmUserAgent)\n const yarnMajorVersion = Number(yarnVersionMatch?.[1] ?? 0)\n return yarnMajorVersion >= 2\n}\n\nfunction installDependencies(appDir: string, options: RebuildOptions): Promise<any> {\n const platform = options.platform || process.platform\n const arch = options.arch || process.arch\n const additionalArgs = options.additionalArgs\n\n log.info({ platform, arch, appDir }, `installing production dependencies`)\n let execPath = process.env.npm_execpath || process.env.NPM_CLI_JS\n const execArgs = [\"install\"]\n const isYarnBerry = checkYarnBerry()\n if (!isYarnBerry) {\n if (process.env.NPM_NO_BIN_LINKS === \"true\") {\n execArgs.push(\"--no-bin-links\")\n }\n execArgs.push(\"--production\")\n }\n\n if (!isRunningYarn(execPath)) {\n execArgs.push(\"--prefer-offline\")\n }\n\n if (execPath == null) {\n execPath = getPackageToolPath()\n } else if (!isYarnBerry) {\n execArgs.unshift(execPath)\n execPath = process.env.npm_node_execpath || process.env.NODE_EXE || \"node\"\n }\n\n if (additionalArgs != null) {\n execArgs.push(...additionalArgs)\n }\n return spawn(execPath, execArgs, {\n cwd: appDir,\n env: getGypEnv(options.frameworkInfo, platform, arch, options.buildFromSource === true),\n })\n}\n\nexport async function nodeGypRebuild(platform: NodeJS.Platform, arch: string, frameworkInfo: DesktopFrameworkInfo) {\n log.info({ platform, arch }, \"executing node-gyp rebuild\")\n // this script must be used only for electron\n const nodeGyp = `node-gyp${process.platform === \"win32\" ? \".cmd\" : \"\"}`\n const args = [\"rebuild\"]\n // headers of old Electron versions do not have a valid config.gypi file\n // and --force-process-config must be passed to node-gyp >= 8.4.0 to\n // correctly build modules for them.\n // see also https://github.com/nodejs/node-gyp/pull/2497\n const [major, minor] = frameworkInfo.version\n .split(\".\")\n .slice(0, 2)\n .map(n => parseInt(n, 10))\n if (major <= 13 || (major == 14 && minor <= 1) || (major == 15 && minor <= 2)) {\n args.push(\"--force-process-config\")\n }\n await spawn(nodeGyp, args, { env: getGypEnv(frameworkInfo, platform, arch, true) })\n}\n\nfunction getPackageToolPath() {\n if (process.env.FORCE_YARN === \"true\") {\n return process.platform === \"win32\" ? \"yarn.cmd\" : \"yarn\"\n } else {\n return process.platform === \"win32\" ? \"npm.cmd\" : \"npm\"\n }\n}\n\nfunction isRunningYarn(execPath: string | null | undefined) {\n const userAgent = process.env.npm_config_user_agent\n return process.env.FORCE_YARN === \"true\" || (execPath != null && path.basename(execPath).startsWith(\"yarn\")) || (userAgent != null && /\\byarn\\b/.test(userAgent))\n}\n\nexport interface RebuildOptions {\n frameworkInfo: DesktopFrameworkInfo\n productionDeps?: Lazy<Array<NodeModuleDirInfo>>\n\n platform?: NodeJS.Platform\n arch?: string\n\n buildFromSource?: boolean\n\n additionalArgs?: Array<string> | null\n}\n\n/** @internal */\nexport async function rebuild(appDir: string, options: RebuildOptions) {\n const configuration: any = {\n dependencies: await options.productionDeps!.value,\n nodeExecPath: process.execPath,\n platform: options.platform || process.platform,\n arch: options.arch || process.arch,\n additionalArgs: options.additionalArgs,\n execPath: process.env.npm_execpath || process.env.NPM_CLI_JS,\n buildFromSource: options.buildFromSource === true,\n }\n\n const env = getGypEnv(options.frameworkInfo, configuration.platform, configuration.arch, options.buildFromSource === true)\n await executeAppBuilderAndWriteJson([\"rebuild-node-modules\"], configuration, { env, cwd: appDir })\n}\n"]}
|
|
1
|
+
{"version":3,"file":"yarn.js","sourceRoot":"","sources":["../../src/util/yarn.ts"],"names":[],"mappings":";;;AAAA,+CAAkD;AAClD,uCAAqC;AAErC,2BAA4B;AAC5B,6BAA4B;AAG5B,oDAAmD;AACnD,iEAAgE;AAEzD,KAAK,UAAU,gBAAgB,CAAC,MAAqB,EAAE,MAAc,EAAE,OAAuB,EAAE,YAAY,GAAG,KAAK;IACzH,IAAI,uBAAuB,GAAG,KAAK,CAAA;IACnC,KAAK,MAAM,SAAS,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,EAAE;QACnD,IAAI,M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AAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAA;KAC1D;SAAM;QACL,OAAO,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;KACxD;AACH,CAAC;AAED,SAAS,aAAa,CAAC,QAAmC;IACxD,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAA;IACnD,OAAO,OAAO,CAAC,GAAG,CAAC,UAAU,KAAK,MAAM,IAAI,CAAC,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAA;AACnK,CAAC;AAcD,gBAAgB;AACT,KAAK,UAAU,OAAO,CAAC,MAAc,EAAE,eAAwB,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI;IACzF,kBAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,4BAA4B,CAAC,CAAA;IACxD,MAAM,OAAO,GAAmC;QAC9C,SAAS,EAAE,MAAM;QACjB,eAAe,EAAE,MAAM,oCAAkB,CAAC,MAAM,CAAC;QACjD,IAAI;QACJ,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,kBAAG,CAAC,cAAc;KAC1B,CAAA;IACD,IAAI,eAAe,EAAE;QACnB,OAAO,CAAC,iBAAiB,GAAG,4CAA4C,CAAA;KACzE;IACD,OAAO,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;AACzC,CAAC;AAbD,0BAaC","sourcesContent":["import { asArray, log, spawn } from \"builder-util\"\nimport { pathExists } from \"fs-extra\"\nimport { Lazy } from \"lazy-val\"\nimport { homedir } from \"os\"\nimport * as path from \"path\"\nimport { Configuration } from \"../configuration\"\nimport { NodeModuleDirInfo } from \"./packageDependencies\"\nimport * as electronRebuild from \"electron-rebuild\"\nimport { getElectronVersion } from \"../electron/electronVersion\"\n\nexport async function installOrRebuild(config: Configuration, appDir: string, options: RebuildOptions, forceInstall = false) {\n let isDependenciesInstalled = false\n for (const fileOrDir of [\"node_modules\", \".pnp.js\"]) {\n if (await pathExists(path.join(appDir, fileOrDir))) {\n isDependenciesInstalled = true\n break\n }\n }\n\n if (forceInstall || !isDependenciesInstalled) {\n const effectiveOptions: RebuildOptions = {\n buildFromSource: config.buildDependenciesFromSource === true,\n additionalArgs: asArray(config.npmArgs),\n ...options,\n }\n await installDependencies(appDir, effectiveOptions)\n } else {\n await rebuild(appDir, config.buildDependenciesFromSource === true, options.arch)\n }\n}\n\nexport interface DesktopFrameworkInfo {\n version: string\n useCustomDist: boolean\n}\n\nfunction getElectronGypCacheDir() {\n return path.join(homedir(), \".electron-gyp\")\n}\n\nexport function getGypEnv(frameworkInfo: DesktopFrameworkInfo, platform: NodeJS.Platform, arch: string, buildFromSource: boolean) {\n const npmConfigArch = arch === \"armv7l\" ? \"arm\" : arch\n const common: any = {\n ...process.env,\n npm_config_arch: npmConfigArch,\n npm_config_target_arch: npmConfigArch,\n npm_config_platform: platform,\n npm_config_build_from_source: buildFromSource,\n // required for node-pre-gyp\n npm_config_target_platform: platform,\n npm_config_update_binary: true,\n npm_config_fallback_to_build: true,\n }\n\n if (platform !== process.platform) {\n common.npm_config_force = \"true\"\n }\n if (platform === \"win32\" || platform === \"darwin\") {\n common.npm_config_target_libc = \"unknown\"\n }\n\n if (!frameworkInfo.useCustomDist) {\n return common\n }\n\n // https://github.com/nodejs/node-gyp/issues/21\n return {\n ...common,\n npm_config_disturl: \"https://electronjs.org/headers\",\n npm_config_target: frameworkInfo.version,\n npm_config_runtime: \"electron\",\n npm_config_devdir: getElectronGypCacheDir(),\n }\n}\n\nfunction checkYarnBerry() {\n const npmUserAgent = process.env[\"npm_config_user_agent\"] || \"\"\n const regex = /yarn\\/(\\d+)\\./gm\n\n const yarnVersionMatch = regex.exec(npmUserAgent)\n const yarnMajorVersion = Number(yarnVersionMatch?.[1] ?? 0)\n return yarnMajorVersion >= 2\n}\n\nfunction installDependencies(appDir: string, options: RebuildOptions): Promise<any> {\n const platform = options.platform || process.platform\n const arch = options.arch || process.arch\n const additionalArgs = options.additionalArgs\n\n log.info({ platform, arch, appDir }, `installing production dependencies`)\n let execPath = process.env.npm_execpath || process.env.NPM_CLI_JS\n const execArgs = [\"install\"]\n const isYarnBerry = checkYarnBerry()\n if (!isYarnBerry) {\n if (process.env.NPM_NO_BIN_LINKS === \"true\") {\n execArgs.push(\"--no-bin-links\")\n }\n execArgs.push(\"--production\")\n }\n\n if (!isRunningYarn(execPath)) {\n execArgs.push(\"--prefer-offline\")\n }\n\n if (execPath == null) {\n execPath = getPackageToolPath()\n } else if (!isYarnBerry) {\n execArgs.unshift(execPath)\n execPath = process.env.npm_node_execpath || process.env.NODE_EXE || \"node\"\n }\n\n if (additionalArgs != null) {\n execArgs.push(...additionalArgs)\n }\n return spawn(execPath, execArgs, {\n cwd: appDir,\n env: getGypEnv(options.frameworkInfo, platform, arch, options.buildFromSource === true),\n })\n}\n\nexport async function nodeGypRebuild(arch: string) {\n return rebuild(process.cwd(), false, arch)\n}\n\nfunction getPackageToolPath() {\n if (process.env.FORCE_YARN === \"true\") {\n return process.platform === \"win32\" ? \"yarn.cmd\" : \"yarn\"\n } else {\n return process.platform === \"win32\" ? \"npm.cmd\" : \"npm\"\n }\n}\n\nfunction isRunningYarn(execPath: string | null | undefined) {\n const userAgent = process.env.npm_config_user_agent\n return process.env.FORCE_YARN === \"true\" || (execPath != null && path.basename(execPath).startsWith(\"yarn\")) || (userAgent != null && /\\byarn\\b/.test(userAgent))\n}\n\nexport interface RebuildOptions {\n frameworkInfo: DesktopFrameworkInfo\n productionDeps?: Lazy<Array<NodeModuleDirInfo>>\n\n platform?: NodeJS.Platform\n arch?: string\n\n buildFromSource?: boolean\n\n additionalArgs?: Array<string> | null\n}\n\n/** @internal */\nexport async function rebuild(appDir: string, buildFromSource: boolean, arch = process.arch) {\n log.info({ appDir, arch }, \"executing electron-rebuild\")\n const options: electronRebuild.RebuildOptions = {\n buildPath: appDir,\n electronVersion: await getElectronVersion(appDir),\n arch,\n force: true,\n debug: log.isDebugEnabled,\n }\n if (buildFromSource) {\n options.prebuildTagPrefix = \"totally-not-a-real-prefix-to-force-rebuild\"\n }\n return electronRebuild.rebuild(options)\n}\n"]}
|
package/out/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "
|
|
1
|
+
export declare const PACKAGE_VERSION = "24.0.0-alpha.1";
|
package/out/version.js
CHANGED
package/out/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,gBAAgB,CAAA","sourcesContent":["export const PACKAGE_VERSION = \"24.0.0-alpha.1\"\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app-builder-lib",
|
|
3
3
|
"description": "electron-builder lib",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "24.0.0-alpha.1",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"out",
|
|
@@ -53,13 +53,14 @@
|
|
|
53
53
|
"@malept/flatpak-bundler": "^0.4.0",
|
|
54
54
|
"async-exit-hook": "^2.0.1",
|
|
55
55
|
"bluebird-lst": "^1.0.9",
|
|
56
|
-
"builder-util": "23.
|
|
56
|
+
"builder-util": "23.6.0",
|
|
57
57
|
"builder-util-runtime": "9.1.1",
|
|
58
58
|
"chromium-pickle-js": "^0.2.0",
|
|
59
59
|
"debug": "^4.3.4",
|
|
60
60
|
"ejs": "^3.1.7",
|
|
61
61
|
"electron-osx-sign": "^0.6.0",
|
|
62
|
-
"electron-publish": "23.
|
|
62
|
+
"electron-publish": "23.6.0",
|
|
63
|
+
"electron-rebuild": "^3.2.9",
|
|
63
64
|
"form-data": "^4.0.0",
|
|
64
65
|
"fs-extra": "^10.1.0",
|
|
65
66
|
"hosted-git-info": "^4.1.0",
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
"js-yaml": "^4.1.0",
|
|
69
70
|
"lazy-val": "^1.0.5",
|
|
70
71
|
"minimatch": "^3.1.2",
|
|
71
|
-
"read-config-file": "6.2
|
|
72
|
+
"read-config-file": "6.3.2",
|
|
72
73
|
"sanitize-filename": "^1.6.3",
|
|
73
74
|
"semver": "^7.3.7",
|
|
74
75
|
"tar": "^6.1.11",
|
|
@@ -103,8 +104,8 @@
|
|
|
103
104
|
"@types/js-yaml": "4.0.3",
|
|
104
105
|
"@types/semver": "7.3.8",
|
|
105
106
|
"@types/tar": "^6.1.1",
|
|
106
|
-
"dmg-builder": "
|
|
107
|
-
"electron-builder-squirrel-windows": "
|
|
107
|
+
"dmg-builder": "24.0.0-alpha.1",
|
|
108
|
+
"electron-builder-squirrel-windows": "24.0.0-alpha.1"
|
|
108
109
|
},
|
|
109
110
|
"//": "electron-builder-squirrel-windows and dmg-builder added as dev dep for tests (as otherwise `require` doesn't work using Yarn 2)",
|
|
110
111
|
"typings": "./out/index.d.ts"
|
package/scheme.json
CHANGED
|
@@ -2829,7 +2829,7 @@
|
|
|
2829
2829
|
"type": "null"
|
|
2830
2830
|
}
|
|
2831
2831
|
],
|
|
2832
|
-
"description": "The target package type: list of `default`, `dmg`, `mas`, `mas-dev`, `pkg`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`. Defaults to `default` (dmg and zip for Squirrel.Mac)."
|
|
2832
|
+
"description": "The target package type: list of `default`, `dmg`, `mas`, `mas-dev`, `pkg`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`. Defaults to `default` (`dmg` and `zip` for Squirrel.Mac). Note: Squirrel.Mac auto update mechanism requires both `dmg` and `zip` to be enabled, even when only `dmg` is used. Disabling `zip` will break auto update in `dmg` packages."
|
|
2833
2833
|
},
|
|
2834
2834
|
"timestamp": {
|
|
2835
2835
|
"description": "Specify the URL of the timestamp authority server",
|
|
@@ -3447,7 +3447,7 @@
|
|
|
3447
3447
|
"type": "null"
|
|
3448
3448
|
}
|
|
3449
3449
|
],
|
|
3450
|
-
"description": "The target package type: list of `default`, `dmg`, `mas`, `mas-dev`, `pkg`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`. Defaults to `default` (dmg and zip for Squirrel.Mac)."
|
|
3450
|
+
"description": "The target package type: list of `default`, `dmg`, `mas`, `mas-dev`, `pkg`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`. Defaults to `default` (`dmg` and `zip` for Squirrel.Mac). Note: Squirrel.Mac auto update mechanism requires both `dmg` and `zip` to be enabled, even when only `dmg` is used. Disabling `zip` will break auto update in `dmg` packages."
|
|
3451
3451
|
},
|
|
3452
3452
|
"timestamp": {
|
|
3453
3453
|
"description": "Specify the URL of the timestamp authority server",
|
|
@@ -3914,6 +3914,11 @@
|
|
|
3914
3914
|
}
|
|
3915
3915
|
]
|
|
3916
3916
|
},
|
|
3917
|
+
"removeDefaultUninstallWelcomePage": {
|
|
3918
|
+
"default": false,
|
|
3919
|
+
"description": "*assisted installer only.* remove the default uninstall welcome page.",
|
|
3920
|
+
"type": "boolean"
|
|
3921
|
+
},
|
|
3917
3922
|
"runAfterFinish": {
|
|
3918
3923
|
"default": true,
|
|
3919
3924
|
"description": "Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.",
|
|
@@ -4232,6 +4237,11 @@
|
|
|
4232
4237
|
}
|
|
4233
4238
|
]
|
|
4234
4239
|
},
|
|
4240
|
+
"removeDefaultUninstallWelcomePage": {
|
|
4241
|
+
"default": false,
|
|
4242
|
+
"description": "*assisted installer only.* remove the default uninstall welcome page.",
|
|
4243
|
+
"type": "boolean"
|
|
4244
|
+
},
|
|
4235
4245
|
"runAfterFinish": {
|
|
4236
4246
|
"default": true,
|
|
4237
4247
|
"description": "Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.",
|
|
@@ -4450,7 +4460,7 @@
|
|
|
4450
4460
|
]
|
|
4451
4461
|
},
|
|
4452
4462
|
"license": {
|
|
4453
|
-
"description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). In addition to `txt
|
|
4463
|
+
"description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). In addition to `txt`, `rtf` and `html` supported (don't forget to use `target=\"_blank\"` for links).",
|
|
4454
4464
|
"type": [
|
|
4455
4465
|
"null",
|
|
4456
4466
|
"string"
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
${endIf}
|
|
40
40
|
FunctionEnd
|
|
41
41
|
!endif
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
# after change installation directory and before install start, you can show custom page here.
|
|
44
44
|
!ifmacrodef customPageAfterChangeDir
|
|
45
45
|
!insertmacro customPageAfterChangeDir
|
|
46
46
|
!endif
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
!insertmacro MUI_PAGE_INSTFILES
|
|
49
49
|
!ifmacrodef customFinishPage
|
|
50
50
|
!insertmacro customFinishPage
|
|
@@ -65,7 +65,9 @@
|
|
|
65
65
|
!insertmacro MUI_PAGE_FINISH
|
|
66
66
|
!endif
|
|
67
67
|
!else
|
|
68
|
-
!
|
|
68
|
+
!ifndef removeDefaultUninstallWelcomePage
|
|
69
|
+
!insertmacro MUI_UNPAGE_WELCOME
|
|
70
|
+
!endif
|
|
69
71
|
!ifndef INSTALL_MODE_PER_ALL_USERS
|
|
70
72
|
!insertmacro PAGE_INSTALL_MODE
|
|
71
73
|
!endif
|