electron:
npm install -g electron electron-packager
git clone https://github.com/electron/electron-quick-start.git
將代碼加到mainWindow之前
electron-packager .
特點(diǎn):可以包含html珍语,生成包比較大
nw.js:
https://dl.nwjs.io/v0.35.0/nwjs-v0.35.0-win-x64.zip
package.json等文件放到同目錄下
執(zhí)行nw
特點(diǎn):可以包含html蜜唾,生成包比較大
app.js
http://dl.bintray.com/sihorton/appjs/appjs-0.0.20-win32-ia32.zip
特點(diǎn):可以包含html,體積適中
jxcore:
https://raw.githubusercontent.com/jxcore/jxcore-release/master/0311/jx_win64v8.zip
jx package index.js index
jx index.js
特點(diǎn):只能包含js昧廷,體積小
nexe:
npm install -g nexe
nexe index.js -o test.exe
特點(diǎn):只能包含js,體積小
pkg:
npm install -g pkg
pkg -t win index.js -o test.exe
特點(diǎn):只能包含js,體積小