From fb7381fa6c20016dd385c377ff81419b1baafd56 Mon Sep 17 00:00:00 2001 From: Daniel Stock Date: Tue, 15 Sep 2026 16:26:05 +0200 Subject: [PATCH] Fix deploy script --- deploy-tooloop-package.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deploy-tooloop-package.sh b/deploy-tooloop-package.sh index 088ca0c..0776351 100644 --- a/deploy-tooloop-package.sh +++ b/deploy-tooloop-package.sh @@ -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