build.sh script builds the WebUI locally in case the release WebUI is not avaiable

This commit is contained in:
Andrea Bondavalli 2021-05-28 18:40:58 +02:00
parent 54c83c1076
commit 76abb1bc1a

View File

@ -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