From ca7f5ea1337b4e3dbb8cdbe1c49f258a36e0a11e Mon Sep 17 00:00:00 2001 From: icenine451 Date: Tue, 18 Apr 2023 11:26:35 -0400 Subject: [PATCH] Improve cooker upgrade flow --- retrodeck.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/retrodeck.sh b/retrodeck.sh index fb8c1e0f..f2d6bb9a 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -106,6 +106,8 @@ then echo "Config file's version is $version but the actual version is $hard_version" if grep -qF "cooker" <<< $hard_version; then # If newly-installed version is a "cooker" build + set_setting_value $rd_conf "update_repo" "RetroDECK-cooker" retrodeck "options" + set_setting_value $rd_conf "update_check" "true" retrodeck "options" cooker_base_version=$(echo $hard_version | cut -d'-' -f2 | sed 's/\([0-9]\.[0-9][a-z]\).*/\1/') choice=$(zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --ok-label="Upgrade" --extra-button="Don't Upgrade" --extra-button="Fresh Install" \ --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ @@ -128,6 +130,10 @@ then post_update fi else # If newly-installed version is a normal build. + grep -qF "cooker" <<< $version; then # If previously installed version was a cooker build + set_setting_value $rd_conf "update_repo" "RetroDECK" retrodeck "options" + set_setting_value $rd_conf "update_check" "false" retrodeck "options" + fi post_update # Executing post update script fi fi