Skip to content

Commit

Permalink
fix update script
Browse files Browse the repository at this point in the history
  • Loading branch information
martukas committed Nov 9, 2024
1 parent 1ceaf14 commit 1b8f27c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions software/bootstrap/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ if zenity --question --no-wrap --title="PIO Update" \
then
### Clean and update PIO
echo "Updating PlatformIO and libraries..."
./common/common.sh update
./software/common/common.sh update
fi

if zenity --question --no-wrap --title="Controller Build" \
--text "<span size=\"large\">Build and deploy controller?</span>"
then
echo "Building and deploying cycle controller..."
### Update controller and deploy
./controller/controller.sh clean
./controller/controller.sh run
./software/controller/controller.sh clean
./software/controller/controller.sh run
fi

ans=$(zenity --list --radiolist --title "GUI Build" \
Expand All @@ -79,13 +79,13 @@ ans=$(zenity --list --radiolist --title "GUI Build" \
if [[ $ans = "Release" ]]
then
echo "Building Release"
./gui/gui.sh clean
./gui/gui.sh build --release --no-checks;
./software/gui/gui.sh clean
./software/gui/gui.sh build --release --no-checks;
elif [[ $ans = "Debug" ]]
then
echo "Building Debug"
./gui/gui.sh clean
./gui/gui.sh build --debug --no-checks
./software/gui/gui.sh clean
./software/gui/gui.sh build --debug --no-checks
fi

zenity --info --no-wrap --title="Success" --text "Ventilator update executed successfully!"

0 comments on commit 1b8f27c

Please sign in to comment.