Book Image

NW.js Essentials

Book Image

NW.js Essentials

Overview of this book

Table of Contents (17 chapters)
NW.js Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Packaging NW.js applications for Mac OS X


In order to package an NW.js application for Mac OS X, proceed as follows:

  1. Create a copy of nwjs.app and rename it to ToDO.app.

  2. Right-click on the ToDO.app file and select Show Package Content.

  3. A finder window should open; open the Contents/Resources folder.

  4. Create a new folder, name it app.nw, and then copy all the content of your ToDO project into it (including the manifest file).

  5. If your project is large enough, you could consider to zip the content of the app.nw folder to an archive inside the Contents/Resources folder, delete the app.nw folder, and rename the archive to app.nw, but be aware that uncompressing its content at each run might slow down the application launch time.

  6. 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...