nw-builder 4.8.0 → 4.8.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/package.json +8 -9
- package/src/bld.js +14 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.1",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"Application"
|
|
10
10
|
],
|
|
11
11
|
"author": {
|
|
12
|
-
"name": "Steffen M
|
|
12
|
+
"name": "Steffen MÃÂüller",
|
|
13
13
|
"url": "https://www.mllrsohn.com/"
|
|
14
14
|
},
|
|
15
15
|
"maintainers": [
|
|
@@ -52,26 +52,25 @@
|
|
|
52
52
|
"license-check": "jsgl --local ."
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@stylistic/eslint-plugin-js": "^2.
|
|
56
|
-
"@vitest/coverage-v8": "^2.0.
|
|
55
|
+
"@stylistic/eslint-plugin-js": "^2.6.1",
|
|
56
|
+
"@vitest/coverage-v8": "^2.0.5",
|
|
57
57
|
"base-volta-off-of-nwjs": "^1.0.5",
|
|
58
58
|
"eslint": "^9.8.0",
|
|
59
59
|
"eslint-config-tjw-jsdoc": "^1.0.5",
|
|
60
|
-
"eslint-plugin-jsdoc": "^48.
|
|
60
|
+
"eslint-plugin-jsdoc": "^48.11.0",
|
|
61
61
|
"eslint-plugin-markdown": "^5.0.0",
|
|
62
62
|
"js-green-licenses": "^4.0.0",
|
|
63
63
|
"jsdoc": "^4.0.3",
|
|
64
|
-
"nw": "^0.
|
|
64
|
+
"nw": "^0.90.0",
|
|
65
65
|
"patch-package": "^8.0.0",
|
|
66
66
|
"selenium-webdriver": "^4.23.0",
|
|
67
67
|
"vitest": "^2.0.4"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"archiver": "^7.0.1",
|
|
71
|
-
"axios": "^1.7.
|
|
72
|
-
"cli-progress": "^3.12.0",
|
|
71
|
+
"axios": "^1.7.3",
|
|
73
72
|
"glob": "^11.0.0",
|
|
74
|
-
"node-gyp": "^10.
|
|
73
|
+
"node-gyp": "^10.2.0",
|
|
75
74
|
"plist": "^3.1.0",
|
|
76
75
|
"resedit": "^2.0.2",
|
|
77
76
|
"semver": "^7.6.3",
|
package/src/bld.js
CHANGED
|
@@ -230,21 +230,19 @@ const manageManifest = async ({ nwPkg, managedManifest, outDir, platform }) => {
|
|
|
230
230
|
"utf8",
|
|
231
231
|
);
|
|
232
232
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
: "nwjs.app/Contents/Resources/app.nw",
|
|
239
|
-
),
|
|
233
|
+
const cwd = path.resolve(
|
|
234
|
+
outDir,
|
|
235
|
+
platform !== "osx"
|
|
236
|
+
? "package.nw"
|
|
237
|
+
: "nwjs.app/Contents/Resources/app.nw",
|
|
240
238
|
);
|
|
241
239
|
|
|
242
240
|
if (manifest.packageManager.startsWith("npm")) {
|
|
243
|
-
child_process.execSync(`npm install
|
|
241
|
+
child_process.execSync(`npm install`, { cwd });
|
|
244
242
|
} else if (manifest.packageManager.startsWith("yarn")) {
|
|
245
|
-
child_process.execSync(`yarn install
|
|
243
|
+
child_process.execSync(`yarn install`, { cwd });
|
|
246
244
|
} else if (manifest.packageManager.startsWith("pnpm")) {
|
|
247
|
-
child_process.execSync(`pnpm install
|
|
245
|
+
child_process.execSync(`pnpm install`, { cwd });
|
|
248
246
|
}
|
|
249
247
|
};
|
|
250
248
|
|
|
@@ -420,16 +418,14 @@ const setOsxConfig = async ({ outDir, app }) => {
|
|
|
420
418
|
|
|
421
419
|
const buildNativeAddon = ({ cacheDir, version, platform, arch, outDir, nodeVersion }) => {
|
|
422
420
|
let nodePath = path.resolve(cacheDir, `node-v${version}-${platform}-${arch}`);
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
: "nwjs.app/Contents/Resources/app.nw",
|
|
429
|
-
),
|
|
421
|
+
const cwd = path.resolve(
|
|
422
|
+
outDir,
|
|
423
|
+
platform !== "osx"
|
|
424
|
+
? "package.nw"
|
|
425
|
+
: "nwjs.app/Contents/Resources/app.nw",
|
|
430
426
|
);
|
|
431
427
|
|
|
432
|
-
child_process.execSync(`node-gyp rebuild --target=${nodeVersion} --nodedir=${nodePath}
|
|
428
|
+
child_process.execSync(`node-gyp rebuild --target=${nodeVersion} --nodedir=${nodePath}`, { cwd });
|
|
433
429
|
};
|
|
434
430
|
|
|
435
431
|
const compress = async ({
|