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