bitburner-src/tools/build.sh
omuretsu 41451280ab Update build process
`npm run build` now generates a .app folder with the minimal run files
`npm run electron` now uses the .app contents as a base
deploy-dev.yml should upload just the .app folder after building (not tested yet)
2023-01-10 20:51:14 -05:00

14 lines
258 B
Bash

#!/bin/bash
# builds the game in the root folder
webpack --mode production
# Clear out any files remaining from old builds and recreate folder
rm -rf .app
mkdir .app
# Should be all the files needed.
cp index.html .app
cp favicon.ico .app
cp -r dist .app