I'm currently boring to write a description. sorry. I'll write some description at available time.
node-webkit: https://github.com/rogerwang/node-webkit
my node-webkit demo: https://github.com/composite/NodePlatform
6. Node-webkit Background
Created by Roger Wang. Supported by Intel Open Source Technology Center.
Open sourced at github on Dec’ 7 2011.
11,184 Stars, 1,007 Watches, 1,197 Forks.
Keep going updates, many communications, more showcases.
16. 3. RUN your app!
Node-webkit will cast a magic of make desktop app from your web app.
17. How to run your app?
Zip your app path, and rename extension to .nw
Or keep it. You can run app with your app folder.
And type it: $ nw /path/to/your/app
Note for windows users: just drag your app path or zip file into nw.exe
18. How to make self executable app?
Windows
$ copy /b nw.exe+app.nw app.exe
(note: when deploy, you must ship your app with “nw.pak” and “icudt.dll”.)
(If you using video or audio, ffmpegsumo.dll will required.)
(“libEGL.dll” and “libGLESv2.all”files will support WebGLin your app.)
Mac OS X
$ cp app.nw node-wiki.app/Contents/Resources
And you need to modify following files to make a real distributionof yours:
Contents/Resources/app.icns: icon of your app.
Contents/Info.plist: the apple package description file.
Linux
$ cat /usr/bin/nw app.nw > app && chmod +x app
(note: when deploy, you must ship your app with “nw.pak”.)
(If you using video or audio, libffmped.so will required.)
19. Embed native module with nw-gyp
Same as node-gyp, but you need install nw-gyp.
$ npm install -g nw-gyp
binding.gyp: {
"targets": [
{
"target_name": "foo",
"sources": [ "foo.cc" ]
}
]
}
$ nw-gyp configure --target=0.8.5 # nw version
$ nw-gyp build
20. Snapshot
Experimental feature.
Secure your js source but too slow, and not perfectly run.
apply only one snapshot file per app.
$ nwsnapshot --extra_code foo.js foo.bin
In package.json:
. . .
"snapshot": "foo.bin“
. . .
21. Node-webkit IDE feature on Intel XDK
http://software.intel.com/en-us/blogs/2013/09/06/why-intel-xdk-new
22. Other node.js webkit frameworks
App.js
DeskShell
Brackets-shell
Sencha Desktop – NOT FREE. NOT SUPPORT MANY FEATURES.