nw-builder 4.7.6 → 4.7.8
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 +14 -15
- package/src/get/request.js +1 -3
- package/src/postinstall.js +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.8",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -41,45 +41,44 @@
|
|
|
41
41
|
"url": "https://github.com/nwutils/nw-builder.git"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"postinstall": "
|
|
44
|
+
"postinstall": "node ./src/postinstall.js",
|
|
45
45
|
"lint": "eslint ./src/**/*.js ./test/**/*.js",
|
|
46
46
|
"lint:fix": "eslint --fix ./src/**/*.js ./test/**/*.js",
|
|
47
47
|
"markdown:fix": "markdownlint --fix ./README.md",
|
|
48
48
|
"docs": "jsdoc -d docs ./README.md ./src/index.js ./src/get.js ./src/run.js ./src/bld.js",
|
|
49
49
|
"test": "vitest run --coverage",
|
|
50
|
-
"
|
|
50
|
+
"test:cov": "vitest --coverage.enabled true",
|
|
51
|
+
"demo": "cd test/fixture && node demo.js",
|
|
52
|
+
"tmp": "vitest --coverage.enabled true"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
53
|
-
"@stylistic/eslint-plugin-js": "^2.
|
|
55
|
+
"@stylistic/eslint-plugin-js": "^2.3.0",
|
|
54
56
|
"@vitest/coverage-v8": "^1.6.0",
|
|
55
57
|
"base-volta-off-of-nwjs": "^1.0.5",
|
|
56
|
-
"eslint": "^9.
|
|
58
|
+
"eslint": "^9.6.0",
|
|
57
59
|
"eslint-config-tjw-jsdoc": "^1.0.5",
|
|
58
|
-
"eslint-plugin-jsdoc": "^48.
|
|
60
|
+
"eslint-plugin-jsdoc": "^48.5.0",
|
|
59
61
|
"eslint-plugin-markdown": "^5.0.0",
|
|
60
62
|
"jsdoc": "^4.0.3",
|
|
61
|
-
"nw": "^0.
|
|
62
|
-
"selenium-webdriver": "^4.
|
|
63
|
+
"nw": "^0.89.0",
|
|
64
|
+
"selenium-webdriver": "^4.22.0",
|
|
63
65
|
"vitest": "^1.6.0"
|
|
64
66
|
},
|
|
65
67
|
"dependencies": {
|
|
66
68
|
"axios": "^1.7.2",
|
|
67
69
|
"cli-progress": "^3.12.0",
|
|
68
70
|
"compressing": "^1.10.1",
|
|
69
|
-
"glob": "^10.4.
|
|
71
|
+
"glob": "^10.4.2",
|
|
70
72
|
"node-gyp": "^10.1.0",
|
|
71
73
|
"plist": "^3.1.0",
|
|
72
74
|
"resedit": "^2.0.2",
|
|
73
75
|
"semver": "^7.6.2",
|
|
74
|
-
"tar": "^7.
|
|
76
|
+
"tar": "^7.4.0",
|
|
75
77
|
"yargs": "^17.7.2",
|
|
76
78
|
"yauzl-promise": "^4.0.0"
|
|
77
79
|
},
|
|
78
|
-
"packageManager": "npm@10.
|
|
79
|
-
"engines": {
|
|
80
|
-
"node": ">=14"
|
|
81
|
-
},
|
|
80
|
+
"packageManager": "npm@10.8.1",
|
|
82
81
|
"volta": {
|
|
83
|
-
"node": "22.
|
|
82
|
+
"node": "22.2.0"
|
|
84
83
|
}
|
|
85
84
|
}
|
package/src/get/request.js
CHANGED
|
@@ -23,7 +23,5 @@ export default async function request(url, filePath) {
|
|
|
23
23
|
responseType: "stream"
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
response.data
|
|
27
|
-
|
|
28
|
-
// await stream.promises.pipeline(response.data, writeStream);
|
|
26
|
+
await stream.promises.pipeline(response.data, writeStream);
|
|
29
27
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import child_process from 'node:child_process';
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import url from 'node:url';
|
|
5
|
+
|
|
6
|
+
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
7
|
+
|
|
8
|
+
const baseVoltaPath = path.resolve(path.join(__dirname, '..', 'node_modules', 'base-volta-off-of-nwjs', 'index.js'));
|
|
9
|
+
|
|
10
|
+
/* Execute the script in development mode only since it is used during testing */
|
|
11
|
+
if (fs.existsSync(baseVoltaPath)) {
|
|
12
|
+
child_process.execSync('node ' + baseVoltaPath);
|
|
13
|
+
}
|