Arquivos
VoTT/docs/PACKAGING.md
T
Wallace Breza 6cb936988c [AB#16328] Fixes issues with running app from static files (#404)
* Modified to support running off of local static build

* Added silent flag to coverage script

* Updated azure-piplines.yml to point to correct location

* clean up and merge changes from My's branch

* fix file path

* update package-lock.json

* refactor webpack configs
2018-12-20 10:58:37 -08:00

813 B

Order of Operation

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