This is a simple boilerplate to get up and running with Electron and React. It is a customized version of Alex Devero's repo and was created by Brad Traversy
git clone https://github.com/sarstuff/simple-electron-react.git
npm install
or
yarn
npm run start
or
yarn start
npm run package
or
yarn package
there can be build problems with Catalina and 32bit apps
brew upgrade wine, make sure "/usr/local/bin/wine64" exist
rm -rf ~/.wine
edit "node_modules/rcedit/lib/rcedit.js", change "wine" to "wine64" at line 42
download "https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe", rename to "rcedit.exe" and replace "node_modules/rcedit/bin/rcedit.exe"
also getting the correct icon for Mac Builds, the --asar tag helps hide the archive code
"electron-packager ./ --out=./release-builds --asar --overwrite --platform=darwin --arch=x64 --icon=assets/icon.icns"
npm run prod
yarn prod
Change the app title in the webpack.build.config.js and the webpack.dev.config.js files