Files
mr.zeroandClaude Opus 5 66ddf87d03 Add an uninstall wrapper, and move to the stores org
uninstall.sh mirrors install.sh: it names the store and lets the engine do the
work, passing STORE_ID rather than a config URL. install.sh gained what the
Batocera wrapper already had — run from a checkout, it uses the config next to
it rather than the one on the forge.

Both wrappers are POSIX sh now, and neither pipes curl into a shell any more: a
failed download would feed an empty script to sh and look like success, so the
installer is fetched to a file and run from there.

The repository moved from the tools org to stores. The old raw URLs still
redirect.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-18 08:32:47 +02:00

18 lines
647 B
Bash
Executable File

#!/bin/sh
# Remove the Teletype Games store from this machine's RetroArch.
#
# curl -fsSL https://git.teletypegames.org/stores/ttg-retroarch-store/raw/branch/master/uninstall.sh | sh
#
# All the work is done by the engine's uninstaller; this only says which store.
# DRY_RUN=1 to see what would go, KEEP_HOME=1 to keep the state and the log.
set -eu
FORGE="${FORGE:-https://git.teletypegames.org/stores}"
ENGINE_RAW_BASE="${ENGINE_RAW_BASE:-$FORGE/warp-engine-retroarch-store/raw/branch/master}"
STORE_ID="${STORE_ID:-ttg}"
export STORE_ID
TMP="$(mktemp)"
trap 'rm -f "$TMP"' EXIT
curl -fsSL "$ENGINE_RAW_BASE/uninstall.sh" -o "$TMP"
sh "$TMP"