Order of Operation
December 20, 2018 ยท View on GitHub
Command
npm run release
Underneath the hood
-
Create the
reactbundle inside thebuilddirectory,- have to run this first because it will override everything in the
builddirectory; - create
index.html&static/
react-scripts build - have to run this first because it will override everything in the
-
Create
build/electrondirectory and the entry point filebundle.jswebpack -p --config ./config/webpack.dev.config.js -
Now you can build the os-specific executable
electron-builder
Relevant files
-
.env- environment variables use by
react-scriptto generate the correct content forbuild/index.html
- environment variables use by
-
electron-builder.yml- configuration for electron-builder
-
package.json- dependencies and scripts