nw-builder 4.7.3 → 4.7.4
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 +4 -4
- package/src/cli.js +25 -16
- package/src/index.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
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.
|
|
55
|
+
"eslint-plugin-jsdoc": "^48.2.4",
|
|
56
56
|
"eslint-plugin-markdown": "^5.0.0",
|
|
57
57
|
"jsdoc": "^4.0.3",
|
|
58
58
|
"selenium-webdriver": "^4.20.0",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"axios": "^1.6.8",
|
|
63
63
|
"cli-progress": "^3.12.0",
|
|
64
64
|
"compressing": "^1.10.0",
|
|
65
|
-
"glob": "^10.3.
|
|
65
|
+
"glob": "^10.3.14",
|
|
66
66
|
"node-gyp": "^10.1.0",
|
|
67
67
|
"plist": "^3.1.0",
|
|
68
68
|
"rcedit": "^4.0.1",
|
|
69
|
-
"semver": "^7.6.
|
|
69
|
+
"semver": "^7.6.2",
|
|
70
70
|
"tar": "^7.1.0",
|
|
71
71
|
"yargs": "^17.7.2",
|
|
72
72
|
"yauzl-promise": "^4.0.0"
|
package/src/cli.js
CHANGED
|
@@ -34,14 +34,6 @@ const cli = yargs(yargs_helpers.hideBin(process.argv))
|
|
|
34
34
|
description: "NW.js supported architecture",
|
|
35
35
|
choices: ["ia32", "x64", "arm64"]
|
|
36
36
|
})
|
|
37
|
-
.option("outDir", {
|
|
38
|
-
type: "string",
|
|
39
|
-
description: "NW.js build artifacts",
|
|
40
|
-
})
|
|
41
|
-
.option("cacheDir", {
|
|
42
|
-
type: "string",
|
|
43
|
-
description: "Cache NW.js binaries",
|
|
44
|
-
})
|
|
45
37
|
.option("downloadUrl", {
|
|
46
38
|
type: "string",
|
|
47
39
|
description: "NW.js download server",
|
|
@@ -50,9 +42,13 @@ const cli = yargs(yargs_helpers.hideBin(process.argv))
|
|
|
50
42
|
type: "string",
|
|
51
43
|
description: "NW.js version info",
|
|
52
44
|
})
|
|
53
|
-
.option("
|
|
54
|
-
type: "
|
|
55
|
-
description: "
|
|
45
|
+
.option("cacheDir", {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "Cache NW.js binaries",
|
|
48
|
+
})
|
|
49
|
+
.option("outDir", {
|
|
50
|
+
type: "string",
|
|
51
|
+
description: "NW.js build artifacts",
|
|
56
52
|
})
|
|
57
53
|
.option("app", {
|
|
58
54
|
type: "object",
|
|
@@ -62,20 +58,33 @@ const cli = yargs(yargs_helpers.hideBin(process.argv))
|
|
|
62
58
|
type: "boolean",
|
|
63
59
|
description: "Flag to enable/disable caching",
|
|
64
60
|
})
|
|
65
|
-
.option("zip", {
|
|
66
|
-
type: "string",
|
|
67
|
-
description: "Flag to enable/disable compression",
|
|
68
|
-
choices: ["zip", "tar", "tgz"]
|
|
69
|
-
})
|
|
70
61
|
.option("ffmpeg", {
|
|
71
62
|
type: "boolean",
|
|
72
63
|
description: "Flag to enable/disable downloading community ffmpeg",
|
|
73
64
|
})
|
|
65
|
+
.option("glob", {
|
|
66
|
+
type: "boolean",
|
|
67
|
+
description: "Flag to enable/disable globbing",
|
|
68
|
+
})
|
|
74
69
|
.option("logLevel", {
|
|
75
70
|
type: "string",
|
|
76
71
|
description: "Specify log level",
|
|
77
72
|
choices: ["error", "warn", "info", "debug"]
|
|
78
73
|
})
|
|
74
|
+
.option("zip", {
|
|
75
|
+
type: "string",
|
|
76
|
+
description: "Flag to enable/disable compression",
|
|
77
|
+
choices: ["zip", "tar", "tgz"]
|
|
78
|
+
})
|
|
79
|
+
.option("managedManifest", {
|
|
80
|
+
type: "string",
|
|
81
|
+
description: "Managed manifest mode",
|
|
82
|
+
})
|
|
83
|
+
.option("nodeAddon", {
|
|
84
|
+
type: "string",
|
|
85
|
+
description: "Download NW.js Node headers",
|
|
86
|
+
choices: [false, "gyp"]
|
|
87
|
+
})
|
|
79
88
|
.strictOptions()
|
|
80
89
|
.parse();
|
|
81
90
|
|
package/src/index.js
CHANGED
|
@@ -19,14 +19,14 @@ import util from "./util.js";
|
|
|
19
19
|
* @property {"./cache" | string} [cacheDir="./cache"] Directory to cache NW binaries
|
|
20
20
|
* @property {"./" | string} [srcDir="./"] File paths to application code
|
|
21
21
|
* @property {"./out" | string} [outDir="./out"] Directory to store build artifacts
|
|
22
|
-
* @property {boolean | string | object} [managedManifest = false] Managed manifest mode
|
|
23
|
-
* @property {false | "gyp"} [nodeAddon = false] Rebuild Node native addons
|
|
24
22
|
* @property {object} app Refer to Linux/Windows Specific Options under Getting Started in the docs
|
|
25
23
|
* @property {boolean} [cache=true] If true the existing cache is used. Otherwise it removes and redownloads it.
|
|
26
24
|
* @property {boolean} [ffmpeg=false] If true the chromium ffmpeg is replaced by community version
|
|
27
25
|
* @property {boolean} [glob=true] If true file globbing is enabled when parsing srcDir.
|
|
28
|
-
* @property {"error" | "warn" | "info" | "debug"} [logLevel="info"] Specify level of logging.
|
|
26
|
+
* @property {"error" | "warn" | "info" | "debug"} [logLevel="info"] Specify level of logging.
|
|
29
27
|
* @property {boolean | "zip" | "tar" | "tgz"} [zip=false] If true, "zip", "tar" or "tgz" the outDir directory is compressed.
|
|
28
|
+
* @property {boolean | string | object} [managedManifest = false] Managed manifest mode
|
|
29
|
+
* @property {false | "gyp"} [nodeAddon = false] Rebuild Node native addons
|
|
30
30
|
* @property {boolean} [cli=false] If true the CLI is used to parse options. This option is used internally.
|
|
31
31
|
*/
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@ import util from "./util.js";
|
|
|
35
35
|
*
|
|
36
36
|
* @async
|
|
37
37
|
* @function
|
|
38
|
-
*
|
|
38
|
+
*
|
|
39
39
|
* @param {Options} options Options
|
|
40
40
|
* @return {Promise<void>}
|
|
41
41
|
*/
|