mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-30 12:05:38 +00:00
Merge branch 'cooker' of https://github.com/monkeyx-net/RetroDECK_UK into cooker
This commit is contained in:
commit
05b7f9c559
2
.github/workflows/cooker-selfhosted.yml
vendored
2
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -166,6 +166,8 @@ jobs:
|
||||||
fi
|
fi
|
||||||
git tag "${{ env.TAG }}" # Create the tag locally
|
git tag "${{ env.TAG }}" # Create the tag locally
|
||||||
git push origin "${{ env.TAG }}" # Push the new tag in the remote repo
|
git push origin "${{ env.TAG }}" # Push the new tag in the remote repo
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||||
|
|
||||||
# In case it cannot publish the release at least it's providing the flatpak file for creating a manual release
|
# In case it cannot publish the release at least it's providing the flatpak file for creating a manual release
|
||||||
- name: Upload RetroDECK-cooker.flatpak
|
- name: Upload RetroDECK-cooker.flatpak
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main
|
latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main
|
||||||
outside_file^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid
|
outside_file^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid
|
||||||
branch^THISBRANCH
|
branch^THISBRANCH
|
||||||
|
THISREPO^THISREPO
|
||||||
|
|
||||||
hash^RASHAPLACEHOLDER^https://buildbot.libretro.com/nightly/linux/x86_64/RetroArch.7z
|
hash^RASHAPLACEHOLDER^https://buildbot.libretro.com/nightly/linux/x86_64/RetroArch.7z
|
||||||
hash^SAMEDUCKSHAPLACEHOLDER^https://buildbot.libretro.com/nightly/linux/x86_64/latest/sameduck_libretro.so.zip
|
hash^SAMEDUCKSHAPLACEHOLDER^https://buildbot.libretro.com/nightly/linux/x86_64/latest/sameduck_libretro.so.zip
|
||||||
|
|
|
@ -51,7 +51,18 @@ get_current_branch() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Retrieve the repository URL
|
||||||
|
get_repo_url() {
|
||||||
|
local repo_url=$(git config --get remote.origin.url)
|
||||||
|
# Convert SSH URL to HTTPS if needed
|
||||||
|
if [[ "$repo_url" == git@* ]]; then
|
||||||
|
repo_url=$(echo "$repo_url" | sed -e 's|git@|https://|' -e 's|:|/|')
|
||||||
|
fi
|
||||||
|
echo "$repo_url"
|
||||||
|
}
|
||||||
|
|
||||||
current_branch=$(get_current_branch)
|
current_branch=$(get_current_branch)
|
||||||
|
current_repo_url=$(get_repo_url)
|
||||||
|
|
||||||
echo "Manifest location: $rd_manifest"
|
echo "Manifest location: $rd_manifest"
|
||||||
echo "Automation task list location: $automation_task_list"
|
echo "Automation task list location: $automation_task_list"
|
||||||
|
@ -170,6 +181,13 @@ handle_url() {
|
||||||
/bin/sed -i 's^'"$placeholder"'^'"$calculated_url"'^g' "$rd_manifest"
|
/bin/sed -i 's^'"$placeholder"'^'"$calculated_url"'^g' "$rd_manifest"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Handle the THISREPO placeholder
|
||||||
|
handle_thisrepo() {
|
||||||
|
local placeholder="$1"
|
||||||
|
echo "Replacing placeholder $placeholder with repository URL $current_repo_url"
|
||||||
|
/bin/sed -i 's^'"$placeholder"'^'"$current_repo_url"'^g' "$rd_manifest"
|
||||||
|
}
|
||||||
|
|
||||||
# Process the task list
|
# Process the task list
|
||||||
while IFS="^" read -r action placeholder url branch || [[ -n "$action" ]]; do
|
while IFS="^" read -r action placeholder url branch || [[ -n "$action" ]]; do
|
||||||
if [[ ! "$action" == "#"* ]] && [[ -n "$action" ]]; then
|
if [[ ! "$action" == "#"* ]] && [[ -n "$action" ]]; then
|
||||||
|
@ -184,6 +202,8 @@ while IFS="^" read -r action placeholder url branch || [[ -n "$action" ]]; do
|
||||||
"outside_env_var" ) handle_outside_env_var "$placeholder" "$url" ;;
|
"outside_env_var" ) handle_outside_env_var "$placeholder" "$url" ;;
|
||||||
"custom_command" ) handle_custom_command "$url" ;;
|
"custom_command" ) handle_custom_command "$url" ;;
|
||||||
"url" ) handle_url "$placeholder" "$url" ;;
|
"url" ) handle_url "$placeholder" "$url" ;;
|
||||||
|
"THISREPO" ) handle_thisrepo "$placeholder" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
done < "$automation_task_list"
|
done < "$automation_task_list"
|
||||||
|
|
||||||
|
|
|
@ -153,13 +153,12 @@
|
||||||
<string name="ScreensaverType" value="video" />
|
<string name="ScreensaverType" value="video" />
|
||||||
<string name="StartupSystem" value="" />
|
<string name="StartupSystem" value="" />
|
||||||
<string name="SystemsSorting" value="manufacturer_hwtype_year" />
|
<string name="SystemsSorting" value="manufacturer_hwtype_year" />
|
||||||
<string name="Theme" value="art-book-next-es-de" />
|
<string name="Theme" value="retrodeck" />
|
||||||
<string name="ThemeAspectRatio" value="automatic" />
|
<string name="ThemeAspectRatio" value="automatic" />
|
||||||
<string name="ThemeColorScheme" value="art-book-next" />
|
<string name="ThemeColorScheme" value="retrodeck" />
|
||||||
<string name="ThemeFontSize" value="" />
|
<string name="ThemeFontSize" value="medium" />
|
||||||
<string name="ThemeSet" value="art-book-next-es-de" />
|
|
||||||
<string name="ThemeTransitions" value="automatic" />
|
<string name="ThemeTransitions" value="automatic" />
|
||||||
<string name="ThemeVariant" value="system-multi-gamelist-list-immersive" />
|
<string name="ThemeVariant" value="carousel" />
|
||||||
<string name="UIMode" value="full" />
|
<string name="UIMode" value="full" />
|
||||||
<string name="UIMode_passkey" value="uuddlrlrba" />
|
<string name="UIMode_passkey" value="uuddlrlrba" />
|
||||||
<string name="UserThemeDirectory" value="" />
|
<string name="UserThemeDirectory" value="" />
|
|
@ -352,7 +352,7 @@ post_update() {
|
||||||
if [[ $(check_version_is_older_than "0.8.3b") == "true" ]]; then
|
if [[ $(check_version_is_older_than "0.8.3b") == "true" ]]; then
|
||||||
# In version 0.8.3b, the following changes were made:
|
# In version 0.8.3b, the following changes were made:
|
||||||
# - Recovery from a failed move of the themes, downloaded_media and gamelists folder to their new ES-DE locations.
|
# - Recovery from a failed move of the themes, downloaded_media and gamelists folder to their new ES-DE locations.
|
||||||
if [[ !-d "$rdhome/ES-DE/themes" || ! -d "$rdhome/ES-DE/downloaded_media" || ! -d "$rdhome/ES-DE/gamelists" ]]; then
|
if [[ ! -d "$rdhome/ES-DE/themes" || ! -d "$rdhome/ES-DE/downloaded_media" || ! -d "$rdhome/ES-DE/gamelists" ]]; then
|
||||||
log i "Moving ES-DE downloaded_media, gamelist, and themes from \"$rdhome\" to \"$rdhome/ES-DE\" due to a RetroDECK Framework bug"
|
log i "Moving ES-DE downloaded_media, gamelist, and themes from \"$rdhome\" to \"$rdhome/ES-DE\" due to a RetroDECK Framework bug"
|
||||||
if [[ -d "$rdhome/themes" && ! -d "$rdhome/ES-DE/themes" ]]; then
|
if [[ -d "$rdhome/themes" && ! -d "$rdhome/ES-DE/themes" ]]; then
|
||||||
move "$rdhome/themes" "$rdhome/ES-DE/themes" && log d "Move of \"$rdhome/themes\" completed"
|
move "$rdhome/themes" "$rdhome/ES-DE/themes" && log d "Move of \"$rdhome/themes\" completed"
|
||||||
|
|
|
@ -90,7 +90,7 @@ modules:
|
||||||
echo "Version is $VERSION"
|
echo "Version is $VERSION"
|
||||||
sources:
|
sources:
|
||||||
- type: git
|
- type: git
|
||||||
url: https://github.com/RetroDECK/RetroDECK.git
|
url: THISREPO
|
||||||
branch: THISBRANCH
|
branch: THISBRANCH
|
||||||
|
|
||||||
- name: xmlstarlet
|
- name: xmlstarlet
|
||||||
|
@ -178,7 +178,7 @@ modules:
|
||||||
sha256: f5f359d6332861bd497570848fcb42520964a9e83d5e3abe397b6b6db9bcaaf4
|
sha256: f5f359d6332861bd497570848fcb42520964a9e83d5e3abe397b6b6db9bcaaf4
|
||||||
dest: fontconfig
|
dest: fontconfig
|
||||||
- type: git
|
- type: git
|
||||||
url: https://github.com/RetroDECK/RetroDECK.git
|
url: THISREPO
|
||||||
branch: THISBRANCH
|
branch: THISBRANCH
|
||||||
|
|
||||||
# RetroArch
|
# RetroArch
|
||||||
|
@ -649,5 +649,5 @@ modules:
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
- type: git
|
- type: git
|
||||||
url: https://github.com/RetroDECK/RetroDECK.git
|
url: THISREPO
|
||||||
branch: THISBRANCH
|
branch: THISBRANCH
|
Loading…
Reference in a new issue