Add Tooloop Package and deploy script, fixes #1

This commit is contained in:
2024-06-04 17:21:13 +02:00
parent 6f7254c211
commit 3c38667e3c
9 changed files with 76 additions and 5 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
# set -e
# 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 --
# unzip zip
unzip -o ./out/make/zip/linux/x64/Tooloop\ Kiosk\ Browser-linux-x64-1.0.0.zip -d ./out/Tooloop\ OS\ Package/package/assets/presentation
# move contents to Tooloop package directory
mv -f ./out/Tooloop\ OS\ Package/package/assets/presentation/Tooloop\ Kiosk\ Browser-linux-x64/* ./out/Tooloop\ OS\ Package/package/assets/presentation/
# remove empty directory
rm -fr ./out/Tooloop\ OS\ Package/package/assets/presentation/Tooloop\ Kiosk\ Browser-linux-x64/
# copy package to package project
cp -fr ./out/Tooloop\ OS\ Package/ /home/tooloop/Tooloop-Packages/kiosk-browser
# re-build and deploy all packages and update control center
cd /home/tooloop/Tooloop-Packages/
/bin/bash /home/tooloop/Tooloop-Packages/build.sh
/bin/bash /home/tooloop/Tooloop-Packages/deploy.sh
exit 0