nwjs
nodejs
canvas
show an img generated by nodejs in a browser
and package it to an windows desktop app using nw.js
- download nw.js sdk(v0.17.0) and configure the environment path
npm install nw-builder -g
- do as node-canvas Installation windows says
- npm install
- npm install nw-gyp -g
- cd node_modules/canvas and run "nw-gyp rebuild --target=0.17.0 --arch=x64" when error, modify the file common.gypi in folder like "C:\Users\Administrator.nw-gyp\0.17.0" as below
line 36: ['OS=="win"', {
line 96: 'RuntimeLibrary': '<(win_debug_RuntimeLibrary)', # static debug
line 133: 'RuntimeLibrary': '<(win_release_RuntimeLibrary)', # static release
in root path of demo, run "nw ."
in root path of demo, run "nwbuild -p win64 ."
press F12 to open chrome developer tools some code is copied from Master76/dostudy :)
MIT