DEV Community

Discussion on: Holy shit NW.js is so easy

Collapse
 
thejaredwilcurt profile image
The Jared Wilcurt • Edited

You can create a windows desktop shortcut that points to the nw.exe file followed by a space, and then in quotes the path to the folder that contains your package.json file.

C:\nw\0.60.0\nw.exe "C:\projects\cool-project"

You can also right-click the shortcut after creation, go to properties and change the icon to your own .ico file, and rename the shortcut to whatever you want. You can even point to the nw.exe in the node_modules of your project if you want.

C:\projects\cool-project\node_modules\nw\nwjs\nw.exe "C:\projects\cool-project"