nw-builder 4.13.12 → 4.13.14
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 +4 -3
- package/package.json +6 -6
- package/src/bld.js +2 -1
package/README.md
CHANGED
|
@@ -9,9 +9,8 @@ Build [NW.js](https://github.com/nwjs/nw.js) applications for Mac, Windows and L
|
|
|
9
9
|
|
|
10
10
|
- Get, run or build applications.
|
|
11
11
|
- Integrate [FFmpeg community builds](https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt)
|
|
12
|
-
- Configure executable fields and
|
|
12
|
+
- Configure executable fields, icons and rename Helper apps
|
|
13
13
|
- Downloading from mirrors
|
|
14
|
-
- Node Native Addon support (partial)
|
|
15
14
|
|
|
16
15
|
## Table of Contents
|
|
17
16
|
|
|
@@ -185,7 +184,9 @@ nwbuild({
|
|
|
185
184
|
|
|
186
185
|
#### Rebuild Node addons
|
|
187
186
|
|
|
188
|
-
Currently this feature is
|
|
187
|
+
> Currently this feature is disabled and it may be removed in the future.
|
|
188
|
+
|
|
189
|
+
It only builds node addons which have a `binding.gyp` file in the `srcDir`. There are plans to support nan, cmake, ffi and gn and auto rebuild native addons which are installed as node modules.
|
|
189
190
|
|
|
190
191
|
```javascript
|
|
191
192
|
nwbuild({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw-builder",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.14",
|
|
4
4
|
"description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NW.js",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"@vitest/coverage-v8": "^3.1.3",
|
|
60
60
|
"base-volta-off-of-nwjs": "^1.0.5",
|
|
61
61
|
"eslint": "^9.26.0",
|
|
62
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
63
|
-
"globals": "^16.
|
|
64
|
-
"nw": "^0.99.
|
|
62
|
+
"eslint-plugin-jsdoc": "^50.6.17",
|
|
63
|
+
"globals": "^16.1.0",
|
|
64
|
+
"nw": "^0.99.1",
|
|
65
65
|
"selenium-webdriver": "^4.32.0",
|
|
66
66
|
"vitest": "^3.0.7"
|
|
67
67
|
},
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"node-gyp": "^11.2.0",
|
|
74
74
|
"plist": "^3.1.0",
|
|
75
75
|
"resedit": "^2.0.3",
|
|
76
|
-
"semver": "^7.7.
|
|
76
|
+
"semver": "^7.7.2",
|
|
77
77
|
"tar": "^7.4.3",
|
|
78
78
|
"yauzl-promise": "^4.0.0"
|
|
79
79
|
},
|
|
80
80
|
"volta": {
|
|
81
|
-
"node": "23.
|
|
81
|
+
"node": "23.11.0",
|
|
82
82
|
"npm": "11.2.0"
|
|
83
83
|
}
|
|
84
84
|
}
|
package/src/bld.js
CHANGED
|
@@ -191,6 +191,7 @@ async function bld({
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
if (nativeAddon === 'gyp') {
|
|
194
|
+
throw new Error('Rebuilding Node addons functionality is broken and has been disabled. This functionality may be removed in the future.');
|
|
194
195
|
buildNativeAddon({ cacheDir, version, platform, arch, outDir, nodeVersion });
|
|
195
196
|
}
|
|
196
197
|
|
|
@@ -362,7 +363,7 @@ const buildNativeAddon = ({ cacheDir, version, platform, arch, outDir, nodeVersi
|
|
|
362
363
|
: 'nwjs.app/Contents/Resources/app.nw',
|
|
363
364
|
);
|
|
364
365
|
|
|
365
|
-
child_process.
|
|
366
|
+
child_process.execFileSync('node-gyp', ['rebuild', `--target=${nodeVersion}`, `--nodedir=${nodePath}`], { cwd });
|
|
366
367
|
};
|
|
367
368
|
|
|
368
369
|
const compress = async ({
|