This project integrate create-react-app with electron.It is easier to develope, build and package. This project is already include electron-builder so you can just run a command to pack your app.
$ yarn
you can change react-server port by modify package.json's port.
$ yarn start ## pure react
$ yarn electron ## pure electron
## react and electron(auto run electron when react-server is start)
$ yarn electron-react
$ yarn electron:pro
$ yarn build
Tips: you can speed up downloading the electron by modify package.json's electronMirror.
eg. "electronMirror":
https://npm.taobao.org/mirrors/electron/` for chinese user.
Any package problem, pls check this out.electron-builder's doc.
If you want pack multi-platform app in same platform, check Multi-Platform-Build
$ yarn pack:all
$ yarn pack:mac
$ yarn pack:win
$ yarn pack:linux
electron-simple-updater and electron-simple-publisher is a simple way to make this.You just need to modify publisher.json
and updator.url
in package.json.(default way is github release
. For more configuration, check Transport)
leave it to issue.