Skip to content

Commit

Permalink
Merge pull request #72 from ZIMkaRU/bugfix/fix-ui-build
Browse files Browse the repository at this point in the history
Fix UI build in docker container
  • Loading branch information
ezewer authored Jan 28, 2021
2 parents b016a76 + 7ab87d6 commit 7584907
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/build-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,15 @@ sed -i -e \
"s/showFrameworkMode: false/showFrameworkMode: true/g" \
$frontendFolder/src/config.js

rm -f "$ROOT/.eslintrc"

npm i --no-audit
npm run build

if ! [ -s "$frontendFolder/build/index.html" ]; then
exit 1
fi

mv -f $frontendFolder/build/* $uiBuildFolder
cp $pathToTriggerElectronLoad $uiBuildFolder/triggerElectronLoad.js
touch $uiReadyFile

0 comments on commit 7584907

Please sign in to comment.