🐛 make build-browser, watch-browser commands use desktop-client vers (#447)

This commit is contained in:
Matiss Janis Aboltins
2023-01-14 20:26:57 +00:00
committed by GitHub
parent 851a25a62a
commit 392e0c6030
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
ROOT=`dirname $0`
cd "$ROOT/.."
VERSION=`cat "$ROOT/../../desktop-electron/package.json" | grep version | head -n1 | awk -F "\"" '{print $4}' | tr -d '\r\n'`
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..."
@@ -14,4 +14,4 @@ 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"
node scripts/build.js
node scripts/build.js

View File

@@ -3,11 +3,11 @@
ROOT=`dirname $0`
cd "$ROOT/.."
VERSION=`cat "$ROOT/../../desktop-electron/package.json" | grep version | head -n1 | awk -F "\"" '{print $4}' | tr -d '\r\n'`
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"
node scripts/start.js
node scripts/start.js