mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
Remove current container when updating cooker
Don't try to build presets before emulators have been set up on finit
This commit is contained in:
parent
e327762dde
commit
91f1fac361
|
@ -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/')
|
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"
|
mkdir -p "$rdhome/RetroDECK_Updates"
|
||||||
wget -P "$rdhome/RetroDECK_Updates" $latest_cooker_download
|
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"
|
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
|
rm -rf "$rdhome/RetroDECK_Updates" # Cleanup old bundles to save space
|
||||||
) |
|
) |
|
||||||
|
|
|
@ -618,5 +618,7 @@ prepare_emulator() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update presets for all emulators after any reset or move
|
# Update presets for all emulators after any reset or move
|
||||||
|
if [[ ! "$emulator" == "retrodeck" ]]; then
|
||||||
build_retrodeck_current_presets
|
build_retrodeck_current_presets
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue