Friday, June 30, 2017

node-webkit aka nw.js

Steps to run a sample node-webkit app on MacOS:


  • Downloaded the node-webkit from https://nwjs.io/downloads/. Extracted the zip content to ~/workspace (~/workspace/nwjs-sdk-v0.23.5-osx-x64).
  • Created a folder ~/workspace/my-nwjs-app and created package.json and index.html in that folder.
  • content of the package.json: {"name":"my-nwjs-app", "main":"index.html"}
  • content of the index.html: <bold>Hello</bold>
  • From my-nwjs-app, run the command:~/workspace/nwjs-sdk-v0.23.5-osx-x64/nwjs.app/Contents/MacOS/nwjs .

No comments:

Post a Comment