Skip to content
Snippets Groups Projects
Unverified Commit 392e0c60 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

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

parent 851a25a6
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ROOT=`dirname $0` ROOT=`dirname $0`
cd "$ROOT/.." 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..." echo "Building version $VERSION for the browser..."
...@@ -14,4 +14,4 @@ export INLINE_RUNTIME_CHUNK=false ...@@ -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_BACKEND_WORKER_HASH=`ls "$ROOT"/../public/kcab/kcab.worker.*.js | sed 's/.*kcab\.worker\.\(.*\)\.js/\1/'`
export REACT_APP_ACTUAL_VERSION="$VERSION" export REACT_APP_ACTUAL_VERSION="$VERSION"
node scripts/build.js node scripts/build.js
\ No newline at end of file
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
ROOT=`dirname $0` ROOT=`dirname $0`
cd "$ROOT/.." 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 IS_GENERIC_BROWSER=1
export PORT=3001 export PORT=3001
export REACT_APP_BACKEND_WORKER_HASH="dev" export REACT_APP_BACKEND_WORKER_HASH="dev"
export REACT_APP_ACTUAL_VERSION="$VERSION" export REACT_APP_ACTUAL_VERSION="$VERSION"
node scripts/start.js node scripts/start.js
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment