Skip to content

Commit 5057809

Browse files
authored
Merge pull request #9 from RetroDECK/cooker
Cooker to Main - Post Update fixes
2 parents 9d00a22 + da1e540 commit 5057809

36 files changed

+246
-81
lines changed

.github/workflows/build_components.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -672,28 +672,34 @@ jobs:
672672
cat "$RELEASE_BODY_FILE" >> $GITHUB_OUTPUT
673673
echo "EOF" >> $GITHUB_OUTPUT
674674
675-
- name: Set Make Latest
676-
run: |
677-
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
678-
MAKE_LATEST=true
679-
else
680-
MAKE_LATEST=false
681-
fi
682-
echo "MAKE_LATEST=$MAKE_LATEST" >> $GITHUB_ENV
683-
684675
- name: Generate Version Tag
685676
id: version-tag
686677
run: |
687678
# Get the current date and time in GMT
688679
CURRENT_DATE=$(date -u +"%Y%m%d-%H%M")
689-
# Check if the branch is main or not
680+
681+
# Default: not latest
682+
MAKE_LATEST=false
683+
684+
# Branch-based tagging: main -> main-..., everything else -> cooker-...
690685
if [[ "${GITHUB_REF}" == "refs/heads/main" ]]; then
691686
TAG="main-${CURRENT_DATE}"
687+
MAKE_LATEST=true
692688
else
693689
TAG="cooker-${CURRENT_DATE}"
690+
MAKE_LATEST=false
694691
fi
692+
693+
# Set target repo name (repo part of owner/repo)
694+
REPO_NAME="${GITHUB_REPOSITORY#*/}"
695+
696+
# Export values
695697
echo "TAG=$TAG" >> $GITHUB_ENV
698+
echo "MAKE_LATEST=$MAKE_LATEST" >> $GITHUB_ENV
699+
echo "REPO_NAME=$REPO_NAME" >> $GITHUB_ENV
700+
696701
echo "TAG=$TAG" >> $GITHUB_OUTPUT
702+
echo "MAKE_LATEST=$MAKE_LATEST" >> $GITHUB_OUTPUT
697703
698704
- name: Publish release
699705
uses: ncipollo/release-action@v1

automation-tools/alchemist/desired_versions.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export DESIRED_QT5_RUNTIME_VERSION="5.15-25.08"
209209
# Source: AppImage
210210
# ------------------------------------------------------------------------------
211211
# MAIN (Stable)
212-
export PCSX2_DESIRED_VERSION="v2.5.409"
212+
export PCSX2_DESIRED_VERSION="v2.6.1"
213213

214214
# COOKER (Override)
215215
# export PCSX2_DESIRED_VERSION="newest"
@@ -341,7 +341,7 @@ export DESIRED_QT5_RUNTIME_VERSION="5.15-25.08"
341341
# Repo: https://github.com/RetroDECK/Vita3K-bin
342342
# ------------------------------------------------------------------------------
343343
# MAIN (Stable)
344-
export VITA3K_DESIRED_VERSION="3869"
344+
export VITA3K_DESIRED_VERSION="3872"
345345

346346
# COOKER (Override)
347347
# export VITA3K_DESIRED_VERSION="latest"
@@ -549,8 +549,8 @@ export DESIRED_QT5_RUNTIME_VERSION="5.15-25.08"
549549
# ------------------------------------------------------------------
550550

551551
if [[ "${GITHUB_REF_NAME:-}" != "main" ]]; then
552-
# Non‑main branches use the “cooker‑latest” build tag
553-
export FRAMEWORK_DESIRED_VERSION="cooker-latest on $(date +%Y-%m-%d)"
552+
# Non‑main branches use the “latest-cooker” build tag
553+
export FRAMEWORK_DESIRED_VERSION="latest-cooker on $(date +%Y-%m-%d)"
554554
else
555555
# Main branch uses the “main‑latest” build tag
556556
export FRAMEWORK_DESIRED_VERSION="main-latest on $(date +%Y-%m-%d)"

azahar/component_prepare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ if [[ "$action" == "reset" ]]; then # Run reset-only commands
2929
dir_prep "$texture_packs_path/Azahar/textures" "$azahar_textures_path"
3030
dir_prep "$shaders_path/Azahar/" "$azahar_shaders_path"
3131
dir_prep "$logs_path/Azahar/" "$azahar_logs_path"
32-
dir_prep "$cheats/Azahar/" "$azahar_cheats_path"
32+
dir_prep "$cheats_path/Azahar/" "$azahar_cheats_path"
3333
fi

