Fix deploy script

This commit is contained in:
vollstock committed 2026-09-15 16:26:05 +02:00
1 parent 29e589eddc
commit fb7381fa6c
1 file changed
+7 -2
+7 -2
View File
@@ -8,8 +8,13 @@ case "$(dpkg --print-architecture)" in
*) architecture=$(dpkg --print-architecture) ;;
esac
# Remove old builds excluding scripts and config example
find ./out/Tooloop\ OS\ Package/package/assets/presentation/ -type f -not -name '*sh' -not -name 'config*' -print0 | xargs -0 rm -f --
# Remove old builds while preserving the presentation scripts and example config
find ./out/Tooloop\ OS\ Package/package/assets/presentation/ -mindepth 1 -type d -prune -exec rm -rf -- {} +
find ./out/Tooloop\ OS\ Package/package/assets/presentation/ -type f \
-not -name 'config.example.json' \
-not -name 'start-presentation.sh' \
-not -name 'stop-presentation.sh' \
-delete
# Unzip zip
unzip -o ./out/make/zip/linux/$architecture/Tooloop\ Kiosk\ Browser-linux-$architecture-1.0.0.zip -d ./out/Tooloop\ OS\ Package/package/assets/presentation