nw-builder 4.7.2 → 4.7.3

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.
Files changed (3) hide show
  1. package/README.md +0 -2
  2. package/package.json +1 -1
  3. package/src/cli.js +9 -2
package/README.md CHANGED
@@ -303,7 +303,6 @@ nwbuild({
303
303
 
304
304
  ### Chores
305
305
 
306
- - chore(cli): migrate from `yargs` to `commander`
307
306
  - chore(get): verify sha checksum for downloads
308
307
  - chore: annotate file paths as `fs.PathLike` instead of `string`.
309
308
  - chore(bld): factor out core build step
@@ -314,7 +313,6 @@ nwbuild({
314
313
  - chore(bld): factor out compressing
315
314
  - chore(bld): factor out managed manifest
316
315
  - chore(bld): move `.desktop` entry file logic to `create-desktop-shortcuts` package
317
- - chore(util): factor out file paths as constant variables
318
316
 
319
317
  ## FAQ
320
318
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-builder",
3
- "version": "4.7.2",
3
+ "version": "4.7.3",
4
4
  "description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
5
5
  "keywords": [
6
6
  "NW.js",
package/src/cli.js CHANGED
@@ -12,7 +12,8 @@ const cli = yargs(yargs_helpers.hideBin(process.argv))
12
12
  .command("[srcDir] [options]")
13
13
  .option("mode", {
14
14
  type: "string",
15
- description: "`run` or `build` application",
15
+ description: "`get`, `run` or `build` application",
16
+ choices: ["get", "run", "build"]
16
17
  })
17
18
  .option("version", {
18
19
  type: "string",
@@ -21,14 +22,17 @@ const cli = yargs(yargs_helpers.hideBin(process.argv))
21
22
  .option("flavor", {
22
23
  type: "string",
23
24
  description: "NW.js build flavor",
25
+ choices: ["normal", "sdk"]
24
26
  })
25
27
  .option("platform", {
26
28
  type: "string",
27
29
  description: "NW.js supported platform",
30
+ choices: ["linux", "osx", "win"]
28
31
  })
29
32
  .option("arch", {
30
33
  type: "string",
31
34
  description: "NW.js supported architecture",
35
+ choices: ["ia32", "x64", "arm64"]
32
36
  })
33
37
  .option("outDir", {
34
38
  type: "string",
@@ -61,15 +65,18 @@ const cli = yargs(yargs_helpers.hideBin(process.argv))
61
65
  .option("zip", {
62
66
  type: "string",
63
67
  description: "Flag to enable/disable compression",
68
+ choices: ["zip", "tar", "tgz"]
64
69
  })
65
70
  .option("ffmpeg", {
66
- type: "string",
71
+ type: "boolean",
67
72
  description: "Flag to enable/disable downloading community ffmpeg",
68
73
  })
69
74
  .option("logLevel", {
70
75
  type: "string",
71
76
  description: "Specify log level",
77
+ choices: ["error", "warn", "info", "debug"]
72
78
  })
79
+ .strictOptions()
73
80
  .parse();
74
81
 
75
82
  nwbuild({