I am reading the instructions for how to package a NW.js app and the wording is a confusing mess and makes no sense. I highlighted the contradictory word-salad parts.
For this purpose, you can use https://github.com/nwjs/nw-builder
Lets you build your NW.js apps for mac, win and linux via cli. It will download the prebuilt binaries for a newest version, unpacks it, creates a release folder, create the app.nw file for a specified directory and copies the app.nw file where it belongs.
First of all, install the node-webkit-builder module globally using:
$ npm install node-webkit-builder -g
Once the module has been installed, you can run the nwbuild command as follows:
$ nwbuild [options] [path]
Whereas path is the path to your project folder, options are the ones described in the following code:
-p Operating System to build ['osx32', 'osx64', 'win32', 'win64']
-v NW.js version [default: "latest"]
-r Runs NW.js project [default: false]
-o The path of the output folder [default: "./build"]
-f Force download of node-webkit [default: false]
--quiet Disables logging
Some examples:
Run a project (on the current platform):
$ nwbuild -v [version of your nw.js] -r /path/to/the/project
Build a project (executable file ( .exe )) for Win32 or/and Win64 platforms:
$ nwbuild -v [version of your nw.js] -p win32,win64 /path/to/the/project
If your cmd currently open in the project folder, instread write full path to your project you can just use dot symbol