nw-builder 4.13.7 → 4.13.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/README.md +5 -3
- package/package.json +11 -11
- package/src/bld.js +1 -1
package/README.md
CHANGED
|
@@ -43,6 +43,8 @@ CLI interface:
|
|
|
43
43
|
nwbuild --mode=build --glob=false --flavor=sdk --cacheDir=./node_modules/nw /path/to/project
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
> Note: While using the CLI interface, `/path/to/project` refers to `options.srcDir` in the JavaScript API or JSON object.
|
|
47
|
+
|
|
46
48
|
ESM import:
|
|
47
49
|
|
|
48
50
|
```javascript
|
|
@@ -53,9 +55,9 @@ CJS import:
|
|
|
53
55
|
|
|
54
56
|
```javascript
|
|
55
57
|
let nwbuild;
|
|
56
|
-
import("
|
|
57
|
-
.then((
|
|
58
|
-
nwbuild =
|
|
58
|
+
import("nw-builder")
|
|
59
|
+
.then((moduleObject) => {
|
|
60
|
+
nwbuild = moduleObject;
|
|
59
61
|
})
|
|
60
62
|
.catch((error) => {
|
|
61
63
|
console.error(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.8",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -55,22 +55,22 @@
|
|
|
55
55
|
"demo:cli": "nwbuild --mode=run --flavor=sdk --glob=false --cacheDir=./node_modules/nw ./tests/fixtures/app"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@eslint/js": "^9.
|
|
59
|
-
"@vitest/coverage-v8": "^2.1.
|
|
58
|
+
"@eslint/js": "^9.17.0",
|
|
59
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
60
60
|
"base-volta-off-of-nwjs": "^1.0.5",
|
|
61
|
-
"eslint": "^9.
|
|
62
|
-
"eslint-plugin-jsdoc": "^50.
|
|
63
|
-
"globals": "^15.
|
|
64
|
-
"nw": "^0.
|
|
65
|
-
"selenium-webdriver": "^4.
|
|
61
|
+
"eslint": "^9.17.0",
|
|
62
|
+
"eslint-plugin-jsdoc": "^50.6.1",
|
|
63
|
+
"globals": "^15.14.0",
|
|
64
|
+
"nw": "^0.94.0",
|
|
65
|
+
"selenium-webdriver": "^4.27.0",
|
|
66
66
|
"vitest": "^2.0.4"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"archiver": "^7.0.1",
|
|
70
|
-
"axios": "^1.7.
|
|
71
|
-
"commander": "^
|
|
70
|
+
"axios": "^1.7.9",
|
|
71
|
+
"commander": "^13.0.0",
|
|
72
72
|
"glob": "^11.0.0",
|
|
73
|
-
"node-gyp": "^
|
|
73
|
+
"node-gyp": "^11.0.0",
|
|
74
74
|
"plist": "^3.1.0",
|
|
75
75
|
"resedit": "^2.0.3",
|
|
76
76
|
"semver": "^7.6.3",
|
package/src/bld.js
CHANGED
|
@@ -374,7 +374,7 @@ const compress = async ({
|
|
|
374
374
|
const writeStream = fs.createWriteStream(`${outDir}.zip`);
|
|
375
375
|
archive.pipe(writeStream);
|
|
376
376
|
archive.directory(outDir, false);
|
|
377
|
-
archive.finalize();
|
|
377
|
+
await archive.finalize();
|
|
378
378
|
} else if (zip === 'tar') {
|
|
379
379
|
await tar.create({
|
|
380
380
|
gzip: false,
|