nw-builder 4.14.2 → 4.16.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/package.json +13 -13
- package/src/util.js +6 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.16.0",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -52,33 +52,33 @@
|
|
|
52
52
|
"demo:exe:linux": "./tests/fixtures/out/linux/Demo",
|
|
53
53
|
"demo:exe:osx": "./tests/fixtures/out/osx/Demo.app/Contents/MacOS/Demo",
|
|
54
54
|
"demo:exe:win": "./tests/fixtures/out/win/Demo.exe",
|
|
55
|
-
"demo:cli": "nwbuild --mode=build --flavor=sdk --glob=false --cacheDir=./node_modules/nw --logLevel=debug --outDir=./tests/fixtures/out/linux --app.name=Demo --app.icon=./tests/fixtures/app/icon.png ./tests/fixtures/app"
|
|
55
|
+
"demo:cli": "nwbuild --mode=build --flavor=sdk --glob=false --cacheDir=./node_modules/nw --logLevel=debug --managedManifest=./tests/fixtures/app/package.json --outDir=./tests/fixtures/out/linux --app.name=Demo --app.icon=./tests/fixtures/app/icon.png ./tests/fixtures/app"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@eslint/js": "^9.
|
|
58
|
+
"@eslint/js": "^9.37.0",
|
|
59
59
|
"@vitest/coverage-v8": "^3.2.4",
|
|
60
60
|
"base-volta-off-of-nwjs": "^1.0.5",
|
|
61
|
-
"eslint": "^9.
|
|
62
|
-
"eslint-plugin-jsdoc": "^
|
|
63
|
-
"globals": "^16.
|
|
64
|
-
"nw": "^0.
|
|
65
|
-
"selenium-webdriver": "^4.
|
|
61
|
+
"eslint": "^9.37.0",
|
|
62
|
+
"eslint-plugin-jsdoc": "^60.8.1",
|
|
63
|
+
"globals": "^16.4.0",
|
|
64
|
+
"nw": "^0.104.0",
|
|
65
|
+
"selenium-webdriver": "^4.36.0",
|
|
66
66
|
"vitest": "^3.0.7"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"archiver": "^7.0.1",
|
|
70
|
-
"axios": "^1.
|
|
71
|
-
"commander": "^14.0.
|
|
70
|
+
"axios": "^1.12.2",
|
|
71
|
+
"commander": "^14.0.1",
|
|
72
72
|
"glob": "^11.0.3",
|
|
73
|
-
"node-gyp": "^11.
|
|
73
|
+
"node-gyp": "^11.4.2",
|
|
74
74
|
"plist": "^3.1.0",
|
|
75
75
|
"resedit": "^2.0.3",
|
|
76
76
|
"semver": "^7.7.2",
|
|
77
|
-
"tar": "^7.
|
|
77
|
+
"tar": "^7.5.1",
|
|
78
78
|
"yauzl-promise": "^4.0.0"
|
|
79
79
|
},
|
|
80
80
|
"volta": {
|
|
81
|
-
"node": "24.
|
|
81
|
+
"node": "24.7.0",
|
|
82
82
|
"npm": "11.5.2"
|
|
83
83
|
}
|
|
84
84
|
}
|
package/src/util.js
CHANGED
|
@@ -176,16 +176,14 @@ async function getNodeManifest({
|
|
|
176
176
|
/**
|
|
177
177
|
* Function to convert `'true'` and `'false'` into `true` and `false`.
|
|
178
178
|
* `commander` does not do the conversion automatically.
|
|
179
|
-
* @param {
|
|
180
|
-
* @returns {
|
|
179
|
+
* @param {string} option - a boolean type option
|
|
180
|
+
* @returns {true | false | string} `true`, `false` or file path
|
|
181
181
|
*/
|
|
182
182
|
function str2Bool(option) {
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
183
|
+
if (option === 'true') {
|
|
184
|
+
return true;
|
|
185
|
+
} else if (option === 'false') {
|
|
186
|
+
return false;
|
|
189
187
|
} else {
|
|
190
188
|
return option;
|
|
191
189
|
}
|