源码下载

https://codeload.github.com/rogerwang/node-webkit/zip/master

可执行文件下载

Linux: 

[32bit]

(https://s3.amazonaws.com/node-webkit/v0.7.5/node-webkit-v0.7.5-linux-ia32.tar.gz) 

[64bit] (https://s3.amazonaws.com/node-webkit/v0.7.5/node-webkit-v0.7.5-linux-x64.tar.gz)

Windows: 

[win32]

(https://s3.amazonaws.com/node-webkit/v0.7.5/node-webkit-v0.7.5-win-ia32.zip)

Mac: 

[32bit, 10.7+]

(https://s3.amazonaws.com/node-webkit/v0.7.5/node-webkit-v0.7.5-osx-ia32.zip)

Sample apps for node-webkit

https://codeload.github.com/zcbenz/nw-sample-apps/zip/master

 

参考资料:https://speakerdeck.com/player/505334438282a9000204188a?#

Quick Start(One Demo)

(1)Create the folder named ‘hello-world’,enter the folder;

(2)Create ‘index.html’,input

<!DOCTYPE html>

<html>

  <head>

    <title>Hello World!</title>

  </head>

  <body>

    <h1>Hello World!</h1>

    We are using node.js <script>document.write(process.version)</script>.

  </body>

</html>

(3)Create `package.json`,input

{

  "name": "HelloWorld",

  "main": "index.html",

  "window": {

    "toolbar": false,

    "width": 660,

    "height": 500

  }

}

(4)Compress `index.html` and `package.json` into a zip archive called `hello-world.nw`;

(5)put `hello-world.nw` to the folder named `node-webkit-v0.7.5-win-ia32`;

(6)generate xxx.exe

copy /b nw.exe+hello-world.nw hello-world.exe

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