nw-builder 3.7.1 → 3.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.
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.7.2] - 2022-06-02
11
+
12
+ ## Added
13
+
14
+ - Added options `buildType`, `macCredits`, `macPlist`, `zip`, `zipOptions` to CLI [#575](https://github.com/nwjs-community/nw-builder/pull/575)
15
+
16
+ ## Changed
17
+
18
+ - Update lint command [#575](https://github.com/nwjs-community/nw-builder/pull/575)
19
+
10
20
  ## [3.7.1] - 2022-06-02
11
21
 
12
22
  ## Changed
package/bin/nwbuild.cjs CHANGED
@@ -62,12 +62,15 @@ const options = {
62
62
  platforms: argv.platforms ? argv.platforms.split(",") : [currentPlatform],
63
63
  currentPlatform: currentPlatform,
64
64
  version: argv.version,
65
+ macCredits: argv.macCredits || false,
66
+ macPlist: argv.macPlist || false,
65
67
  macIcns: argv.macIcns || false,
66
68
  winIco: argv.winIco || false,
67
69
  cacheDir: argv.cacheDir
68
70
  ? path.resolve(process.cwd(), argv.cacheDir)
69
71
  : path.resolve(__dirname, "..", "cache"),
70
72
  buildDir: path.resolve(process.cwd(), argv.buildDir),
73
+ buildType: argv.buildType || 'default',
71
74
  forceDownload: argv.forceDownload,
72
75
  // get all argv arguments after --
73
76
  argv: process.argv.slice(
@@ -75,6 +78,8 @@ const options = {
75
78
  return el === "--";
76
79
  }) + 1,
77
80
  ),
81
+ zip: argv.zip || null,
82
+ zipOptions: argv.zipOptions || null
78
83
  };
79
84
 
80
85
  // Initialize Builder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-builder",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "description": "Build NW.js desktop applications for Mac, Windows and Linux.",
5
5
  "keywords": [
6
6
  "NW.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "scripts": {
20
20
  "format": "prettier --write ./bin ./lib ./src ./test",
21
- "lint": "eslint ./src",
21
+ "lint": "eslint ./bin/**.cjs ./lib/**.cjs ./src/**.js ./test/**.cjs ",
22
22
  "test": "pnpm test:unit && tape './test/*.cjs'",
23
23
  "test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
24
24
  "demo": "cd ./test/demo && pnpm start",
@@ -34,7 +34,7 @@ test("Should check if we have some files", function (t) {
34
34
  files: "./test/fixtures/nwapp/**/*",
35
35
  });
36
36
 
37
- x.checkFiles().then(function (data) {
37
+ x.checkFiles().then(function () {
38
38
  t.deepEqual(x._appPkg, {
39
39
  name: "nw-demo",
40
40
  version: "0.1.0",
@@ -52,7 +52,7 @@ test("Should take the option name if provided", function (t) {
52
52
  appName: "somename",
53
53
  });
54
54
 
55
- x.checkFiles().then(function (data) {
55
+ x.checkFiles().then(function () {
56
56
  t.equal(x.options.appName, "somename");
57
57
  });
58
58
  });
@@ -253,7 +253,7 @@ test("Should find latest version", function (t) {
253
253
  version: "latest",
254
254
  });
255
255
 
256
- x.resolveLatestVersion().then(function (data) {
256
+ x.resolveLatestVersion().then(function () {
257
257
  t.ok(semver.valid(x.options.version), "Version: " + x.options.version);
258
258
  });
259
259
 
package/test/utils.cjs CHANGED
@@ -32,7 +32,7 @@ test("getPackageInfo invalid", function (t) {
32
32
 
33
33
  test("getPackageInfo valid", function (t) {
34
34
  t.plan(2);
35
- var pkg = utils
35
+ utils
36
36
  .getPackageInfo("./test/fixtures/nwapp/package.json")
37
37
  .then(function (pkg) {
38
38
  t.equal(pkg.name, "nw-demo", "get package name");
@@ -154,7 +154,7 @@ test("getFileList", function (t) {
154
154
  });
155
155
 
156
156
  utils.getFileList("./test/fixtures/nwapp/images/**").then(
157
- function (data) {},
157
+ function () {},
158
158
  function (error) {
159
159
  t.equal(
160
160
  error,
@@ -165,7 +165,7 @@ test("getFileList", function (t) {
165
165
  );
166
166
 
167
167
  utils.getFileList("./test/fixtures/nwapp/images/*.js").then(
168
- function (data) {},
168
+ function () {},
169
169
  function (error) {
170
170
  t.equal(error, "No files matching");
171
171
  },
@@ -272,7 +272,7 @@ testSetup({
272
272
  var unzipper = new DecompressZip(nwfile),
273
273
  unzipDestination = "test/temp/platform-specific-unzipped";
274
274
 
275
- unzipper.on("extract", function (log) {
275
+ unzipper.on("extract", function () {
276
276
  t.equal(
277
277
  fs
278
278
  .readFileSync(path.join(unzipDestination, "package.json"))
package/test/versions.cjs CHANGED
@@ -1,6 +1,5 @@
1
1
  var test = require("tape"),
2
- nock = require("nock"),
3
- _ = require("lodash");
2
+ nock = require("nock");
4
3
 
5
4
  var versions = require("../lib/versions.cjs");
6
5