nw-builder 4.17.8 → 4.17.9

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/README.md CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
  Build [NW.js](https://github.com/nwjs/nw.js) applications for Mac, Windows and Linux.
7
7
 
8
+ > The `stable` tag is deprecated and will be removed. Please use the default `latest` tag.
9
+
8
10
  ## Major Features
9
11
 
10
12
  - Get, run or build applications.
@@ -166,7 +168,7 @@ Setting it to a `string` implies that you are passing the file path to the NW ma
166
168
  ```javascript
167
169
  nwbuild({
168
170
  mode: "build",
169
- managedManifest: "./nw.js",
171
+ managedManifest: "./nw.json",
170
172
  });
171
173
  ```
172
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-builder",
3
- "version": "4.17.8",
3
+ "version": "4.17.9",
4
4
  "description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
5
5
  "keywords": [
6
6
  "NW.js",
@@ -73,6 +73,7 @@
73
73
  "glob": "^13.0.6",
74
74
  "plist": "^3.1.1",
75
75
  "resedit": "^3.0.2",
76
+ "semver": "^7.7.4",
76
77
  "tar": "^7.5.10"
77
78
  },
78
79
  "volta": {
package/src/bld/osx.js CHANGED
@@ -4,6 +4,7 @@ import path from 'node:path';
4
4
  import process from 'node:process';
5
5
 
6
6
  import plist from 'plist';
7
+ import semver from 'semver';
7
8
 
8
9
  /**
9
10
  * Function to update Helper App Plist Files
@@ -25,12 +26,13 @@ async function updateHelperPlist (plistPath, helperName, helperId, appCFBundleId
25
26
  /**
26
27
  *
27
28
  * @param {object} options - Options.
29
+ * @param {string} options.version - NW.js version.
28
30
  * @param {object} options.app - Application configuration.
29
31
  * @param {string} options.outDir - Output directory.
30
32
  * @param {string} options.releaseInfo - Release information.
31
33
  * @returns {Promise<void>} - Promise.
32
34
  */
33
- export default async function setOsxConfig({ app, outDir, releaseInfo }) {
35
+ export default async function setOsxConfig({ version, app, outDir, releaseInfo }) {
34
36
  if (process.platform === 'win32') {
35
37
  console.warn(
36
38
  'MacOS apps built on Windows platform do not preserve all file permissions. See #716',
@@ -81,6 +83,11 @@ export default async function setOsxConfig({ app, outDir, releaseInfo }) {
81
83
  { name: 'nwjs Helper.app', id: 'helper' },
82
84
  ];
83
85
 
86
+ /* MacOS Plugin Helper is removed in NW.js v0.111.0 (Chromium M148) */
87
+ if (semver.lt(version, "0.111.0")) {
88
+ helperApps.push({ name: 'nwjs Helper (Plugin).app', id: 'helper.plugin' });
89
+ }
90
+
84
91
  for (const helperApp of helperApps) {
85
92
  const newHelperAppName = helperApp.name.replace(/^nwjs/, app.name);
86
93
  const oldPath = path.resolve(helperBaseDir, helperApp.name);