Back

使用node-webkit来创建桌面应用( creating desktop app using node-webkit)

发布时间: 2014-07-25 11:17:00

the tutorial is : 

Create index.html:

<html>
<body>
<h1>Hello World!</h1>
</body>
</html>

Create package.json:

{
  "name": "nw-demo",
  "main": "index.html"
}

Compress index.html and package.json into a zip archive, and rename it to app.nw:

$ zip app.nw index.html package.json

app.nw
|-- package.json
`-- index.html

Download the prebuilt binary for your platform and use it to open the app.nw file:

$ ./nw app.nw

Back