From 76abb1bc1af7d000d7ae5f0a935d8bf19139eec8 Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Fri, 28 May 2021 18:40:58 +0200 Subject: [PATCH] build.sh script builds the WebUI locally in case the release WebUI is not avaiable --- build.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 2607d73..595a58e 100755 --- a/build.sh +++ b/build.sh @@ -26,13 +26,19 @@ fi cd .. cd webui -# echo "Building and installing webui ..." -# npm install react-modal react-toastify react-router-dom -# npm install -# npm run build +if [ -f webui.tar.gz ]; then + rm -f webui.tar.gz +fi echo "Downloading current webui release ..." wget https://github.com/bondagit/aes67-linux-daemon/releases/latest/download/webui.tar.gz -tar -xzvf webui.tar.gz +if [ -f webui.tar.gz ]; then + tar -xzvf webui.tar.gz +else + echo "Building and installing webui ..." + # npm install react-modal react-toastify react-router-dom + npm install + npm run build +fi cd .. cd daemon