Build NW.js applications for Mac, Windows and Linux.
For version 3, please go to the corresponding branch.
- Get, run or build applications.
- Integrate FFmpeg community builds
- Configure executable fields and icons
- Downloading from mirrors
- Node Native Addon support
Check out the documentation if you wish to give nw-builder
a try.
Please note that the documentation assumes you know how to write NW.js applications.
With npm:
npm install nw-builder -D
With yarn:
yarn add nw-builder -D
With pnpm:
pnpm add nw-builder -D
Here is two way to use nw-build to build your nwjs applications
- To get nwjs cache
nwbuild --mode=get
- To run nwjs application
nwbuild --mode=run
- To build nwjs application
nwbuild --mode=build
- Define an npm script
{ "scripts": { "build": "node scripts/build.js" } }
- Create a build script
// scripts/build.js const { nwbuild } = require("nw-builder"); await nwbuild({ srcDir: "./nwapp/**/* ./other/**/*.js", mode: "build", version: "latest", flavor: "normal", platform: "linux", arch: "x64", outDir: "./build", cache: false, app: { ... }, });
- Run the script
npm run build
- nw-builder-platforms - Fork of this repo with platform specific build options
- nwjs-builder-phoenix - Previously the most used build tool, however it is no longer maintained