nw-builder 4.7.0 → 4.7.2
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 +1 -2
- package/package.json +11 -11
- package/src/get/decompress.js +3 -2
- package/src/get/index.js +1 -0
package/README.md
CHANGED
|
@@ -268,7 +268,6 @@ nwbuild({
|
|
|
268
268
|
|
|
269
269
|
- We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) style of commit messages.
|
|
270
270
|
- On opening a new PR, the comments will guide you on how to construct the new PR.
|
|
271
|
-
- When making changes, try to follow [SOLID](https://en.wikipedia.org/wiki/SOLID) and [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principles.
|
|
272
271
|
- Pull requests are squashed and merged onto the `main` branch.
|
|
273
272
|
- PR title is used as commit's first line, PR description is used as commit body.
|
|
274
273
|
- Only commit messages starting with `fix`, `feat` and `chore` are recognised by the Release Please bot.
|
|
@@ -280,7 +279,7 @@ nwbuild({
|
|
|
280
279
|
- Approve pull requests before merging.
|
|
281
280
|
- Enforce conventional commits before merging pull requests.
|
|
282
281
|
- A commit's first line should be formatted as `<type>[optional scope]: <description>`.
|
|
283
|
-
- A commit's body should have a description of changes in bullet points followed by any links it references or issues it fixes or closes.
|
|
282
|
+
- A commit's body should have a description of changes in bullet points followed by any links it references or issues it fixes or closes.
|
|
284
283
|
- Google's Release Please Action is used to update the changelog, bump the package version and generate GitHub releases.
|
|
285
284
|
- NPM Publish Action publishes to `npm` if there is a version bump.
|
|
286
285
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.2",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -49,25 +49,25 @@
|
|
|
49
49
|
"demo": "cd test/fixture && node demo.js"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@stylistic/eslint-plugin-js": "^1.
|
|
52
|
+
"@stylistic/eslint-plugin-js": "^2.1.0",
|
|
53
53
|
"eslint": "^8.57.0",
|
|
54
54
|
"eslint-config-tjw-jsdoc": "^1.0.5",
|
|
55
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
56
|
-
"eslint-plugin-markdown": "^
|
|
57
|
-
"jsdoc": "^4.0.
|
|
58
|
-
"selenium-webdriver": "^4.
|
|
59
|
-
"vitest": "^1.
|
|
55
|
+
"eslint-plugin-jsdoc": "^48.2.3",
|
|
56
|
+
"eslint-plugin-markdown": "^5.0.0",
|
|
57
|
+
"jsdoc": "^4.0.3",
|
|
58
|
+
"selenium-webdriver": "^4.20.0",
|
|
59
|
+
"vitest": "^1.6.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"axios": "^1.6.8",
|
|
63
63
|
"cli-progress": "^3.12.0",
|
|
64
64
|
"compressing": "^1.10.0",
|
|
65
|
-
"glob": "^10.3.
|
|
66
|
-
"node-gyp": "^10.0
|
|
65
|
+
"glob": "^10.3.12",
|
|
66
|
+
"node-gyp": "^10.1.0",
|
|
67
67
|
"plist": "^3.1.0",
|
|
68
68
|
"rcedit": "^4.0.1",
|
|
69
|
-
"semver": "^7.6.
|
|
70
|
-
"tar": "^
|
|
69
|
+
"semver": "^7.6.1",
|
|
70
|
+
"tar": "^7.1.0",
|
|
71
71
|
"yargs": "^17.7.2",
|
|
72
72
|
"yauzl-promise": "^4.0.0"
|
|
73
73
|
},
|
package/src/get/decompress.js
CHANGED
|
@@ -2,7 +2,7 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import stream from "node:stream";
|
|
4
4
|
|
|
5
|
-
import tar from "tar";
|
|
5
|
+
import * as tar from "tar";
|
|
6
6
|
import yauzl from "yauzl-promise";
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -26,7 +26,7 @@ export default async function decompress(filePath, cacheDir) {
|
|
|
26
26
|
* Get file mode from entry. Reference implementation is [here](https://github.com/fpsqdb/zip-lib/blob/ac447d269218d396e05cd7072d0e9cd82b5ec52c/src/unzip.ts#L380).
|
|
27
27
|
*
|
|
28
28
|
* @param {yauzl.Entry} entry - Yauzl entry
|
|
29
|
-
* @return {number} - entry's file mode
|
|
29
|
+
* @return {number} - entry's file mode
|
|
30
30
|
*/
|
|
31
31
|
function modeFromEntry(entry) {
|
|
32
32
|
const attr = entry.externalFileAttributes >> 16 || 33188;
|
|
@@ -93,4 +93,5 @@ async function unzip(zippedFile, cacheDir) {
|
|
|
93
93
|
await fs.promises.symlink(linkTarget, entryPathAbs);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
await zip.close();
|
|
96
97
|
}
|