azahar/component_update.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ if [[ $(check_version_is_older_than "$version_being_updated" "0.10.0b") == "true
99
# - Init Azahar as it is a new emulator
1010
# - Migrate legacy Citra saves to Azahar saves dir
1111

12+
log i "0.10.0b Upgrade - Reset: Azahar"
13+
1214
prepare_component "reset" "azahar"
15+
1316
if [[ -d "$XDG_DATA_HOME/citra-emu/nand" ]]; then
1417
move "$XDG_DATA_HOME/citra-emu/nand" "$saves_path/n3ds/azahar/"
1518
fi

cemu/component_update.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,14 @@ if [[ $(check_version_is_older_than "$version_being_updated" "0.7.0b") == "true"
1010

1111
prepare_component "reset" "cemu"
1212
fi
13+
14+
if [[ $(check_version_is_older_than "$version_being_updated" "0.10.0b") == "true" ]]; then
15+
16+
log i "0.10.0b Upgrade - Postmove: Cemu"
17+
18+
prepare_component "postmove" "cemu"
19+
20+
if [[ -e "$bios_path/cemu/keys.txt" ]]; then
21+
rm -rf "$XDG_DATA_HOME/Cemu/keys.txt" && ln -s "$bios_path/cemu/keys.txt" "$XDG_DATA_HOME/Cemu/keys.txt" && log d "Linked $bios_path/cemu/keys.txt to $XDG_DATA_HOME/Cemu/keys.txt"
22+
fi
23+
fi

dolphin/component_update.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ if [[ $(check_version_is_older_than "$version_being_updated" "0.9.1b") == "true"
3535
fi
3636

3737
if [[ $(check_version_is_older_than "$version_being_updated" "0.10.0b") == "true" ]]; then
38-
log i "Dolphin team suggest to run Dolphin in single core, setting it"
38+
log i "0.10.0b Upgrade - Postmove: Dolphin with Config Changes"
39+
3940
set_setting_value "$dolphin_config" "CPUThread" "False" "dolphin" "Core"
4041
set_setting_value "$dolphin_config" "LanguageCode" " " "dolphin" "Interface"
4142

43+
prepare_component "postmove" "dolphin"
44+
4245
fi
4346

4447
#######################################

duckstation/component_update.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,11 @@ if [[ $(check_version_is_older_than "$version_being_updated" "0.7.0b") == "true"
4343
set_setting_value "$duckstationconf" "SaveStateOnExit" "false" "duckstation" "Main"
4444
set_setting_value "$duckstationconf" "Enabled" "false" "duckstation" "Cheevos"
4545
fi
46+
47+
if [[ $(check_version_is_older_than "$version_being_updated" "0.10.0b") == "true" ]]; then
48+
49+
log i "0.10.0b Upgrade - Postmove: Duckstation (Legacy)"
50+
51+
prepare_component "postmove" "duckstation"
52+
53+
fi

es-de/component_prepare.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ if [[ "$action" == "reset" ]]; then
1313
create_dir "$XDG_CONFIG_HOME/ES-DE/settings"
1414
log d "Preparing es_settings.xml"
1515
cp -f "$component_config/es_settings.xml" "$es_de_config"
16+
set_setting_value "$es_de_config" "Theme" "RetroDECK-theme-main" "es_settings"
1617
set_setting_value "$es_de_config" "ROMDirectory" "$roms_path" "es_settings"
1718
set_setting_value "$es_de_config" "MediaDirectory" "$downloaded_media_path" "es_settings"
1819
set_setting_value "$es_de_config" "UserThemeDirectory" "$themes_path" "es_settings"
@@ -36,4 +37,9 @@ if [[ "$action" == "postmove" ]]; then
3637
set_setting_value "$es_de_config" "MediaDirectory" "$downloaded_media_path" "es_settings"
3738
set_setting_value "$es_de_config" "UserThemeDirectory" "$themes_path" "es_settings"
3839
dir_prep "$rd_home_path/ES-DE/gamelists" "$XDG_CONFIG_HOME/ES-DE/gamelists"
40+
dir_prep "$rd_home_path/ES-DE/collections" "$XDG_CONFIG_HOME/ES-DE/collections"
41+
dir_prep "$rd_home_path/ES-DE/scripts" "$XDG_CONFIG_HOME/ES-DE/scripts"
42+
dir_prep "$rd_home_path/ES-DE/screensavers" "$XDG_CONFIG_HOME/ES-DE/screensavers"
43+
dir_prep "$rd_home_path/ES-DE/custom_systems" "$XDG_CONFIG_HOME/ES-DE/custom_systems"
44+
dir_prep "$logs_path/ES-DE" "$XDG_CONFIG_HOME/ES-DE/logs"
3945
fi

es-de/component_update.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ if [[ $(check_version_is_older_than "$version_being_updated" "0.10.0b") == "true
7171
# With the RetroDECK Neo the theme folder is changed, so if the user set the RetroDECK Theme we need to fix the name in the config
7272

7373
if [[ $(get_setting_value "$es_de_config" "Theme" "es_settings") == "retrodeck" ]]; then
74-
log i "Default RetroDECK theme is set, fixing theme name in ES-DE config."
74+
log i "0.10.0b Upgrade - Postmove: ES-DE - Default RetroDECK theme is set, fixing theme name in ES-DE config"
7575
set_setting_value "$es_de_config" "Theme" "RetroDECK-theme-main" "es_settings"
76+
77+
prepare_component "postmove" "es-de"
7678
fi
7779
fi
80+

flips/component_update.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ if [[ $(check_version_is_older_than "$version_being_updated" "0.10.0b") == "true
88
# In version 0.10.0b, the following changes were made that required config file updates/reset or other changes to the filesystem:
99
# - Init FLIPS as it is a new emulator
1010

11+
log i "0.10.0b Upgrade - Reset: Flips"
12+
1113
prepare_component "reset" "flips"
1214
fi

0 commit comments

Comments
 (0)