Packaging NW.js applications for Mac OS X
In order to package an NW.js application for Mac OS X, proceed as follows:
Create a copy of
nwjs.app
and rename it toToDO.app
.Right-click on the
ToDO.app
file and select Show Package Content.A finder window should open; open the
Contents/Resources
folder.Create a new folder, name it
app.nw
, and then copy all the content of your ToDO project into it (including the manifest file).If your project is large enough, you could consider to zip the content of the
app.nw
folder to an archive inside theContents/Resources
folder, delete theapp.nw
folder, and rename the archive toapp.nw
, but be aware that uncompressing its content at each run might slow down the application launch time.Change the default icon located in
Contents/Resources/nw.icns
with one for your application. To create an*.icns
icon, you can start with a transparent PNG icon of the dimensions 512 x 512 pixels or 1024 x 1024 pixels (retina) and then use img2icns (http://www.img2icnsapp.com...