mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
20 lines
526 B
Bash
Executable File
20 lines
526 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
ROOT=`dirname $0`
|
|
cd "$ROOT/.."
|
|
|
|
echo "Building the browser..."
|
|
|
|
rm -fr build
|
|
|
|
export IS_GENERIC_BROWSER=1
|
|
export REACT_APP_BACKEND_WORKER_HASH=`ls "$ROOT"/../public/kcab/kcab.worker.*.js | sed 's/.*kcab\.worker\.\(.*\)\.js/\1/'`
|
|
export REACT_APP_PLUGIN_SERVICE_WORKER_HASH=`ls "$ROOT"/../service-worker/plugin-sw.*.js | sed 's/.*plugin-sw\.\(.*\)\.js/\1/'`
|
|
|
|
yarn build
|
|
|
|
rm -fr build-stats
|
|
mkdir build-stats
|
|
mv build/kcab/stats.json build-stats/loot-core-stats.json
|
|
mv ./stats.json build-stats/web-stats.json
|