Adding rebuild to scripts
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Adsooi 2024-10-01 21:50:10 +02:00
parent 07e556da56
commit 1fc19f6ba3
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
7 changed files with 87 additions and 18 deletions

View file

@ -1,8 +1,25 @@
#!/bin/bash
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." || exit 1
rm -rf build
bash scripts/build.sh
rebuild=true
while [ $# -gt 0 ]; do
case "$1" in
--no-rebuild)
rebuild=false
;;
*)
box "Error: Invalid argument."
exit 1
esac
shift
done
if [ "$rebuild" == "true" ]; then
rm -rf build
bash scripts/build.sh
fi
cd build/runtime-pyside6 || exit 1
mkdir assets