#!/bin/sh # Install / update from GitHub, directly on the CardputerZero: # curl -fsSL https://raw.githubusercontent.com/JulienBidouille/cz-python-template/main/get.sh | sh set -e REPO="JulienBidouille/cz-python-template" # <-- your GitHub repository (public) BRANCH="main" TMP=$(mktemp -d) trap 'rm -rf "$TMP"' EXIT echo "Downloading $REPO ($BRANCH)..." curl -fsSL "https://github.com/$REPO/archive/refs/heads/$BRANCH.tar.gz" \ | tar xz -C "$TMP" --strip-components=1 cd "$TMP" sh build_deb.sh sudo apt install -y --reinstall ./dist/*_all.deb systemctl --user restart APPLaunch echo "Installed. The icon is in the launcher."