Order of Operation

December 20, 2018 ยท View on GitHub

Command

npm run release

Underneath the hood

  1. Create the react bundle inside the build directory,

    • have to run this first because it will override everything in the build directory;
    • create index.html & static/
    react-scripts build
    
  2. Create build/electron directory and the entry point file bundle.js

    webpack -p --config ./config/webpack.dev.config.js
    
  3. Now you can build the os-specific executable

    electron-builder
    

Relevant files

  1. .env

    • environment variables use by react-script to generate the correct content for build/index.html
  2. electron-builder.yml

    • configuration for electron-builder
  3. package.json

    • dependencies and scripts