#!/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