nw-builder 4.14.1 → 4.15.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-builder",
3
- "version": "4.14.1",
3
+ "version": "4.15.0",
4
4
  "description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
5
5
  "keywords": [
6
6
  "NW.js",
@@ -55,14 +55,14 @@
55
55
  "demo:cli": "nwbuild --mode=build --flavor=sdk --glob=false --cacheDir=./node_modules/nw --logLevel=debug --outDir=./tests/fixtures/out/linux --app.name=Demo --app.icon=./tests/fixtures/app/icon.png ./tests/fixtures/app"
56
56
  },
57
57
  "devDependencies": {
58
- "@eslint/js": "^9.32.0",
58
+ "@eslint/js": "^9.33.0",
59
59
  "@vitest/coverage-v8": "^3.2.4",
60
60
  "base-volta-off-of-nwjs": "^1.0.5",
61
- "eslint": "^9.32.0",
62
- "eslint-plugin-jsdoc": "^52.0.2",
61
+ "eslint": "^9.33.0",
62
+ "eslint-plugin-jsdoc": "^54.1.0",
63
63
  "globals": "^16.3.0",
64
- "nw": "^0.102.0",
65
- "selenium-webdriver": "^4.34.0",
64
+ "nw": "^0.102.1",
65
+ "selenium-webdriver": "^4.35.0",
66
66
  "vitest": "^3.0.7"
67
67
  },
68
68
  "dependencies": {
@@ -78,7 +78,7 @@
78
78
  "yauzl-promise": "^4.0.0"
79
79
  },
80
80
  "volta": {
81
- "node": "24.3.0",
81
+ "node": "24.5.0",
82
82
  "npm": "11.5.2"
83
83
  }
84
84
  }
package/src/bld.js CHANGED
@@ -340,7 +340,7 @@ const setWinConfig = async ({ app, outDir }) => {
340
340
  lang: EN_US,
341
341
  codepage: 1200,
342
342
  });
343
- vi.lang=app.languageCode;
343
+ vi.lang = app.languageCode;
344
344
  }
345
345
  vi.setFileVersion(app.fileVersion, app.languageCode);
346
346
  vi.setProductVersion(app.productVersion, app.languageCode);
package/src/util.js CHANGED
@@ -240,9 +240,6 @@ export const parse = async (options, pkg) => {
240
240
  }
241
241
  /* Path to where the icon currently is in the filesystem */
242
242
  options.app.icon = options.app.icon ?? pkg.window?.icon ?? undefined;
243
- if (options.app.icon) {
244
- options.app.icon = path.resolve(options.app.icon);
245
- }
246
243
 
247
244
  // TODO(#737): move this out
248
245
  if (options.platform === 'linux') {
@@ -255,11 +252,8 @@ export const parse = async (options, pkg) => {
255
252
  options.app.notShowIn = options.app.notShowIn ?? undefined;
256
253
  options.app.dBusActivatable = options.app.dBusActivatable ?? undefined;
257
254
  options.app.tryExec = options.app.tryExec ?? undefined;
258
- options.app.exec = options.app.exec ?? undefined;
259
- if (options.app.exec) {
260
- options.app.exec = path.resolve(options.app.exec);
261
- }
262
- options.app.path = options.app.path ?? undefined;
255
+ options.app.exec = options.app.exec ? path.resolve(options.app.exec) : options.app.name ?? undefined;
256
+ options.app.path = options.app.path ?? options.outDir ?? undefined;
263
257
  options.app.terminal = options.app.terminal ?? undefined;
264
258
  options.app.actions = options.app.actions ?? undefined;
265
259
  options.app.mimeType = options.app.mimeType ?? undefined;