mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 23:45:39 +00:00
Improve cooker upgrade flow
This commit is contained in:
parent
0c2f8de072
commit
ca7f5ea133
|
@ -106,6 +106,8 @@ then
|
||||||
echo "Config file's version is $version but the actual version is $hard_version"
|
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
|
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/')
|
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" \
|
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" \
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
@ -128,6 +130,10 @@ then
|
||||||
post_update
|
post_update
|
||||||
fi
|
fi
|
||||||
else # If newly-installed version is a normal build.
|
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
|
post_update # Executing post update script
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue