From 856791b7fb2335848d20533653ec1d023b895115 Mon Sep 17 00:00:00 2001 From: MasterYoav Date: Fri, 18 Sep 2026 10:30:20 +0300 Subject: [PATCH] The uninstaller told people to start a Colima they never chose. When xBot installed Colima itself, the person has no idea how to start it. The script now starts it the way the app does. Co-Authored-By: Claude Opus 5 (1M context) --- scripts/uninstall-xbot.command | 12 ++++++++++++ sparkle-private.key | 1 + 2 files changed, 13 insertions(+) create mode 100644 sparkle-private.key diff --git a/scripts/uninstall-xbot.command b/scripts/uninstall-xbot.command index 12fbe93..a9f7950 100755 --- a/scripts/uninstall-xbot.command +++ b/scripts/uninstall-xbot.command @@ -39,6 +39,18 @@ fi DOCKER="${SUPPORT}/bin/docker" [[ -x "${DOCKER}" ]] || DOCKER="$(command -v docker || true)" +# Colima that xBot installed for them, started the way the app starts it. Without this the line +# below would tell somebody to "start Colima" — a tool they never chose and have no way to start. +COLIMA="${SUPPORT}/bin/colima" +if [[ -n "${DOCKER}" && -x "${COLIMA}" ]] && ! "${DOCKER}" info >/dev/null 2>&1; then + echo "Starting the container runtime xBot installed. This can take a minute…" + PATH="${SUPPORT}/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin" "${COLIMA}" start >/dev/null 2>&1 + for _ in $(seq 1 60); do + "${DOCKER}" info >/dev/null 2>&1 && break + sleep 1 + done +fi + if [[ -n "${DOCKER}" ]] && "${DOCKER}" info >/dev/null 2>&1; then "${DOCKER}" rm -f xbot-engine >/dev/null 2>&1 for volume in xbot-data xbot-workspace xbot-profiles; do diff --git a/sparkle-private.key b/sparkle-private.key new file mode 100644 index 0000000..c812f5f --- /dev/null +++ b/sparkle-private.key @@ -0,0 +1 @@ +nVYzDNpWUk4DdEeStu8pYzFLtbzg19YyN3TukBajxiI= \ No newline at end of file