15. Packaging & distribution
● package.nw or package.json in the same
folder as the node-webkit executable
● Packaging into the executable file
–
–
Windows and Linux
●
Make the node-webkit package
●
Windows: copy /b nw.exe+app.nw app.exe
●
Linux: cat /usr/bin/nw app.nw > app && chmod +x app
OS X
●
Copy the app into the Contents/Resources folder
of the node-webkit app
16. Native elements
● file dialogs
–
Files and folders
● Opening URLs in the default browser
● Opening files in the default app or in the file
manager
● menu bar / status bar
● Clipboard access
● kiosk mode
21. Code protection
● v8 snapshot
–
–
–
–
Can hide a part (tens of KB) of the code into a binary
file
Platform dependent
Little slower than the regular code
Loaded before the regular code
23. Who uses node-webkit
● Infinum :)
–
–
–
3 projects (Windows and OSX)
Crypto
●
about 50x faster than Adobe Air
Optical media access
●
Detection and reading
24. Who uses node-webkit
● Gifrocket
–
Creating gif animations from videos
● Ambiance
–
code editor with modules (npm)
● Arduinoscope
–
–
oscilloscope for Arduino
Hardware access
● Everytime
–
–
video bookmarking
Communicates with the VLC player