From 91f1fac361af993c0e00faa508c4c84153dab7d2 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 7 Sep 2023 09:28:07 -0400 Subject: [PATCH] Remove current container when updating cooker Don't try to build presets before emulators have been set up on finit --- functions/checks.sh | 1 + functions/prepare_emulator.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/checks.sh b/functions/checks.sh index 710fd6c9..bb93b322 100644 --- a/functions/checks.sh +++ b/functions/checks.sh @@ -83,6 +83,7 @@ check_for_version_update() { local latest_cooker_download=$(curl --silent https://api.github.com/repos/XargonWan/$update_repo/releases/latest | grep '"browser_download_url":' | sed -E 's/.*"([^"]+)".*/\1/') mkdir -p "$rdhome/RetroDECK_Updates" wget -P "$rdhome/RetroDECK_Updates" $latest_cooker_download + flatpak-spawn --host flatpak remove --noninteractive -y net.retrodeck.retrodeck # Remove current version before installing new one, to avoid duplicates flatpak-spawn --host flatpak install --user --bundle --noninteractive -y "$rdhome/RetroDECK_Updates/RetroDECK-cooker.flatpak" rm -rf "$rdhome/RetroDECK_Updates" # Cleanup old bundles to save space ) | diff --git a/functions/prepare_emulator.sh b/functions/prepare_emulator.sh index 441cc6b6..b4ade655 100644 --- a/functions/prepare_emulator.sh +++ b/functions/prepare_emulator.sh @@ -618,5 +618,7 @@ prepare_emulator() { fi # Update presets for all emulators after any reset or move - build_retrodeck_current_presets + if [[ ! "$emulator" == "retrodeck" ]]; then + build_retrodeck_current_presets + fi }