mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
🔥 remove unused scripts; simplify version script (#1227)
1. Removed some more unused scripts 2. Simplified the way we build `version` in to the source
This commit is contained in:
committed by
GitHub
parent
59a1c38d34
commit
f41763b0b9
@@ -3,16 +3,13 @@
|
||||
ROOT=`dirname $0`
|
||||
cd "$ROOT/.."
|
||||
|
||||
VERSION=`cat "$ROOT/../../desktop-client/package.json" | grep version | head -n1 | awk -F "\"" '{print $4}' | tr -d '\r\n'`
|
||||
|
||||
echo "Building version $VERSION for the browser..."
|
||||
echo "Building the browser..."
|
||||
|
||||
rm -fr build
|
||||
|
||||
export IS_GENERIC_BROWSER=1
|
||||
export INLINE_RUNTIME_CHUNK=false
|
||||
export REACT_APP_BACKEND_WORKER_HASH=`ls "$ROOT"/../public/kcab/kcab.worker.*.js | sed 's/.*kcab\.worker\.\(.*\)\.js/\1/'`
|
||||
export REACT_APP_ACTUAL_VERSION="$VERSION"
|
||||
|
||||
yarn build
|
||||
|
||||
|
||||
@@ -3,11 +3,8 @@
|
||||
ROOT=`dirname $0`
|
||||
cd "$ROOT/.."
|
||||
|
||||
VERSION=`cat "$ROOT/../../desktop-client/package.json" | grep version | head -n1 | awk -F "\"" '{print $4}' | tr -d '\r\n'`
|
||||
|
||||
export IS_GENERIC_BROWSER=1
|
||||
export PORT=3001
|
||||
export REACT_APP_BACKEND_WORKER_HASH="dev"
|
||||
export REACT_APP_ACTUAL_VERSION="$VERSION"
|
||||
|
||||
yarn start
|
||||
|
||||
Reference in New Issue
Block a user