nw-builder 4.3.1 → 4.3.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/package.json +3 -2
- package/src/cli.js +36 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"doc:bld": "vitepress build doc",
|
|
47
47
|
"test:unit": "node --test-reporter=spec --test test/unit/index.js",
|
|
48
48
|
"test:e2e": "node --test-reporter=spec --test test/e2e/index.js",
|
|
49
|
-
"test:
|
|
49
|
+
"test:mod": "cd test/fixture && node demo.js",
|
|
50
|
+
"test:cli": "cd test/fixture && nwbuild --platform win --arch x64 --outDir out --no-glob app"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"eslint": "^8.44.0",
|
package/src/cli.js
CHANGED
|
@@ -32,6 +32,42 @@ const cli = yargs(hideBin(process.argv))
|
|
|
32
32
|
type: "string",
|
|
33
33
|
description: "NW.js build artifacts",
|
|
34
34
|
})
|
|
35
|
+
.option("cacheDir", {
|
|
36
|
+
type: "string",
|
|
37
|
+
description: "Cache NW.js binaries",
|
|
38
|
+
})
|
|
39
|
+
.option("downloadUrl", {
|
|
40
|
+
type: "string",
|
|
41
|
+
description: "NW.js download server",
|
|
42
|
+
})
|
|
43
|
+
.option("manifestUrl", {
|
|
44
|
+
type: "string",
|
|
45
|
+
description: "NW.js version info",
|
|
46
|
+
})
|
|
47
|
+
.option("glob", {
|
|
48
|
+
type: "boolean",
|
|
49
|
+
description: "Flag to enable/disable globbing",
|
|
50
|
+
})
|
|
51
|
+
.option("app", {
|
|
52
|
+
type: "object",
|
|
53
|
+
description: "Platform specific app metadata. Refer to docs for more info",
|
|
54
|
+
})
|
|
55
|
+
.option("cache", {
|
|
56
|
+
type: "boolean",
|
|
57
|
+
description: "Flag to enable/disable caching",
|
|
58
|
+
})
|
|
59
|
+
.option("zip", {
|
|
60
|
+
type: "string",
|
|
61
|
+
description: "Flag to enable/disable compression",
|
|
62
|
+
})
|
|
63
|
+
.option("ffmpeg", {
|
|
64
|
+
type: "string",
|
|
65
|
+
description: "Flag to enable/disable downloading community ffmpeg",
|
|
66
|
+
})
|
|
67
|
+
.option("logLevel", {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "Specify log level",
|
|
70
|
+
})
|
|
35
71
|
.parse();
|
|
36
72
|
|
|
37
73
|
nwbuild({
|