Electorn Note
Install electron
set ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
npm install electron --save-dev
Run in terminal
.\"./node_modules/.bin/electron" ., more
Debugging in VSCode
Attention! Electron version should be 1.5.1 as 1.6.* is not work on VSCode.
Ctrl + P & ext install debugger-for-chrome to install Debugger for chrome, then you can debug the main process.
Packager
npm install electron-packager -gelectron-packager . --overwrite --icon ./favicon.png --ignore=\.cmd
Comments
Leave a comment