From c18aff5d552f359386736aea68a0ac9541cc5820 Mon Sep 17 00:00:00 2001 From: tranch Date: Fri, 11 Sep 2026 09:22:21 +0800 Subject: Make Decky uninstall idempotent Tolerate missing loader and CEF debug paths during uninstall. Verify all patched removal paths in the recipe test. --- tests/test-decky-mirror-ujust.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test-decky-mirror-ujust.sh') diff --git a/tests/test-decky-mirror-ujust.sh b/tests/test-decky-mirror-ujust.sh index 125983b..6950c31 100755 --- a/tests/test-decky-mirror-ujust.sh +++ b/tests/test-decky-mirror-ujust.sh @@ -36,6 +36,13 @@ if ! rg -q 'loader\.json' "${recipe}" || ! rg -q '\.store = 2' "${recipe}" || ! exit 1 fi +if ! rg -q 'rm -rf.*HOMEBREW_FOLDER.*/services/PluginLoader' "${recipe}" || + ! rg -q 'rm -f.*USER_DIR.*/\.steam/steam/\.cef-enable-remote-debugging' "${recipe}" || + ! rg -q 'rm -f.*USER_DIR.*/\.var/app/com\.valvesoftware\.Steam/data/Steam/\.cef-enable-remote-debugging' "${recipe}"; then + echo "Decky mirror recipe must make uninstall safe for missing paths" >&2 + exit 1 +fi + for script_name in install_release.sh install_prerelease.sh uninstall.sh; do if ! rg -q "\\$\\{DECKY_INSTALLER_BASE\\}/${script_name}" "${recipe}"; then echo "Decky mirror recipe does not route ${script_name} through the mirror base" >&2 -- cgit v1.2.3