mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
Merge pull request #743 from icenine451/cooker-0.8.0b-icenine451
Cooker 0.8.0b icenine451
This commit is contained in:
commit
d8ffdfc606
|
@ -171,5 +171,12 @@ elif [[ "$new_version_major_rev" -eq "$current_version_major_rev" ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Perform post_update commands for current version if it is a cooker
|
||||||
|
if grep -qF "cooker" <<< $hard_version; then # If newly-installed version is a "cooker" build, always perform post_update commands for current version
|
||||||
|
if [[ "$(echo $hard_version | cut -d'-' -f2)" == "$new_version" ]]; then
|
||||||
|
is_newer_version="true"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo "$is_newer_version"
|
echo "$is_newer_version"
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ source /app/libexec/dialogs.sh
|
||||||
source /app/libexec/logger.sh
|
source /app/libexec/logger.sh
|
||||||
source /app/libexec/functions.sh
|
source /app/libexec/functions.sh
|
||||||
source /app/libexec/multi_user.sh
|
source /app/libexec/multi_user.sh
|
||||||
source /app/libexec/patching.sh
|
source /app/libexec/framework.sh
|
||||||
source /app/libexec/post_update.sh
|
source /app/libexec/post_update.sh
|
||||||
source /app/libexec/prepare_component.sh
|
source /app/libexec/prepare_component.sh
|
||||||
source /app/libexec/presets.sh
|
source /app/libexec/presets.sh
|
||||||
|
|
|
@ -102,8 +102,8 @@ done
|
||||||
log d "Update triggered"
|
log d "Update triggered"
|
||||||
# if lockfile exists
|
# if lockfile exists
|
||||||
if [ -f "$lockfile" ]; then
|
if [ -f "$lockfile" ]; then
|
||||||
log d "Lockfile found but the version doesn't match with the config file"
|
|
||||||
if [ "$hard_version" != "$version" ]; then
|
if [ "$hard_version" != "$version" ]; then
|
||||||
|
log d "Lockfile found but the version doesn't match with the config file"
|
||||||
log i "Config file's version is $version but the actual version is $hard_version"
|
log i "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
|
||||||
log d "Newly-installed version is a \"cooker\" build"
|
log d "Newly-installed version is a \"cooker\" build"
|
||||||
|
@ -130,6 +130,7 @@ if [ -f "$lockfile" ]; then
|
||||||
log w "Removing RetroDECK data and starting fresh"
|
log w "Removing RetroDECK data and starting fresh"
|
||||||
rm -rf /var
|
rm -rf /var
|
||||||
rm -rf "$HOME/retrodeck"
|
rm -rf "$HOME/retrodeck"
|
||||||
|
rm -rf "$rdhome"
|
||||||
source /app/libexec/global.sh
|
source /app/libexec/global.sh
|
||||||
finit
|
finit
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -268,6 +268,13 @@ configurator_global_presets_and_settings_dialog() {
|
||||||
configurator_global_presets_and_settings_dialog
|
configurator_global_presets_and_settings_dialog
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Rewind: Enable/Disable" )
|
||||||
|
log i "Configurator: opening \"$choice\" menu"
|
||||||
|
|
||||||
|
change_preset_dialog "rewind"
|
||||||
|
configurator_global_presets_and_settings_dialog
|
||||||
|
;;
|
||||||
|
|
||||||
"Swap A/B and X/Y Buttons: Enable/Disable" )
|
"Swap A/B and X/Y Buttons: Enable/Disable" )
|
||||||
log i "Configurator: opening \"$choice\" menu"
|
log i "Configurator: opening \"$choice\" menu"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue