From 34c885faf698a390b6ad3a434aad2456e19d0c12 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 22 Aug 2023 08:39:25 +0200 Subject: [PATCH 001/105] ES-DE: updated to 2.1.1 --- net.retrodeck.retrodeck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index d7f79d87..3d9bc162 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -319,7 +319,7 @@ modules: sources: - type: git url: https://gitlab.com/es-de/emulationstation-de - branch: c78e215d13b02132762b9fbf45ec7b861d50601b + branch: 5545187d82fabf93256b7d176f39a0a98bcd6c54 - type: shell commands: - sed -i 's#"EMULATIONSTATION-DE V" + Utils::String::toUpper(PROGRAM_VERSION_STRING)#"RetroDECK From 4451625531c58f679a2d5b3b5f752181993715ef Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 23 Aug 2023 09:09:42 +0200 Subject: [PATCH 002/105] Fixed partial release notes window size --- functions/dialogs.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/functions/dialogs.sh b/functions/dialogs.sh index 985f5458..e77b65f7 100644 --- a/functions/dialogs.sh +++ b/functions/dialogs.sh @@ -169,10 +169,13 @@ changelog_dialog() { else local version_changelog=$(xml sel -t -m "//release[@version='$1']/description" -v . -n $rd_appdata | tr -s '\n' | sed 's/^\s*//') - zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \ + echo -e "In RetroDECK version $1, the following changes were made:\n$version_changelog" > "/var/config/retrodeck/changelog-partial.txt" + $version_changelog >> "/var/config/retrodeck/changelog-partial.txt" + + zenity --icon-name=net.retrodeck.retrodeck --text-info --width=1200 --height=720 \ --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ --title "RetroDECK Changelogs" \ - --text="In RetroDECK version $1, the following changes were made:\n$version_changelog" + --filename="/var/config/retrodeck/changelog-partial.txt" fi } From 35092d5d23e36465b299e721be6d6000fe61d6a6 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 23 Aug 2023 13:19:47 +0200 Subject: [PATCH 003/105] ES-DE: Updated default theme --- net.retrodeck.retrodeck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 3d9bc162..416b9164 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -340,7 +340,7 @@ modules: sources: - type: git url: https://github.com/anthonycaccese/art-book-next-es-de.git - commit: a0dc0cccaa3f1475feb58e551fe732d982e161c0 + commit: 4fe896af7447404f6ea083335cd661c91b0f7860 # ES-DE Themes - END From 69204c8ed17ba9722a5ab89a66fff01c05014ddb Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 23 Aug 2023 14:41:54 +0200 Subject: [PATCH 004/105] ES-DE: Updated patches and diveded them per file --- net.retrodeck.retrodeck.yml | 8 ++- rd-submodules/es-de/GuiMenu.cpp.patch | 38 +++++++++++ rd-submodules/es-de/GuiMenu.h.patch | 10 +++ ...ck-mods.patch => ViewController.cpp.patch} | 67 ++----------------- rd-submodules/es-de/Window.cpp.patch | 22 ++++++ rd-submodules/retroarch | 2 +- rd-submodules/shared-modules | 2 +- 7 files changed, 85 insertions(+), 64 deletions(-) create mode 100644 rd-submodules/es-de/GuiMenu.cpp.patch create mode 100644 rd-submodules/es-de/GuiMenu.h.patch rename rd-submodules/es-de/{es-de-retrodeck-mods.patch => ViewController.cpp.patch} (70%) create mode 100644 rd-submodules/es-de/Window.cpp.patch diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 416b9164..8c32c480 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -326,7 +326,13 @@ modules: v'$(cat ${FLATPAK_DEST}/retrodeck/version)', ES-DE v" + Utils::String::toUpper(PROGRAM_VERSION_STRING)#g' es-app/src/guis/GuiMenu.cpp - type: patch - path: rd-submodules/es-de/es-de-retrodeck-mods.patch + path: rd-submodules/es-de/GuiMenu.cpp.patch + - type: patch + path: rd-submodules/es-de/GuiMenu.h.patch + - type: patch + path: rd-submodules/es-de/ViewController.cpp.patch + - type: patch + path: rd-submodules/es-de/Window.cpp.patch # ES-DE - END diff --git a/rd-submodules/es-de/GuiMenu.cpp.patch b/rd-submodules/es-de/GuiMenu.cpp.patch new file mode 100644 index 00000000..080f8922 --- /dev/null +++ b/rd-submodules/es-de/GuiMenu.cpp.patch @@ -0,0 +1,38 @@ +diff -au1r emulationstation-de/es-app/src/guis/GuiMenu.cpp emulationstation-de/es-app/src/guis/GuiMenu.cpp +--- emulationstation-de/es-app/src/guis/GuiMenu.cpp 2023-08-23 13:12:15.617292576 +0200 ++++ emulationstation-de/es-app/src/guis/GuiMenu.cpp 2023-08-23 13:44:10.736412006 +0200 +@@ -67,2 +67,4 @@ + ++ addEntry("RETRODECK CONFIGURATOR", mMenuColorPrimary, false, [this] { openRetroDeckConfigurator(); }); ++ + if (!Settings::getInstance()->getBool("ForceKiosk") && +@@ -70,3 +72,3 @@ + #if defined(__APPLE__) +- addEntry("QUIT EMULATIONSTATION", mMenuColorPrimary, false, [this] { openQuitMenu(); }); ++ addEntry("QUIT RETRODECK", mMenuColorPrimary, false, [this] { openQuitMenu(); }); + #else +@@ -75,3 +77,3 @@ + else +- addEntry("QUIT EMULATIONSTATION", mMenuColorPrimary, false, [this] { openQuitMenu(); }); ++ addEntry("QUIT RETRODECK", mMenuColorPrimary, false, [this] { openQuitMenu(); }); + #endif +@@ -1758,3 +1760,3 @@ + auto quitText = std::make_shared( +- "QUIT EMULATIONSTATION", Font::get(FONT_SIZE_MEDIUM), mMenuColorPrimary); ++ "QUIT RETRODECK", Font::get(FONT_SIZE_MEDIUM), mMenuColorPrimary); + quitText->setSelectable(true); +@@ -1910 +1912,14 @@ + } ++ +++void GuiMenu::openRetroDeckConfigurator() +++{ +++ // Launch the configurator.sh script +++ std::string command; +++ std::string startDirectory; +++ bool runInBackground; +++ command = "bash /app/tools/configurator.sh"; +++ startDirectory = "/app/tools"; +++ runInBackground = false; +++ int result = Utils::Platform::launchGameUnix(command, startDirectory, runInBackground); +++ // You can add any checks for the script's outcome here. +++} diff --git a/rd-submodules/es-de/GuiMenu.h.patch b/rd-submodules/es-de/GuiMenu.h.patch new file mode 100644 index 00000000..13a6b687 --- /dev/null +++ b/rd-submodules/es-de/GuiMenu.h.patch @@ -0,0 +1,10 @@ +diff -au1r emulationstation-de/es-app/src/guis/GuiMenu.h emulationstation-de/es-app/src/guis/GuiMenu.h +--- emulationstation-de/es-app/src/guis/GuiMenu.h 2023-08-23 13:12:15.617292576 +0200 ++++ emulationstation-de/es-app/src/guis/GuiMenu.h 2023-08-23 13:50:20.978700234 +0200 +@@ -46,2 +46,3 @@ + void openOtherOptions(); ++ void openRetroDeckConfigurator(); + void openQuitMenu(); +@@ -54 +55,2 @@ + #endif // ES_APP_GUIS_GUI_MENU_H ++ diff --git a/rd-submodules/es-de/es-de-retrodeck-mods.patch b/rd-submodules/es-de/ViewController.cpp.patch similarity index 70% rename from rd-submodules/es-de/es-de-retrodeck-mods.patch rename to rd-submodules/es-de/ViewController.cpp.patch index fd17ccf9..2f485a31 100644 --- a/rd-submodules/es-de/es-de-retrodeck-mods.patch +++ b/rd-submodules/es-de/ViewController.cpp.patch @@ -1,56 +1,6 @@ -diff -au1r emulationstation-de/es-app/src/guis/GuiMenu.cpp emulationstation-de/es-app/src/guis/GuiMenu.cpp ---- emulationstation-de/es-app/src/guis/GuiMenu.cpp 2023-07-14 08:44:25.788696841 -0400 -+++ emulationstation-de/es-app/src/guis/GuiMenu.cpp 2023-07-14 08:48:23.574196859 -0400 -@@ -10,2 +10,3 @@ - #include "guis/GuiMenu.h" -+#include "utils/PlatformUtil.h" - -@@ -67,2 +68,4 @@ - -+ addEntry("RETRODECK CONFIGURATOR", mMenuColorPrimary, false, [this] { openRetroDeckConfigurator(); }); -+ - if (!Settings::getInstance()->getBool("ForceKiosk") && -@@ -70,3 +73,3 @@ - #if defined(__APPLE__) -- addEntry("QUIT EMULATIONSTATION", mMenuColorPrimary, false, [this] { openQuitMenu(); }); -+ addEntry("QUIT RETRODECK", mMenuColorPrimary, false, [this] { openQuitMenu(); }); - #else -@@ -75,3 +78,3 @@ - else -- addEntry("QUIT EMULATIONSTATION", mMenuColorPrimary, false, [this] { openQuitMenu(); }); -+ addEntry("QUIT RETRODECK", mMenuColorPrimary, false, [this] { openQuitMenu(); }); - #endif -@@ -1729,2 +1732,15 @@ - -+void GuiMenu::openRetroDeckConfigurator() -+{ -+ // Launch the configurator.sh script -+ std::string command; -+ std::string startDirectory; -+ bool runInBackground; -+ command = "bash /app/tools/configurator.sh"; -+ startDirectory = "/app/tools"; -+ runInBackground = false; -+ int result = Utils::Platform::launchGameUnix(command, startDirectory, runInBackground); -+ // You can add any checks for the script's outcome here. -+} -+ - void GuiMenu::openQuitMenu() -@@ -1758,3 +1774,3 @@ - auto quitText = std::make_shared( -- "QUIT EMULATIONSTATION", Font::get(FONT_SIZE_MEDIUM), mMenuColorPrimary); -+ "QUIT RETRODECK", Font::get(FONT_SIZE_MEDIUM), mMenuColorPrimary); - quitText->setSelectable(true); -diff -au1r emulationstation-de/es-app/src/guis/GuiMenu.h emulationstation-de/es-app/src/guis/GuiMenu.h ---- emulationstation-de/es-app/src/guis/GuiMenu.h 2023-07-14 08:44:25.788696841 -0400 -+++ emulationstation-de/es-app/src/guis/GuiMenu.h 2023-07-14 08:49:05.851991859 -0400 -@@ -46,2 +46,3 @@ - void openOtherOptions(); -+ void openRetroDeckConfigurator(); - void openQuitMenu(); diff -au1r emulationstation-de/es-app/src/views/ViewController.cpp emulationstation-de/es-app/src/views/ViewController.cpp ---- emulationstation-de/es-app/src/views/ViewController.cpp 2023-07-14 08:44:25.788696841 -0400 -+++ emulationstation-de/es-app/src/views/ViewController.cpp 2023-07-17 09:58:26.862373622 -0400 +--- emulationstation-de/es-app/src/views/ViewController.cpp 2023-08-23 13:12:15.625292630 +0200 ++++ emulationstation-de/es-app/src/views/ViewController.cpp 2023-08-23 14:29:23.547223951 +0200 @@ -164,9 +164,7 @@ { - mNoGamesErrorMessage = "NO GAME FILES WERE FOUND. EITHER PLACE YOUR GAMES IN " @@ -65,7 +15,7 @@ diff -au1r emulationstation-de/es-app/src/views/ViewController.cpp emulationstat + "SYSTEM SUBFOLDER IN THE CONFIGURED ROM DIRECTORY " + "AND RUN RETRODECK AGAIN TO SCAN YOUR LIBRARY.\n" + "THE CURRENTLY CONFIGURED ROM DIRECTORY IS:\n"; - + @@ -179,90 +177,3 @@ mNoGamesMessageBox = new GuiMsgBox( - HelpStyle(), mNoGamesErrorMessage + mRomDirectory, "CHANGE ROM DIRECTORY", @@ -163,11 +113,6 @@ diff -au1r emulationstation-de/es-app/src/views/ViewController.cpp emulationstat - true, false, + "", nullptr, "", nullptr, true, false, (mRenderer->getIsVerticalOrientation() ? -diff -au1r emulationstation-de/es-core/src/Window.cpp emulationstation-de/es-core/src/Window.cpp ---- emulationstation-de/es-core/src/Window.cpp 2023-07-14 08:44:25.805371841 -0400 -+++ emulationstation-de/es-core/src/Window.cpp 2023-07-14 08:52:32.335181878 -0400 -@@ -165,3 +165,3 @@ - progressBarRect.barPosY = mSplashTextPositions.y + (progressBarRect.barHeight * 2.0f); -- progressBarRect.color = 0x777777FF; -+ progressBarRect.color = 0xC858E6FF; - mProgressBarRectangles.emplace_back(progressBarRect); +@@ -1446 +1357,2 @@ + } ++ diff --git a/rd-submodules/es-de/Window.cpp.patch b/rd-submodules/es-de/Window.cpp.patch new file mode 100644 index 00000000..6c9301ea --- /dev/null +++ b/rd-submodules/es-de/Window.cpp.patch @@ -0,0 +1,22 @@ +diff -au1r emulationstation-de/es-core/src/Window.cpp emulationstation-de/es-core/src/Window.cpp +--- emulationstation-de/es-core/src/Window.cpp 2023-08-23 13:12:15.625292630 +0200 ++++ emulationstation-de/es-core/src/Window.cpp 2023-08-23 14:04:13.393435463 +0200 +@@ -140,7 +140,7 @@ + mSplashTextScanning = std::unique_ptr( +- mDefaultFonts.at(1)->buildTextCache("Searching for games...", 0.0f, 0.0f, 0x777777FF)); ++ mDefaultFonts.at(1)->buildTextCache("Searching for games...", 0.0f, 0.0f, 0xC858E6FF)); + mSplashTextPopulating = std::unique_ptr( +- mDefaultFonts.at(1)->buildTextCache("Loading systems...", 0.0f, 0.0f, 0x777777FF)); ++ mDefaultFonts.at(1)->buildTextCache("Loading systems...", 0.0f, 0.0f, 0xC858E6FF)); + mSplashTextReloading = std::unique_ptr( +- mDefaultFonts.at(1)->buildTextCache("Reloading...", 0.0f, 0.0f, 0x777777FF)); ++ mDefaultFonts.at(1)->buildTextCache("Reloading...", 0.0f, 0.0f, 0xC858E6FF)); + +@@ -165,3 +165,3 @@ + progressBarRect.barPosY = mSplashTextPositions.y + (progressBarRect.barHeight * 2.0f); +- progressBarRect.color = 0x777777FF; ++ progressBarRect.color = 0xC858E6FF; + mProgressBarRectangles.emplace_back(progressBarRect); +@@ -978 +978,2 @@ + } ++ diff --git a/rd-submodules/retroarch b/rd-submodules/retroarch index 0b1cfb79..fbfdda61 160000 --- a/rd-submodules/retroarch +++ b/rd-submodules/retroarch @@ -1 +1 @@ -Subproject commit 0b1cfb79e591e10488a3262d6b38db843c39a409 +Subproject commit fbfdda61b3da092a71cc53999dd3e7b909f244e2 diff --git a/rd-submodules/shared-modules b/rd-submodules/shared-modules index a2441b96..50314360 160000 --- a/rd-submodules/shared-modules +++ b/rd-submodules/shared-modules @@ -1 +1 @@ -Subproject commit a2441b964afefd8cd1cebcdf562c7878670daf42 +Subproject commit 50314360ded6fa3b9f0b602513b1164b7a6636ed From dd3fd9b375c5084ae9cc1153fe3545d44e5dcc5a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 23 Aug 2023 15:16:53 +0200 Subject: [PATCH 005/105] GuiMenu.cpp.patch fixed --- rd-submodules/es-de/GuiMenu.cpp.patch | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/rd-submodules/es-de/GuiMenu.cpp.patch b/rd-submodules/es-de/GuiMenu.cpp.patch index 080f8922..b0c035ea 100644 --- a/rd-submodules/es-de/GuiMenu.cpp.patch +++ b/rd-submodules/es-de/GuiMenu.cpp.patch @@ -24,15 +24,15 @@ diff -au1r emulationstation-de/es-app/src/guis/GuiMenu.cpp emulationstation-de/e @@ -1910 +1912,14 @@ } + -++void GuiMenu::openRetroDeckConfigurator() -++{ -++ // Launch the configurator.sh script -++ std::string command; -++ std::string startDirectory; -++ bool runInBackground; -++ command = "bash /app/tools/configurator.sh"; -++ startDirectory = "/app/tools"; -++ runInBackground = false; -++ int result = Utils::Platform::launchGameUnix(command, startDirectory, runInBackground); -++ // You can add any checks for the script's outcome here. -++} ++void GuiMenu::openRetroDeckConfigurator() ++{ ++ // Launch the configurator.sh script ++ std::string command; ++ std::string startDirectory; ++ bool runInBackground; ++ command = "bash /app/tools/configurator.sh"; ++ startDirectory = "/app/tools"; ++ runInBackground = false; ++ int result = Utils::Platform::launchGameUnix(command, startDirectory, runInBackground); ++ // You can add any checks for the script's outcome here. ++} From d4f82d74cecbc983d81a26c5e8a83b8047eac158 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 25 Aug 2023 15:12:37 +0200 Subject: [PATCH 006/105] Removed unused pipelines --- .github/workflows/TEST_release_info.yml | 62 ------- .github/workflows/cooker.yml | 205 ---------------------- .github/workflows/flathub_push_cooker.yml | 88 ---------- .github/workflows/main.yml | 188 -------------------- .github/workflows/remove-artifacts.yml | 22 --- 5 files changed, 565 deletions(-) delete mode 100644 .github/workflows/TEST_release_info.yml delete mode 100644 .github/workflows/cooker.yml delete mode 100644 .github/workflows/flathub_push_cooker.yml delete mode 100644 .github/workflows/main.yml delete mode 100644 .github/workflows/remove-artifacts.yml diff --git a/.github/workflows/TEST_release_info.yml b/.github/workflows/TEST_release_info.yml deleted file mode 100644 index ebf21609..00000000 --- a/.github/workflows/TEST_release_info.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: TEST_release_info - -on: - push: - branches: - - main - paths: - - .github/workflows/TEST_release_info.yml - pull_request: - branches: - - main - - workflow_dispatch: - - -jobs: - - Building_RetroDECK: - runs-on: ubuntu-latest - steps: - - - name: Generate build ID - id: generating_buildid - run: echo "##[set-output name=build-id;]$(echo "$( git rev-parse --short HEAD )")" - - - uses: actions/checkout@v3 - - - name: Initialize enviornment - run: | - git pull - git submodule init - git submodule update - sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet appstream-util - - - name: Validating the appdata - run: appstream-util validate "net.retrodeck.retrodeck.appdata.xml" - continue-on-error: true - - - name: Getting version info - id: version - run: | - appdata="https://raw.githubusercontent.com/XargonWan/RetroDECK/main/net.retrodeck.retrodeck.appdata.xml" - REL_VER=$(curl -s $appdata | xmlstarlet sel -t -v "//release/@version" | head -1) - DES="$(curl -s $appdata | xmlstarlet sel -t -m "//release[1]" -v "description" -n | sed '1,2d;$d;s/^ */- /;/^- $/d')" - echo "REL_VER=$REL_VER" >> $GITHUB_ENV - echo -e "# Release Notes\n" >> "body.md" - echo "$DES" >> "body.md" - - - name: Publish the flatpak in a new release - uses: ncipollo/release-action@v1 - env: - REL_VER: ${{ env.REL_VER }} - with: - tag: ${{ env.REL_VER }} - name: "RetroDECK v${{ env.REL_VER }}" - bodyFile: "body.md" - #artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz" - allowUpdates: true - draft: true - token: ${{ secrets.TRIGGER_BUILD_TOKEN }} - repo: RetroDECK - #continue-on-error: true \ No newline at end of file diff --git a/.github/workflows/cooker.yml b/.github/workflows/cooker.yml deleted file mode 100644 index ff8330e3..00000000 --- a/.github/workflows/cooker.yml +++ /dev/null @@ -1,205 +0,0 @@ -name: cooker - -on: - # push: - # branches: - # - cooker* - # pull_request: - # branches: - # - cooker* - - workflow_dispatch: - - -jobs: - - Job1_-_Building_P1: - runs-on: ubuntu-latest - steps: - - - name: Get date for artifacts - id: date - run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')" - - - name: Extract branch name - shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" - id: extract_branch - - - name: Generate build ID - id: generating_buildid - run: echo "##[set-output name=build-id;]$(echo "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}")" - - - uses: actions/checkout@v3 - - - name: Download global cache - uses: dawidd6/action-download-artifact@v2 - with: - workflow: cooker.yml - name: global-cache - search_artifacts: true - skip_unpack: true - continue-on-error: true - - - name: Extract global cache - run: | - tar --skip-old-files -xzvf retrodeck-cooker.tar.gz - rm -f retrodeck-cooker.tar.gz - continue-on-error: true - - - name: DEBUG - run: | - echo "Listing folder $PWD contents" - ls -lna - echo "Checking for version file" - find ~ -iname version - cat $(find ~ -iname version) - - - name: Initialize enviornment - run: | - git pull - git submodule init - git submodule update - sudo add-apt-repository ppa:alexlarsson/flatpak - sudo apt-get update - sudo apt install flatpak flatpak-builder p7zip-full - sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13 - - - name: Buld part 1 - Until melonds - run: | - sudo flatpak-builder --build-only --stop-at=melonds --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml - - - name: Compress cache - run: | - touch retrodeck-cooker.tar.gz - rm -rf .flatpak-builder/build/*-{2,3,4,5,6} - find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks - tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker .flatpak-builder/build - - - name: Upload build specific cache - uses: actions/upload-artifact@v3 - with: - name: "${{ steps.generating_buildid.outputs.build-id }}" - path: retrodeck-cooker.tar.gz - - # this is done to speed up the things now, it may be removed later - - name: Compress global cache - run: | - touch retrodeck-cooker.tar.gz - rm -rf .flatpak-builder/build/*-{2,3,4,5,6} - find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks - tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker .flatpak-builder/build - continue-on-error: true - - - name: Upload global cache - uses: actions/upload-artifact@v3 - with: - name: global-cache - path: retrodeck-cooker.tar.gz RetroDECK.flatpak - continue-on-error: true - - outputs: - buildID: "${{ steps.generating_buildid.outputs.build-id }}" - - Job2_-_Build_P2_and_publish: - runs-on: ubuntu-latest - needs: [Job1_-_Building_P1] - steps: - - - uses: actions/checkout@v3 - - - name: Download build specific cache - uses: actions/download-artifact@v2 - with: - name: ${{ needs.Job1_-_Building_P1.outputs.buildID }} - - - name: Extract cache - run: | - tar --skip-old-files -xzvf retrodeck-cooker.tar.gz - rm -f retrodeck-cooker.tar.gz - - - name: DEBUG - run: | - echo "Listing folder $PWD contents" - ls -lna - echo "Checking for version file" - find ~ -iname version - cat $(find ~ -iname version) - - - name: Initialize enviornment - run: | - git pull - git submodule init - git submodule update - sudo add-apt-repository ppa:alexlarsson/flatpak - sudo apt-get update - sudo apt install flatpak flatpak-builder p7zip-full - sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13 - - - name: Create Bundle - run: | - sudo flatpak-builder --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml - sudo flatpak build-bundle $GITHUB_WORKSPACE/local RetroDECK.flatpak net.retrodeck.retrodeck - - - name: Get date for artifacts - id: date - run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M')" - - - name: Extract branch name - shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" - id: extract_branch - - - name: Read version from version file - id: version - run: echo "##[set-output name=version;]$(cat $(find . -name version))" - - - name: DEBUG - Print version name - shell: bash - run: | - echo "DEBUG: printing version from version file" - echo "${{ steps.version.outputs.version }}" - - - name: Publish the flatpak in a new cooker release - uses: ncipollo/release-action@v1 - with: - #tag: "${{ steps.version.outputs.version }}" - tag: "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}" - body: | - # Release Notes (Cooker) - This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}. - - Cooker channel is provided for the community to test fixes and explore new functionality. - Please DO NOT open issues or ask support on this build. - - artifacts: "RetroDECK.flatpak" - allowUpdates: true - prerelease: true - draft: false - token: ${{ secrets.TRIGGER_BUILD_TOKEN }} - repo: RetroDECK-cooker - continue-on-error: true - - - name: Compress global cache - run: | - touch retrodeck-cooker.tar.gz - rm -rf .flatpak-builder/build/*-{2,3,4,5,6} - find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks - tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker .flatpak-builder/build - continue-on-error: true - - - name: Upload global cache - uses: actions/upload-artifact@v3 - with: - name: global-cache - path: retrodeck-cooker.tar.gz RetroDECK.flatpak - continue-on-error: true - - - name: Upload RetroDECK.flatpak - uses: actions/upload-artifact@v3 - with: - name: retrodeck-flatpak - path: RetroDECK.flatpak - continue-on-error: true diff --git a/.github/workflows/flathub_push_cooker.yml b/.github/workflows/flathub_push_cooker.yml deleted file mode 100644 index 65a4d349..00000000 --- a/.github/workflows/flathub_push_cooker.yml +++ /dev/null @@ -1,88 +0,0 @@ - -name: PUSH-cooker-flathub - -on: - workflow_dispatch: - -jobs: - - Pushing_cooker_into_flathub: - runs-on: ubuntu-latest - steps: - - name: Pushing - shell: bash - run: | - - # EDITABLES: - rd_branch=${GITHUB_REF_NAME} - echo $rd_branch - gits_folder="${GITHUB_WORKSPACE}/gits" # without last / - - mkdir -vp $gits_folder - cd $gits_folder - if [ -d flathub ]; then - rm -rf flathub - fi - git clone --recursive https://github.com/flathub/net.retrodeck.retrodeck.git flathub - cd $gits_folder - git clone --recursive https://github.com/XargonWan/RetroDECK RetroDECK - cd $gits_folder/RetroDECK - - # NON-EDITABLES - #relname="$rd_branch-"$(date +%d%m%y.%H%M) - relname="cooker-"$(git rev-parse --short HEAD) - - git checkout $rd_branch - git submodule init - git submodule update - # NOTE: the only linked submodules are: rd-submodules/retroarch - # these must be included in the exclusion list as they must be redownloaded - #sync -rav --progress --exclude={'res/screenshots/','shared-modules/','rd-submodules/retroarch','.git/','docs','retrodeck-flatpak/','retrodeck-flatpak-cooker/','.flatpak-builder/'} ~/RetroDECK/ ~/flathub/ - - cd $gits_folder/flathub - - git checkout -b $relname - - git rm -rf * - git clean -fxd # restroing git index - - # Copying only a few files as the others are cloned by git in retrodeck.sh - cd $gits_folder/RetroDECK - cp -rf \ - 'flathub.json' \ - 'LICENSE' \ - 'flathub.yml' \ - 'README.md' \ - $gits_folder/flathub/ - - cd $gits_folder/flathub - ls -lah - - # manipulating manifest - mv flathub.yml net.retrodeck.retrodeck.yml - - # Getting latest release name - # version=$(\ - # curl -sL \ - # -H "Accept: application/vnd.github+json" \ - # -H "Authorization: Bearer ${{ secrets.TRIGGER_BUILD_TOKEN }}" \ - # https://api.github.com/repos/XargonWan/RetroDECK-cooker/releases \ - # | jq .[0].tag_name \ - # | tr -d \" \ - # ) - - sha=$(curl -sL https://artifacts.retrodeck.net/artifacts/RetroDECK-Artifact.sha) - - sed -i "s#__SHA__#$sha#g" net.retrodeck.retrodeck.yml - - echo -e "Resulting manifest:\n" - cat net.retrodeck.retrodeck.yml - - git config --global user.name "${{ secrets.GITNAME }}" - git config --global user.email "${{ secrets.GITMAIL }}" - - git add * - git commit -m "Updated flathub/net.retrodeck.retrodeck from RetroDECK/$rd_branch" - - git remote -v - git push --force https://${{ secrets.TRIGGER_BUILD_TOKEN }}@github.com/flathub/net.retrodeck.retrodeck.git $relname diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 0404e018..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,188 +0,0 @@ -name: main - -on: - # Triggers the workflow on push or pull request events but only for the main branch - # push: - # branches: - # - main - # pull_request: - # branches: - # - main - - workflow_dispatch: - - -jobs: - - Job1_-_Building_P1: - runs-on: ubuntu-latest - steps: - - - name: Get date for artifacts - id: date - run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')" - - - name: Extract branch name - shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" - id: extract_branch - - - name: Generate build ID - id: generating_buildid - run: echo "##[set-output name=build-id;]$(echo "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}")" - - - uses: actions/checkout@v3 - - - name: Download global cache - uses: dawidd6/action-download-artifact@v2 - with: - workflow: main.yml - name: global-cache - search_artifacts: true - skip_unpack: true - continue-on-error: true - - - name: Extract global cache - run: | - tar --skip-old-files -xzvf retrodeck-main.tar.gz - rm -f retrodeck-main.tar.gz - continue-on-error: true - - - name: DEBUG - run: | - echo "Listing folder $PWD contents" - ls -lna - echo "Checking for version file" - find ~ -iname version - cat $(find ~ -iname version) - - - name: Initialize enviornment - run: | - git pull - git submodule init - git submodule update - sudo add-apt-repository ppa:alexlarsson/flatpak - sudo apt-get update - sudo apt install flatpak flatpak-builder p7zip-full - sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13 - - - name: Buld part 1 - Until melonds - run: | - sudo flatpak-builder --build-only --stop-at=melonds --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-main net.retrodeck.retrodeck.yml - - - name: Compress cache - run: | - touch retrodeck-main.tar.gz - rm -rf .flatpak-builder/build/*-{2,3,4,5,6} - find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks - tar --ignore-failed-read -czvf retrodeck-main.tar.gz retrodeck-flatpak-main .flatpak-builder/build - - - name: Upload build specific cache - uses: actions/upload-artifact@v3 - with: - name: "${{ steps.generating_buildid.outputs.build-id }}" - path: retrodeck-main.tar.gz - - # this is done to speed up the things now, it may be removed later - - name: Compress global cache - run: | - touch retrodeck-main.tar.gz - rm -rf .flatpak-builder/build/*-{2,3,4,5,6} - find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks - tar --ignore-failed-read -czvf retrodeck-main.tar.gz retrodeck-flatpak-main .flatpak-builder/build - continue-on-error: true - - - name: Upload global cache - uses: actions/upload-artifact@v3 - with: - name: global-cache - path: retrodeck-main.tar.gz RetroDECK.flatpak - continue-on-error: true - - outputs: - buildID: "${{ steps.generating_buildid.outputs.build-id }}" - - Job2_-_Build_P2_and_publish: - runs-on: ubuntu-latest - needs: [Job1_-_Building_P1] - steps: - - - uses: actions/checkout@v3 - - - name: Download build specific cache - uses: actions/download-artifact@v2 - with: - name: ${{ needs.Job1_-_Building_P1.outputs.buildID }} - - - name: Extract cache - run: | - tar --skip-old-files -xzvf retrodeck-main.tar.gz - rm -f retrodeck-main.tar.gz - - - name: DEBUG - run: | - echo "Listing folder $PWD contents" - ls -lna - echo "Checking for version file" - find ~ -iname version - cat $(find ~ -iname version) - - - name: Initialize enviornment - run: | - git pull - git submodule init - git submodule update - sudo add-apt-repository ppa:alexlarsson/flatpak - sudo apt-get update - sudo apt install flatpak flatpak-builder p7zip-full - sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13 - - - name: Create Bundle - run: | - sudo flatpak-builder --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-main net.retrodeck.retrodeck.yml - sudo flatpak build-bundle $GITHUB_WORKSPACE/local RetroDECK.flatpak net.retrodeck.retrodeck - - - name: Read version from version file - id: version - run: echo "##[set-output name=version;]$(cat $(find . -name version))" - - - name: Publish the flatpak in a new main release - uses: ncipollo/release-action@v1 - with: - #tag: "${{ steps.version.outputs.version }}" - #tag: "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}" - tag: "0.4.0b" - body: | - # Release Notes (main) - - artifacts: "RetroDECK.flatpak" - allowUpdates: true - prerelease: true - draft: true - token: ${{ secrets.TRIGGER_BUILD_TOKEN }} - repo: RetroDECK-main - continue-on-error: true - - - name: Compress global cache - run: | - touch retrodeck-main.tar.gz - rm -rf .flatpak-builder/build/*-{2,3,4,5,6} - find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks - tar --ignore-failed-read -czvf retrodeck-main.tar.gz retrodeck-flatpak-main .flatpak-builder/build - continue-on-error: true - - - name: Upload global cache - uses: actions/upload-artifact@v3 - with: - name: global-cache - path: retrodeck-main.tar.gz RetroDECK.flatpak - continue-on-error: true - - - name: Upload RetroDECK.flatpak - uses: actions/upload-artifact@v3 - with: - name: retrodeck-flatpak - path: RetroDECK.flatpak - continue-on-error: true \ No newline at end of file diff --git a/.github/workflows/remove-artifacts.yml b/.github/workflows/remove-artifacts.yml deleted file mode 100644 index 84c41e8e..00000000 --- a/.github/workflows/remove-artifacts.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Remove-artifacts - -on: - #schedule: - # Every day at 1am - # - cron: '0 1 * * *' - - workflow_dispatch: - -jobs: - remove-old-artifacts: - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - name: Remove old artifacts - uses: c-hive/gha-remove-artifacts@v1 - with: - age: '2 seconds' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js - # Optional inputs - # skip-tags: true - # skip-recent: 5 From 3b941155cf4260b59a86b702020ad3e54e9ac838 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 25 Aug 2023 15:12:54 +0200 Subject: [PATCH 007/105] Removed unused pipelines --- .../workflows/removed/TEST_release_info.yml | 62 ++++++ .github/workflows/removed/cooker.yml | 205 ++++++++++++++++++ .../workflows/removed/flathub_push_cooker.yml | 88 ++++++++ .github/workflows/removed/main.yml | 188 ++++++++++++++++ .../workflows/removed/remove-artifacts.yml | 22 ++ 5 files changed, 565 insertions(+) create mode 100644 .github/workflows/removed/TEST_release_info.yml create mode 100644 .github/workflows/removed/cooker.yml create mode 100644 .github/workflows/removed/flathub_push_cooker.yml create mode 100644 .github/workflows/removed/main.yml create mode 100644 .github/workflows/removed/remove-artifacts.yml diff --git a/.github/workflows/removed/TEST_release_info.yml b/.github/workflows/removed/TEST_release_info.yml new file mode 100644 index 00000000..ebf21609 --- /dev/null +++ b/.github/workflows/removed/TEST_release_info.yml @@ -0,0 +1,62 @@ +name: TEST_release_info + +on: + push: + branches: + - main + paths: + - .github/workflows/TEST_release_info.yml + pull_request: + branches: + - main + + workflow_dispatch: + + +jobs: + + Building_RetroDECK: + runs-on: ubuntu-latest + steps: + + - name: Generate build ID + id: generating_buildid + run: echo "##[set-output name=build-id;]$(echo "$( git rev-parse --short HEAD )")" + + - uses: actions/checkout@v3 + + - name: Initialize enviornment + run: | + git pull + git submodule init + git submodule update + sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet appstream-util + + - name: Validating the appdata + run: appstream-util validate "net.retrodeck.retrodeck.appdata.xml" + continue-on-error: true + + - name: Getting version info + id: version + run: | + appdata="https://raw.githubusercontent.com/XargonWan/RetroDECK/main/net.retrodeck.retrodeck.appdata.xml" + REL_VER=$(curl -s $appdata | xmlstarlet sel -t -v "//release/@version" | head -1) + DES="$(curl -s $appdata | xmlstarlet sel -t -m "//release[1]" -v "description" -n | sed '1,2d;$d;s/^ */- /;/^- $/d')" + echo "REL_VER=$REL_VER" >> $GITHUB_ENV + echo -e "# Release Notes\n" >> "body.md" + echo "$DES" >> "body.md" + + - name: Publish the flatpak in a new release + uses: ncipollo/release-action@v1 + env: + REL_VER: ${{ env.REL_VER }} + with: + tag: ${{ env.REL_VER }} + name: "RetroDECK v${{ env.REL_VER }}" + bodyFile: "body.md" + #artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz" + allowUpdates: true + draft: true + token: ${{ secrets.TRIGGER_BUILD_TOKEN }} + repo: RetroDECK + #continue-on-error: true \ No newline at end of file diff --git a/.github/workflows/removed/cooker.yml b/.github/workflows/removed/cooker.yml new file mode 100644 index 00000000..ff8330e3 --- /dev/null +++ b/.github/workflows/removed/cooker.yml @@ -0,0 +1,205 @@ +name: cooker + +on: + # push: + # branches: + # - cooker* + # pull_request: + # branches: + # - cooker* + + workflow_dispatch: + + +jobs: + + Job1_-_Building_P1: + runs-on: ubuntu-latest + steps: + + - name: Get date for artifacts + id: date + run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')" + + - name: Extract branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: extract_branch + + - name: Generate build ID + id: generating_buildid + run: echo "##[set-output name=build-id;]$(echo "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}")" + + - uses: actions/checkout@v3 + + - name: Download global cache + uses: dawidd6/action-download-artifact@v2 + with: + workflow: cooker.yml + name: global-cache + search_artifacts: true + skip_unpack: true + continue-on-error: true + + - name: Extract global cache + run: | + tar --skip-old-files -xzvf retrodeck-cooker.tar.gz + rm -f retrodeck-cooker.tar.gz + continue-on-error: true + + - name: DEBUG + run: | + echo "Listing folder $PWD contents" + ls -lna + echo "Checking for version file" + find ~ -iname version + cat $(find ~ -iname version) + + - name: Initialize enviornment + run: | + git pull + git submodule init + git submodule update + sudo add-apt-repository ppa:alexlarsson/flatpak + sudo apt-get update + sudo apt install flatpak flatpak-builder p7zip-full + sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13 + + - name: Buld part 1 - Until melonds + run: | + sudo flatpak-builder --build-only --stop-at=melonds --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml + + - name: Compress cache + run: | + touch retrodeck-cooker.tar.gz + rm -rf .flatpak-builder/build/*-{2,3,4,5,6} + find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks + tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker .flatpak-builder/build + + - name: Upload build specific cache + uses: actions/upload-artifact@v3 + with: + name: "${{ steps.generating_buildid.outputs.build-id }}" + path: retrodeck-cooker.tar.gz + + # this is done to speed up the things now, it may be removed later + - name: Compress global cache + run: | + touch retrodeck-cooker.tar.gz + rm -rf .flatpak-builder/build/*-{2,3,4,5,6} + find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks + tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker .flatpak-builder/build + continue-on-error: true + + - name: Upload global cache + uses: actions/upload-artifact@v3 + with: + name: global-cache + path: retrodeck-cooker.tar.gz RetroDECK.flatpak + continue-on-error: true + + outputs: + buildID: "${{ steps.generating_buildid.outputs.build-id }}" + + Job2_-_Build_P2_and_publish: + runs-on: ubuntu-latest + needs: [Job1_-_Building_P1] + steps: + + - uses: actions/checkout@v3 + + - name: Download build specific cache + uses: actions/download-artifact@v2 + with: + name: ${{ needs.Job1_-_Building_P1.outputs.buildID }} + + - name: Extract cache + run: | + tar --skip-old-files -xzvf retrodeck-cooker.tar.gz + rm -f retrodeck-cooker.tar.gz + + - name: DEBUG + run: | + echo "Listing folder $PWD contents" + ls -lna + echo "Checking for version file" + find ~ -iname version + cat $(find ~ -iname version) + + - name: Initialize enviornment + run: | + git pull + git submodule init + git submodule update + sudo add-apt-repository ppa:alexlarsson/flatpak + sudo apt-get update + sudo apt install flatpak flatpak-builder p7zip-full + sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13 + + - name: Create Bundle + run: | + sudo flatpak-builder --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml + sudo flatpak build-bundle $GITHUB_WORKSPACE/local RetroDECK.flatpak net.retrodeck.retrodeck + + - name: Get date for artifacts + id: date + run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M')" + + - name: Extract branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: extract_branch + + - name: Read version from version file + id: version + run: echo "##[set-output name=version;]$(cat $(find . -name version))" + + - name: DEBUG - Print version name + shell: bash + run: | + echo "DEBUG: printing version from version file" + echo "${{ steps.version.outputs.version }}" + + - name: Publish the flatpak in a new cooker release + uses: ncipollo/release-action@v1 + with: + #tag: "${{ steps.version.outputs.version }}" + tag: "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}" + body: | + # Release Notes (Cooker) + This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}. + + Cooker channel is provided for the community to test fixes and explore new functionality. + Please DO NOT open issues or ask support on this build. + + artifacts: "RetroDECK.flatpak" + allowUpdates: true + prerelease: true + draft: false + token: ${{ secrets.TRIGGER_BUILD_TOKEN }} + repo: RetroDECK-cooker + continue-on-error: true + + - name: Compress global cache + run: | + touch retrodeck-cooker.tar.gz + rm -rf .flatpak-builder/build/*-{2,3,4,5,6} + find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks + tar --ignore-failed-read -czvf retrodeck-cooker.tar.gz retrodeck-flatpak-cooker .flatpak-builder/build + continue-on-error: true + + - name: Upload global cache + uses: actions/upload-artifact@v3 + with: + name: global-cache + path: retrodeck-cooker.tar.gz RetroDECK.flatpak + continue-on-error: true + + - name: Upload RetroDECK.flatpak + uses: actions/upload-artifact@v3 + with: + name: retrodeck-flatpak + path: RetroDECK.flatpak + continue-on-error: true diff --git a/.github/workflows/removed/flathub_push_cooker.yml b/.github/workflows/removed/flathub_push_cooker.yml new file mode 100644 index 00000000..65a4d349 --- /dev/null +++ b/.github/workflows/removed/flathub_push_cooker.yml @@ -0,0 +1,88 @@ + +name: PUSH-cooker-flathub + +on: + workflow_dispatch: + +jobs: + + Pushing_cooker_into_flathub: + runs-on: ubuntu-latest + steps: + - name: Pushing + shell: bash + run: | + + # EDITABLES: + rd_branch=${GITHUB_REF_NAME} + echo $rd_branch + gits_folder="${GITHUB_WORKSPACE}/gits" # without last / + + mkdir -vp $gits_folder + cd $gits_folder + if [ -d flathub ]; then + rm -rf flathub + fi + git clone --recursive https://github.com/flathub/net.retrodeck.retrodeck.git flathub + cd $gits_folder + git clone --recursive https://github.com/XargonWan/RetroDECK RetroDECK + cd $gits_folder/RetroDECK + + # NON-EDITABLES + #relname="$rd_branch-"$(date +%d%m%y.%H%M) + relname="cooker-"$(git rev-parse --short HEAD) + + git checkout $rd_branch + git submodule init + git submodule update + # NOTE: the only linked submodules are: rd-submodules/retroarch + # these must be included in the exclusion list as they must be redownloaded + #sync -rav --progress --exclude={'res/screenshots/','shared-modules/','rd-submodules/retroarch','.git/','docs','retrodeck-flatpak/','retrodeck-flatpak-cooker/','.flatpak-builder/'} ~/RetroDECK/ ~/flathub/ + + cd $gits_folder/flathub + + git checkout -b $relname + + git rm -rf * + git clean -fxd # restroing git index + + # Copying only a few files as the others are cloned by git in retrodeck.sh + cd $gits_folder/RetroDECK + cp -rf \ + 'flathub.json' \ + 'LICENSE' \ + 'flathub.yml' \ + 'README.md' \ + $gits_folder/flathub/ + + cd $gits_folder/flathub + ls -lah + + # manipulating manifest + mv flathub.yml net.retrodeck.retrodeck.yml + + # Getting latest release name + # version=$(\ + # curl -sL \ + # -H "Accept: application/vnd.github+json" \ + # -H "Authorization: Bearer ${{ secrets.TRIGGER_BUILD_TOKEN }}" \ + # https://api.github.com/repos/XargonWan/RetroDECK-cooker/releases \ + # | jq .[0].tag_name \ + # | tr -d \" \ + # ) + + sha=$(curl -sL https://artifacts.retrodeck.net/artifacts/RetroDECK-Artifact.sha) + + sed -i "s#__SHA__#$sha#g" net.retrodeck.retrodeck.yml + + echo -e "Resulting manifest:\n" + cat net.retrodeck.retrodeck.yml + + git config --global user.name "${{ secrets.GITNAME }}" + git config --global user.email "${{ secrets.GITMAIL }}" + + git add * + git commit -m "Updated flathub/net.retrodeck.retrodeck from RetroDECK/$rd_branch" + + git remote -v + git push --force https://${{ secrets.TRIGGER_BUILD_TOKEN }}@github.com/flathub/net.retrodeck.retrodeck.git $relname diff --git a/.github/workflows/removed/main.yml b/.github/workflows/removed/main.yml new file mode 100644 index 00000000..0404e018 --- /dev/null +++ b/.github/workflows/removed/main.yml @@ -0,0 +1,188 @@ +name: main + +on: + # Triggers the workflow on push or pull request events but only for the main branch + # push: + # branches: + # - main + # pull_request: + # branches: + # - main + + workflow_dispatch: + + +jobs: + + Job1_-_Building_P1: + runs-on: ubuntu-latest + steps: + + - name: Get date for artifacts + id: date + run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')" + + - name: Extract branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: extract_branch + + - name: Generate build ID + id: generating_buildid + run: echo "##[set-output name=build-id;]$(echo "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}")" + + - uses: actions/checkout@v3 + + - name: Download global cache + uses: dawidd6/action-download-artifact@v2 + with: + workflow: main.yml + name: global-cache + search_artifacts: true + skip_unpack: true + continue-on-error: true + + - name: Extract global cache + run: | + tar --skip-old-files -xzvf retrodeck-main.tar.gz + rm -f retrodeck-main.tar.gz + continue-on-error: true + + - name: DEBUG + run: | + echo "Listing folder $PWD contents" + ls -lna + echo "Checking for version file" + find ~ -iname version + cat $(find ~ -iname version) + + - name: Initialize enviornment + run: | + git pull + git submodule init + git submodule update + sudo add-apt-repository ppa:alexlarsson/flatpak + sudo apt-get update + sudo apt install flatpak flatpak-builder p7zip-full + sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13 + + - name: Buld part 1 - Until melonds + run: | + sudo flatpak-builder --build-only --stop-at=melonds --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-main net.retrodeck.retrodeck.yml + + - name: Compress cache + run: | + touch retrodeck-main.tar.gz + rm -rf .flatpak-builder/build/*-{2,3,4,5,6} + find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks + tar --ignore-failed-read -czvf retrodeck-main.tar.gz retrodeck-flatpak-main .flatpak-builder/build + + - name: Upload build specific cache + uses: actions/upload-artifact@v3 + with: + name: "${{ steps.generating_buildid.outputs.build-id }}" + path: retrodeck-main.tar.gz + + # this is done to speed up the things now, it may be removed later + - name: Compress global cache + run: | + touch retrodeck-main.tar.gz + rm -rf .flatpak-builder/build/*-{2,3,4,5,6} + find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks + tar --ignore-failed-read -czvf retrodeck-main.tar.gz retrodeck-flatpak-main .flatpak-builder/build + continue-on-error: true + + - name: Upload global cache + uses: actions/upload-artifact@v3 + with: + name: global-cache + path: retrodeck-main.tar.gz RetroDECK.flatpak + continue-on-error: true + + outputs: + buildID: "${{ steps.generating_buildid.outputs.build-id }}" + + Job2_-_Build_P2_and_publish: + runs-on: ubuntu-latest + needs: [Job1_-_Building_P1] + steps: + + - uses: actions/checkout@v3 + + - name: Download build specific cache + uses: actions/download-artifact@v2 + with: + name: ${{ needs.Job1_-_Building_P1.outputs.buildID }} + + - name: Extract cache + run: | + tar --skip-old-files -xzvf retrodeck-main.tar.gz + rm -f retrodeck-main.tar.gz + + - name: DEBUG + run: | + echo "Listing folder $PWD contents" + ls -lna + echo "Checking for version file" + find ~ -iname version + cat $(find ~ -iname version) + + - name: Initialize enviornment + run: | + git pull + git submodule init + git submodule update + sudo add-apt-repository ppa:alexlarsson/flatpak + sudo apt-get update + sudo apt install flatpak flatpak-builder p7zip-full + sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13 + + - name: Create Bundle + run: | + sudo flatpak-builder --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-main net.retrodeck.retrodeck.yml + sudo flatpak build-bundle $GITHUB_WORKSPACE/local RetroDECK.flatpak net.retrodeck.retrodeck + + - name: Read version from version file + id: version + run: echo "##[set-output name=version;]$(cat $(find . -name version))" + + - name: Publish the flatpak in a new main release + uses: ncipollo/release-action@v1 + with: + #tag: "${{ steps.version.outputs.version }}" + #tag: "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}" + tag: "0.4.0b" + body: | + # Release Notes (main) + + artifacts: "RetroDECK.flatpak" + allowUpdates: true + prerelease: true + draft: true + token: ${{ secrets.TRIGGER_BUILD_TOKEN }} + repo: RetroDECK-main + continue-on-error: true + + - name: Compress global cache + run: | + touch retrodeck-main.tar.gz + rm -rf .flatpak-builder/build/*-{2,3,4,5,6} + find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks + tar --ignore-failed-read -czvf retrodeck-main.tar.gz retrodeck-flatpak-main .flatpak-builder/build + continue-on-error: true + + - name: Upload global cache + uses: actions/upload-artifact@v3 + with: + name: global-cache + path: retrodeck-main.tar.gz RetroDECK.flatpak + continue-on-error: true + + - name: Upload RetroDECK.flatpak + uses: actions/upload-artifact@v3 + with: + name: retrodeck-flatpak + path: RetroDECK.flatpak + continue-on-error: true \ No newline at end of file diff --git a/.github/workflows/removed/remove-artifacts.yml b/.github/workflows/removed/remove-artifacts.yml new file mode 100644 index 00000000..84c41e8e --- /dev/null +++ b/.github/workflows/removed/remove-artifacts.yml @@ -0,0 +1,22 @@ +name: Remove-artifacts + +on: + #schedule: + # Every day at 1am + # - cron: '0 1 * * *' + + workflow_dispatch: + +jobs: + remove-old-artifacts: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Remove old artifacts + uses: c-hive/gha-remove-artifacts@v1 + with: + age: '2 seconds' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js + # Optional inputs + # skip-tags: true + # skip-recent: 5 From a75060611a141adddbe080b81892d5bea957ad9f Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 25 Aug 2023 15:13:31 +0200 Subject: [PATCH 008/105] Updated pipelines to automatically insert the branch name --- .github/workflows/cooker-selfhosted.yml | 4 ++++ .github/workflows/main-selfhosted.yml | 4 ++++ net.retrodeck.retrodeck.yml | 5 ++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index f4e8838a..dedcbb9f 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -62,6 +62,10 @@ jobs: runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 /bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh # Run pre-build automation tasks + - name: Setting branch in the manifest + run: | + sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + - name: Build flatpak run: | git config --global protocol.file.allow always diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index c1a115a0..d68bcdda 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -53,6 +53,10 @@ jobs: runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 /bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh # Run pre-build automation tasks + - name: Setting branch in the manifest + run: | + sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + - name: Build flatpak run: | git config --global protocol.file.allow always diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 8c32c480..84e6aa85 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -66,7 +66,6 @@ modules: # The version number is hardcoded in /app/retrodeck/version # # UPDATE STEPS FOR MAIN: - # [ ] Update the VERSION variable # [ ] Update the appdata.xml with the version number and notes # [ ] change branch into main in version-initialization (first one) # [ ] change branch into main in retrodeck module (last one) @@ -91,7 +90,7 @@ modules: sources: - type: git url: https://github.com/XargonWan/RetroDECK.git - branch: cooker-0.7.1b + branch: THISBRANCH - name: xmlstarlet config-opts: @@ -1235,4 +1234,4 @@ modules: sources: - type: git url: https://github.com/XargonWan/RetroDECK.git - branch: cooker-0.7.1b + branch: THISBRANCH From 71d5e6f8093e30aacf91a84952675b7c9fb93c58 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 25 Aug 2023 15:13:48 +0200 Subject: [PATCH 009/105] Updated version notes --- net.retrodeck.retrodeck.appdata.xml | 53 +++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/net.retrodeck.retrodeck.appdata.xml b/net.retrodeck.retrodeck.appdata.xml index f1d81141..4a126254 100644 --- a/net.retrodeck.retrodeck.appdata.xml +++ b/net.retrodeck.retrodeck.appdata.xml @@ -65,15 +65,62 @@ GPL-3.0 CC0-1.0 - - https://github.com/XargonWan/RetroDECK/releases/tag/0.7.1b + + https://github.com/XargonWan/RetroDECK/releases/tag/0.7.2b

Bug fixes:

    -
  • PLACEHOLDER
  • +
  • Updated ES-DE to 2.1.1
  • +
  • Redone the patches for ES-DE
  • +
  • Updated theme
  • +
  • Changelog is now scrollable
+ + https://github.com/XargonWan/RetroDECK/releases/tag/0.7.1b + +

Information:

+
    +
  • Steam Deck users update RetroDECK from Discover in Desktop Mode.
  • +
  • Don't forget to reapply the latest controller layout: Go into the Templates tab and reapply the new profile ending with 0.7.1b (there is no need to reinstall the entire layout from the Configurator).
  • +
+

Bug fixes and other changes:

+
    +
  • Fixed an issue to make sure the RD controller layout file at update with each RD update.
  • +
  • Fixed an issue with PPSSPP that made L and R incorrectly bound.
  • +
  • Fixed an issue in the Configurator that prevented the Yuzu preset for swapping A/B X/Y from working.
  • +
  • Fixed a notification issue on the latest SteamOS Beta releases.
  • +
  • Fixed an rsync permissions issue in the RetroDECK Framework.
  • +
  • Updated Yuzu presets to handle new config syntax in the RetroDECK Framework.
  • +
  • Changed auto-update to notification only, until permissions error can be worked out.
  • +
  • Added some new pixelart icons by ItzSelenux (pixelitos-icon-theme)
  • +
+

Updates:

+

All Emulators and ES-DE have been updated

+

Steam Deck - Global Controller Layout:

+

We have done some changes based on community feedback

+
    +
  • Select is now a hotkey trigger while pressing it down, L4 and R4 are still triggers as well.
  • +
  • The RetroArch combo of Select + Start = Quit now works on many SA-Emulators.
  • +
  • Open Menu is removed from Select.
  • +
  • R5 = A button (this allows for great Wii controls on the right touchpad and pressing down the R5 for A).
  • +
  • L5 = B button.
  • +
+

Global hotkey changes:

+
    +
  • Open Menu is on Y.
  • +
  • Increase Emulation Speed is on Dpad-UP.
  • +
  • Decrease Emulation Speed is on Dpad-Down.
  • +
  • Fullscreen OFF command is removed (as emulators have migrated to toggle).
  • +
+

Known issues:

+
    +
  • The built-in auto-updater is not working (we are working on it). Discover is ok.
  • +
  • Some emulators don't have hotkey support or have bugs affecting their hotkeys.
  • +
+
+
https://github.com/XargonWan/RetroDECK/releases/tag/0.7.0b From b80b95930b25fcf1e2b42e25739b2d103fe5c01c Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 25 Aug 2023 15:16:24 +0200 Subject: [PATCH 010/105] Updated pipelines [skip ci] --- .github/workflows/cooker-selfhosted.yml | 1 + .github/workflows/main-selfhosted.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index dedcbb9f..7ff0d3c2 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -65,6 +65,7 @@ jobs: - name: Setting branch in the manifest run: | sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - name: Build flatpak run: | diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index d68bcdda..d8685cf7 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -56,6 +56,7 @@ jobs: - name: Setting branch in the manifest run: | sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - name: Build flatpak run: | From fdcbaa345c449f9bac9483c2bde9ada5a7f0b697 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 25 Aug 2023 15:30:40 +0200 Subject: [PATCH 011/105] Improved pipelines adding a version check on main [skip ci] --- .github/workflows/cooker-selfhosted.yml | 2 +- .github/workflows/main-selfhosted.yml | 15 ++++++++++++--- net.retrodeck.retrodeck.yml | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 7ff0d3c2..debbfb76 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -64,7 +64,7 @@ jobs: - name: Setting branch in the manifest run: | - sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - name: Build flatpak diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index d8685cf7..47381d0d 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -53,10 +53,19 @@ jobs: runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 /bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh # Run pre-build automation tasks - - name: Setting branch in the manifest + - name: Read manifest content + id: read_manifest + run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)" + + - name: Check VERSION + id: check_version_string run: | - sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml - echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" + if [[ "${{ steps.read_file.outputs.file_content }}" == *"VERSION=THISBRANCH"* ]]; then + echo "Version string is present, proceeding." + else + echo "Error: You forgot to specify the version." + exit 1 + fi - name: Build flatpak run: | diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 84e6aa85..aa6a1f33 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -76,7 +76,7 @@ modules: build-commands: - | - VERSION=$(git rev-parse --abbrev-ref HEAD) + VERSION=THISBRANCH git checkout ${GITHUB_REF_NAME} mkdir -p ${FLATPAK_DEST}/retrodeck/ From 3e284af91bc3981fec82c56f716e0f47b075e364 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 25 Aug 2023 15:36:36 +0200 Subject: [PATCH 012/105] Comments [skip ci] --- net.retrodeck.retrodeck.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index aa6a1f33..740f655b 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -66,6 +66,7 @@ modules: # The version number is hardcoded in /app/retrodeck/version # # UPDATE STEPS FOR MAIN: + # [ ] Update the VERSION variable # [ ] Update the appdata.xml with the version number and notes # [ ] change branch into main in version-initialization (first one) # [ ] change branch into main in retrodeck module (last one) From 1293940f781368b78564972ec68695d1afc0b31f Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 25 Aug 2023 15:45:57 +0200 Subject: [PATCH 013/105] Main pipeline now updates the branches in the module [skip ci] --- .github/workflows/main-selfhosted.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 47381d0d..7cd7e44f 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -53,6 +53,11 @@ jobs: runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 /bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh # Run pre-build automation tasks + - name: Setting branch in the manifest + run: | + sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" + - name: Read manifest content id: read_manifest run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)" From 2437d5c48968aa42354475d1aae4044da0cbd50a Mon Sep 17 00:00:00 2001 From: icenine451 Date: Fri, 25 Aug 2023 09:59:31 -0400 Subject: [PATCH 014/105] Cooker version automation --- .github/workflows/cooker-selfhosted.yml | 7 +------ .github/workflows/main-selfhosted.yml | 5 ----- automation_tools/automation_task_list.cfg | 1 + automation_tools/pre_build_automation.sh | 10 +++++++++- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index debbfb76..f10f4b27 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -62,11 +62,6 @@ jobs: runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 /bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh # Run pre-build automation tasks - - name: Setting branch in the manifest - run: | - sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml - echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - - name: Build flatpak run: | git config --global protocol.file.allow always @@ -117,4 +112,4 @@ jobs: with: name: retrodeck-flatpak path: RetroDECK.flatpak - continue-on-error: true \ No newline at end of file + continue-on-error: true diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 7cd7e44f..47381d0d 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -53,11 +53,6 @@ jobs: runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 /bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh # Run pre-build automation tasks - - name: Setting branch in the manifest - run: | - sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml - echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - - name: Read manifest content id: read_manifest run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)" diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg index f1624f43..98321389 100644 --- a/automation_tools/automation_task_list.cfg +++ b/automation_tools/automation_task_list.cfg @@ -1,5 +1,6 @@ # The proper format for this file is # ACTION^PLACEHOLDERTEXT^URL^REPO(Optional) +branch^THISBRANCH # hash^DOOMSHAPLACEHOLDER^https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip hash^VITASHAPLACEHOLDER^https://github.com/Vita3K/Vita3K/releases/download/continuous/ubuntu-latest.zip hash^DUCKSTATIONSHAPLACEHOLDER^https://github.com/stenzek/duckstation/releases/download/preview/DuckStation-x64.AppImage diff --git a/automation_tools/pre_build_automation.sh b/automation_tools/pre_build_automation.sh index 637c3f95..f4d56c62 100644 --- a/automation_tools/pre_build_automation.sh +++ b/automation_tools/pre_build_automation.sh @@ -15,6 +15,7 @@ rd_manifest=${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml automation_task_list=${GITHUB_WORKSPACE}/automation_tools/automation_task_list.cfg +current_branch=$(git rev-parse --abbrev-ref HEAD) echo "Manifest location: $rd_manifest" echo "Automation task list location: $automation_task_list" @@ -23,10 +24,17 @@ echo "Task list contents:" cat "$automation_task_list" echo +# Update all collected information while IFS="^" read -r action placeholder url branch do if [[ ! $action == "#"* ]] && [[ ! -z "$action" ]]; then - if [[ "$action" == "hash" ]]; then + if [[ "$action" == "branch" ]]; then + echo + echo "Placeholder text: $placeholder" + echo "Current branch:" "$current_branch" + echo + /bin/sed -i 's^'"$placeholder"'^'"$current_branch"'^g' $rd_manifest + elif [[ "$action" == "hash" ]]; then echo echo "Placeholder text: $placeholder" echo "URL to hash: $url" From da870ffdc76caba8ae0e17a1f7ee6581df4589c7 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 28 Aug 2023 14:58:02 +0200 Subject: [PATCH 015/105] Typo fixed [skip ci] --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 934dbffd..8de84fea 100644 --- a/.gitignore +++ b/.gitignore @@ -13,5 +13,5 @@ Thumbs.db .flatpak-builder/ retrodeck-flatpak-cooker/ retrodeck-flatpak/ -bakcup +backup .old From c3de529b39b37f1f979139fec9903f968c0ac3ba Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 28 Aug 2023 14:58:33 +0200 Subject: [PATCH 016/105] Branches nedds to be changed anymore [skip ci] --- net.retrodeck.retrodeck.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 740f655b..8c201fb1 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -68,8 +68,6 @@ modules: # UPDATE STEPS FOR MAIN: # [ ] Update the VERSION variable # [ ] Update the appdata.xml with the version number and notes - # [ ] change branch into main in version-initialization (first one) - # [ ] change branch into main in retrodeck module (last one) # [ ] if header (before modules) was edited, edit it even in flathub.yml # - name: version-initialization From 2a39b8587a086d6dc48d0d0185e203be1caa9a18 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 28 Aug 2023 15:25:01 +0200 Subject: [PATCH 017/105] ES-DE: adding "emulators" system (it's a test) + general es_systems update --- .gitignore | 2 +- es-configs/es_systems.xml | 103 ++++++++++++++++++++++++++++++++------ 2 files changed, 90 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 8de84fea..e98c039e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,4 @@ Thumbs.db retrodeck-flatpak-cooker/ retrodeck-flatpak/ backup -.old +.old \ No newline at end of file diff --git a/es-configs/es_systems.xml b/es-configs/es_systems.xml index 4cd68548..736fafee 100644 --- a/es-configs/es_systems.xml +++ b/es-configs/es_systems.xml @@ -506,6 +506,18 @@ easyrpg easyrpg + + emulators + Emulators + %ROMPATH%/emulators + .AppImage .desktop .sh + %ENABLESHORTCUTS% %EMULATOR_OS-SHELL% %ROM% + %RUNINBACKGROUND% %ENABLESHORTCUTS% %EMULATOR_OS-SHELL% %ROM% + %EMULATOR_OS-SHELL% -c "%ROM%" + %RUNINBACKGROUND% %EMULATOR_OS-SHELL% -c "%ROM%" + pcwindows + emulators + famicom Nintendo Family Computer @@ -582,6 +594,17 @@ fmtowns fmtowns +--> + gameandwatch @@ -614,6 +637,7 @@ %EMULATOR_RETROARCH% -L %CORE_RETROARCH%/genesis_plus_gx_wide_libretro.so %ROM% %EMULATOR_RETROARCH% -L %CORE_RETROARCH%/gearsystem_libretro.so %ROM% %EMULATOR_RETROARCH% -L %CORE_RETROARCH%/smsplus_libretro.so %ROM% + gamegear gamegear @@ -699,6 +723,17 @@ genesis genesis + gx4000 Amstrad GX4000 @@ -750,6 +785,17 @@ lcdgames, gameandwatch lcdgames + lutro Lutro Game Engine @@ -1242,8 +1288,9 @@ ports Ports %ROMPATH%/ports - .desktop .sh - %ENABLESHORTCUTS% %EMULATOR_OS-SHELL% %ROM% + .AppImage .desktop .sh + %ENABLESHORTCUTS% %EMULATOR_OS-SHELL% %ROM% + %EMULATOR_OS-SHELL% -c "%ROM%" pc, pcwindows ports @@ -1269,7 +1316,8 @@ ps3 ps3 - + + --> psp Sony PlayStation Portable @@ -1402,6 +1451,17 @@ scummvm scummvm + sega32x Sega Mega Drive 32X @@ -1733,6 +1793,17 @@ virtualboy virtualboy + x68000 x68000 @@ -1853,6 +1925,18 @@ zx81 zx81 + zxspectrum Sinclair ZX Spectrum @@ -1863,13 +1947,4 @@ zxspectrum zxspectrum - - + \ No newline at end of file From f3440cab25fb04cbf394ac28f678e515792fb535 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 28 Aug 2023 15:36:21 +0200 Subject: [PATCH 018/105] ES-DE: Updated es_find_rules.xml --- es-configs/es_find_rules.xml | 106 ++++++++++++++++++++++++++--------- 1 file changed, 80 insertions(+), 26 deletions(-) diff --git a/es-configs/es_find_rules.xml b/es-configs/es_find_rules.xml index 13dd5dc2..8990e20b 100644 --- a/es-configs/es_find_rules.xml +++ b/es-configs/es_find_rules.xml @@ -15,16 +15,17 @@ RetroArch-Linux-x86_64.AppImage - /var/lib/flatpak/exports/bin/org.libretro.RetroArch - ~/.local/share/flatpak/exports/bin/org.libretro.RetroArch ~/Applications/RetroArch-Linux*.AppImage + ~/.local/share/applications/RetroArch-Linux*.AppImage ~/.local/bin/RetroArch-Linux*.AppImage ~/bin/RetroArch-Linux*.AppImage + /var/lib/flatpak/exports/bin/org.libretro.RetroArch + ~/.local/share/flatpak/exports/bin/org.libretro.RetroArch - + /app/share/libretro/cores ~/snap/retroarch/current/.config/retroarch/cores @@ -69,11 +70,12 @@ net.cebix.basilisk - /var/lib/flatpak/exports/bin/net.cebix.basilisk - ~/.local/share/flatpak/exports/bin/net.cebix.basilisk ~/Applications/BasiliskII*.AppImage + ~/.local/share/applications/BasiliskII*.AppImage ~/.local/bin/BasiliskII*.AppImage ~/bin/BasiliskII*.AppImage + /var/lib/flatpak/exports/bin/net.cebix.basilisk + ~/.local/share/flatpak/exports/bin/net.cebix.basilisk @@ -106,9 +108,11 @@ ~/Applications/Cemu*.AppImage + ~/.local/share/applications/Cemu*.AppImage ~/.local/bin/Cemu*.AppImage ~/bin/Cemu*.AppImage ~/Applications/Cemu/Cemu + ~/.local/share/applications/Cemu/Cemu ~/.local/bin/Cemu/Cemu ~/bin/Cemu/Cemu @@ -122,6 +126,10 @@ org.citra_emu.citra + ~/Applications/citra*.AppImage + ~/.local/share/applications/citra*.AppImage + ~/.local/bin/citra*.AppImage + ~/bin/citra*.AppImage /var/lib/flatpak/exports/bin/org.citra_emu.citra ~/.local/share/flatpak/exports/bin/org.citra_emu.citra @@ -133,6 +141,7 @@ ~/Applications/cpcemu/cpcemu + ~/.local/share/applications/cpcemu/cpcemu ~/.local/bin/cpcemu/cpcemu ~/bin/cpcemu/cpcemu @@ -141,6 +150,7 @@ ~/Applications/CSpect/CSpect.exe + ~/.local/share/applications/CSpect/CSpect.exe ~/.local/bin/CSpect/CSpect.exe ~/bin/CSpect/CSpect.exe @@ -163,11 +173,12 @@ org.DolphinEmu.dolphin-emu - /var/lib/flatpak/exports/bin/org.DolphinEmu.dolphin-emu - ~/.local/share/flatpak/exports/bin/org.DolphinEmu.dolphin-emu ~/Applications/Dolphin_Emulator*.AppImage + ~/.local/share/applications/Dolphin_Emulator*.AppImage ~/.local/bin/Dolphin_Emulator*.AppImage ~/bin/Dolphin_Emulator*.AppImage + /var/lib/flatpak/exports/bin/org.DolphinEmu.dolphin-emu + ~/.local/share/flatpak/exports/bin/org.DolphinEmu.dolphin-emu @@ -200,14 +211,16 @@ org.duckstation.DuckStation - /var/lib/flatpak/exports/bin/org.duckstation.DuckStation - ~/.local/share/flatpak/exports/bin/org.duckstation.DuckStation ~/Applications/duckstation-nogui*.AppImage + ~/.local/share/applications/duckstation-nogui*.AppImage ~/.local/bin/duckstation-nogui*.AppImage ~/bin/duckstation-nogui*.AppImage ~/Applications/duckstation-qt*.AppImage + ~/.local/share/applications/duckstation-qt*.AppImage ~/.local/bin/duckstation-qt*.AppImage ~/bin/duckstation-qt*.AppImage + /var/lib/flatpak/exports/bin/org.duckstation.DuckStation + ~/.local/share/flatpak/exports/bin/org.duckstation.DuckStation @@ -217,6 +230,7 @@ ~/Applications/easyrpg/easyrpg-player + ~/.local/share/applications/easyrpg/easyrpg-player ~/.local/bin/easyrpg/easyrpg-player ~/bin/easyrpg/easyrpg-player @@ -228,6 +242,7 @@ ~/Applications/fbneo/fbneo + ~/.local/share/applications/fbneo/fbneo ~/.local/bin/fbneo/fbneo ~/bin/fbneo/fbneo @@ -239,11 +254,12 @@ org.flycast.Flycast - /var/lib/flatpak/exports/bin/org.flycast.Flycast - ~/.local/share/flatpak/exports/bin/org.flycast.Flycast ~/Applications/flycast*.AppImage + ~/.local/share/applications/flycast*.AppImage ~/.local/bin/flycast*.AppImage ~/bin/flycast*.AppImage + /var/lib/flatpak/exports/bin/org.flycast.Flycast + ~/.local/share/flatpak/exports/bin/org.flycast.Flycast @@ -275,11 +291,12 @@ gargoyle - /var/lib/flatpak/exports/bin/io.github.garglk.Gargoyle - ~/.local/share/flatpak/exports/bin/io.github.garglk.Gargoyle ~/Applications/Gargoyle*.AppImage + ~/.local/share/applications/Gargoyle*.AppImage ~/.local/bin/Gargoyle*.AppImage ~/bin/Gargoyle*.AppImage + /var/lib/flatpak/exports/bin/io.github.garglk.Gargoyle + ~/.local/share/flatpak/exports/bin/io.github.garglk.Gargoyle @@ -289,6 +306,7 @@ ~/Applications/gearboy/gearboy + ~/.local/share/applications/gearboy/gearboy ~/.local/bin/gearboy/gearboy ~/bin/gearboy/gearboy @@ -297,6 +315,7 @@ ~/Applications/gopher2600/gopher2600_linux_amd64 + ~/.local/share/applications/gopher2600/gopher2600_linux_amd64 ~/.local/bin/gopher2600/gopher2600_linux_amd64 ~/bin/gopher2600/gopher2600_linux_amd64 @@ -318,6 +337,7 @@ ~/Applications/hypseus-singe/hypseus.bin + ~/.local/share/applications/hypseus-singe/hypseus.bin ~/.local/bin/hypseus-singe/hypseus.bin ~/bin/hypseus-singe/hypseus.bin @@ -329,6 +349,7 @@ ~/Applications/lightspark/lightspark + ~/.local/share/applications/lightspark/lightspark ~/.local/bin/lightspark/lightspark ~/bin/lightspark/lightspark @@ -340,6 +361,7 @@ ~/Applications/linapple/linapple + ~/.local/share/applications/linapple/linapple ~/.local/bin/linapple/linapple ~/bin/linapple/linapple @@ -385,11 +407,12 @@ io.mgba.mGBA - /var/lib/flatpak/exports/bin/io.mgba.mGBA - ~/.local/share/flatpak/exports/bin/io.mgba.mGBA ~/Applications/mGBA*.AppImage + ~/.local/share/applications/mGBA*.AppImage ~/.local/bin/mGBA*.AppImage ~/bin/mGBA*.AppImage + /var/lib/flatpak/exports/bin/io.mgba.mGBA + ~/.local/share/flatpak/exports/bin/io.mgba.mGBA @@ -430,6 +453,7 @@ ~/Applications/oricutron/Oricutron + ~/.local/share/applications/oricutron/Oricutron ~/.local/bin/oricutron/Oricutron ~/bin/oricutron/Oricutron @@ -463,8 +487,8 @@ pico8 - ~/retrodeck/bios/pico-8/pico8 ~/Applications/pico-8/pico8 + ~/.local/share/applications/pico-8/pico8 ~/.local/bin/pico-8/pico8 ~/bin/pico-8/pico8 @@ -472,11 +496,12 @@ - /var/lib/flatpak/exports/bin/org.purei.Play - ~/.local/share/flatpak/exports/bin/org.purei.Play ~/Applications/Play!*.AppImage + ~/.local/share/applications/Play!*.AppImage ~/.local/bin/Play!*.AppImage ~/bin/Play!*.AppImage + /var/lib/flatpak/exports/bin/org.purei.Play + ~/.local/share/flatpak/exports/bin/org.purei.Play @@ -516,6 +541,7 @@ ~/Applications/punes/punes + ~/.local/share/applications/punes/punes ~/.local/bin/punes/punes ~/bin/punes/punes @@ -527,6 +553,7 @@ ~/Applications/redream/redream + ~/.local/share/applications/redream/redream ~/.local/bin/redream/redream ~/bin/redream/redream @@ -538,11 +565,12 @@ com.github.Rosalie241.RMG - /var/lib/flatpak/exports/bin/com.github.Rosalie241.RMG - ~/.local/share/flatpak/exports/bin/com.github.Rosalie241.RMG ~/Applications/RMG*.AppImage + ~/.local/share/applications/RMG*.AppImage ~/.local/bin/RMG*.AppImage ~/bin/RMG*.AppImage + /var/lib/flatpak/exports/bin/com.github.Rosalie241.RMG + ~/.local/share/flatpak/exports/bin/com.github.Rosalie241.RMG @@ -553,11 +581,12 @@ net.rpcs3.RPCS3 - /var/lib/flatpak/exports/bin/net.rpcs3.RPCS3 - ~/.local/share/flatpak/exports/bin/net.rpcs3.RPCS3 ~/Applications/rpcs3*.AppImage + ~/.local/share/applications/rpcs3*.AppImage ~/.local/bin/rpcs3*.AppImage ~/bin/rpcs3*.AppImage + /var/lib/flatpak/exports/bin/net.rpcs3.RPCS3 + ~/.local/share/flatpak/exports/bin/net.rpcs3.RPCS3 @@ -567,6 +596,7 @@ ~/Applications/ruffle/ruffle + ~/.local/share/applications/ruffle/ruffle ~/.local/bin/ruffle/ruffle ~/bin/ruffle/ruffle @@ -582,9 +612,11 @@ /var/lib/flatpak/exports/bin/org.ryujinx.Ryujinx ~/.local/share/flatpak/exports/bin/org.ryujinx.Ryujinx ~/Applications/publish/Ryujinx + ~/.local/share/applications/publish/Ryujinx ~/.local/bin/publish/Ryujinx ~/bin/publish/Ryujinx ~/Applications/publish/Ryujinx.Ava + ~/.local/share/applications/publish/Ryujinx.Ava ~/.local/bin/publish/Ryujinx.Ava ~/bin/publish/Ryujinx.Ava @@ -618,6 +650,7 @@ ~/Applications/sdl2trs/sdl2trs + ~/.local/share/applications/sdl2trs/sdl2trs ~/.local/bin/sdl2trs/sdl2trs ~/bin/sdl2trs/sdl2trs @@ -629,6 +662,7 @@ ~/Applications/SheepShaver*.AppImage + ~/.local/share/applications/SheepShaver*.AppImage ~/.local/bin/SheepShaver*.AppImage ~/bin/SheepShaver*.AppImage @@ -640,6 +674,7 @@ ~/Applications/simcoupe/simcoupe + ~/.local/share/applications/simcoupe/simcoupe ~/.local/bin/simcoupe/simcoupe ~/bin/simcoupe/simcoupe @@ -701,6 +736,7 @@ ~/Applications/Supermodel/supermodel + ~/.local/share/applications/Supermodel/supermodel ~/.local/bin/Supermodel/supermodel ~/bin/Supermodel/supermodel @@ -712,6 +748,7 @@ ~/Applications/dolphin-emu-triforce*.AppImage + ~/.local/share/applications/dolphin-emu-triforce*.AppImage ~/.local/bin/dolphin-emu-triforce*.AppImage ~/bin/dolphin-emu-triforce*.AppImage @@ -720,6 +757,7 @@ ~/Applications/tsugaru/Tsugaru_CUI + ~/.local/share/applications/tsugaru/Tsugaru_CUI ~/.local/bin/tsugaru/Tsugaru_CUI ~/bin/tsugaru/Tsugaru_CUI @@ -761,6 +799,7 @@ ~/Applications/Vita3K/Vita3K + ~/.local/share/applications/Vita3K/Vita3K ~/.local/bin/Vita3K/Vita3K ~/bin/Vita3K/Vita3K @@ -772,11 +811,12 @@ app.xemu.xemu - /var/lib/flatpak/exports/bin/app.xemu.xemu - ~/.local/share/flatpak/exports/bin/app.xemu.xemu ~/Applications/xemu*.AppImage + ~/.local/share/applications/xemu*.AppImage ~/.local/bin/xemu*.AppImage ~/bin/xemu*.AppImage + /var/lib/flatpak/exports/bin/app.xemu.xemu + ~/.local/share/flatpak/exports/bin/app.xemu.xemu @@ -786,6 +826,7 @@ ~/Applications/xroar/xroar + ~/.local/share/applications/xroar/xroar ~/.local/bin/xroar/xroar ~/bin/xroar/xroar @@ -797,11 +838,24 @@ org.yuzu_emu.yuzu - /var/lib/flatpak/exports/bin/org.yuzu_emu.yuzu - ~/.local/share/flatpak/exports/bin/org.yuzu_emu.yuzu ~/Applications/yuzu*.AppImage + ~/.local/share/applications/yuzu*.AppImage ~/.local/bin/yuzu*.AppImage ~/bin/yuzu*.AppImage + /var/lib/flatpak/exports/bin/org.yuzu_emu.yuzu + ~/.local/share/flatpak/exports/bin/org.yuzu_emu.yuzu + + + + + + zesarux + + + ~/Applications/ZEsarUX/zesarux + ~/.local/share/applications/ZEsarUX/zesarux + ~/.local/bin/ZEsarUX/zesarux + ~/bin/ZEsarUX/zesarux \ No newline at end of file From 7a62a5bae20b9240c16a81063c153967d5906520 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 29 Aug 2023 12:06:23 +0200 Subject: [PATCH 019/105] ES-DE: updated configs --- es-configs/es_settings.xml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/es-configs/es_settings.xml b/es-configs/es_settings.xml index 9364318d..93de24b3 100644 --- a/es-configs/es_settings.xml +++ b/es-configs/es_settings.xml @@ -25,6 +25,7 @@ + @@ -51,6 +52,7 @@ + @@ -73,6 +75,7 @@ + @@ -80,6 +83,7 @@ + @@ -106,9 +110,8 @@ - - + @@ -117,14 +120,20 @@ + + + + + + - + @@ -135,11 +144,11 @@ - - + + - + \ No newline at end of file From 0267e6fd63353590676c9dfebaaecf1b06ca62cb Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 29 Aug 2023 14:16:35 +0200 Subject: [PATCH 020/105] ES-DE: fixed loading bar and texts colors [skip ci] --- rd-submodules/es-de/Window.cpp.patch | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/rd-submodules/es-de/Window.cpp.patch b/rd-submodules/es-de/Window.cpp.patch index 6c9301ea..c099d83b 100644 --- a/rd-submodules/es-de/Window.cpp.patch +++ b/rd-submodules/es-de/Window.cpp.patch @@ -1,22 +1,9 @@ diff -au1r emulationstation-de/es-core/src/Window.cpp emulationstation-de/es-core/src/Window.cpp ---- emulationstation-de/es-core/src/Window.cpp 2023-08-23 13:12:15.625292630 +0200 -+++ emulationstation-de/es-core/src/Window.cpp 2023-08-23 14:04:13.393435463 +0200 -@@ -140,7 +140,7 @@ - mSplashTextScanning = std::unique_ptr( -- mDefaultFonts.at(1)->buildTextCache("Searching for games...", 0.0f, 0.0f, 0x777777FF)); -+ mDefaultFonts.at(1)->buildTextCache("Searching for games...", 0.0f, 0.0f, 0xC858E6FF)); - mSplashTextPopulating = std::unique_ptr( -- mDefaultFonts.at(1)->buildTextCache("Loading systems...", 0.0f, 0.0f, 0x777777FF)); -+ mDefaultFonts.at(1)->buildTextCache("Loading systems...", 0.0f, 0.0f, 0xC858E6FF)); - mSplashTextReloading = std::unique_ptr( -- mDefaultFonts.at(1)->buildTextCache("Reloading...", 0.0f, 0.0f, 0x777777FF)); -+ mDefaultFonts.at(1)->buildTextCache("Reloading...", 0.0f, 0.0f, 0xC858E6FF)); - -@@ -165,3 +165,3 @@ - progressBarRect.barPosY = mSplashTextPositions.y + (progressBarRect.barHeight * 2.0f); -- progressBarRect.color = 0x777777FF; +--- emulationstation-de/es-core/src/Window.cpp 2023-08-29 14:14:17.208301836 +0200 ++++ emulationstation-de/es-core/src/Window.cpp 2023-08-29 14:12:37.307334069 +0200 + +@@ -181,3 +181,3 @@ + progressBarRect.barPosY += borderThickness; +- progressBarRect.color = 0x79010FFF; + progressBarRect.color = 0xC858E6FF; mProgressBarRectangles.emplace_back(progressBarRect); -@@ -978 +978,2 @@ - } -+ From 3f3f852700f4f699ad037eb0e22865745bed0213 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 10:57:38 +0200 Subject: [PATCH 021/105] Optimizing cooker pipeline --- .github/workflows/cooker-selfhosted.yml | 36 +++++++++---------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index debbfb76..75e90a08 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -30,7 +30,10 @@ jobs: run: sudo umount -f /home/ubuntu/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/* continue-on-error: true - - uses: actions/checkout@v3 + - name: Clone RetroDECK repo + uses: actions/checkout@v3 + with: + submodules: 'true' - name: Generate build ID run: | @@ -40,29 +43,18 @@ jobs: capitalized_word2="$(tr '[:lower:]' '[:upper:]' <<< ${word2:0:1})${word2:1}" result=$capitalized_word1$capitalized_word2 echo $result > ${GITHUB_WORKSPACE}/buildid - ls -lah ${GITHUB_WORKSPACE} # DEBUG - cat ${GITHUB_WORKSPACE}/buildid # DEBUG echo "buildid=$result" >> $GITHUB_ENV echo "VersionID is $result" - - name: Initialize environment + - name: Initialize Flatpak environment run: | - git pull - git submodule init - git submodule update sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - flatpak install --user -y --noninteractive \ - org.kde.Sdk//6.3 \ - org.kde.Platform//6.3 \ - org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 \ - io.qt.qtwebengine.BaseApp/x86_64/6.3 \ - org.freedesktop.Sdk.Extension.llvm13 \ - org.freedesktop.Sdk.Extension.dotnet6/x86_64/22.08 \ - runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 - /bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh # Run pre-build automation tasks - - name: Setting branch in the manifest + - name: Run pre-build automation tasks + run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" + + - name: Set branch in the manifest run: | sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" @@ -84,7 +76,7 @@ jobs: - name: Create Bundle run: | - flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK.flatpak net.retrodeck.retrodeck + flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK-cooker.flatpak net.retrodeck.retrodeck - name: Set environment variable with current branch name run: echo "GITHUB_REF_SLUG=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV @@ -102,19 +94,17 @@ jobs: Cooker channel is provided for the community to test fixes and explore new functionality. Please DO NOT open issues or ask support on this build. - artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz" + artifacts: "RetroDECK-cooker.flatpak,RetroDECK-Artifact.tar.gz" allowUpdates: true - #prerelease: true makeLatest: true - #draft: true token: ${{ secrets.TRIGGER_BUILD_TOKEN }} repo: RetroDECK-cooker continue-on-error: true # In case it cannot publish the release at least it's providing the flatpak file for creating a manual release - - name: Upload RetroDECK.flatpak + - name: Upload RetroDECK-cooker.flatpak uses: actions/upload-artifact@v3 with: name: retrodeck-flatpak - path: RetroDECK.flatpak + path: RetroDECK-cooker.flatpak continue-on-error: true \ No newline at end of file From 0172d6d21807819bd42cf39c4caeadb2a0942490 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 11:01:44 +0200 Subject: [PATCH 022/105] Adding commits list in the release notes --- .github/workflows/cooker-selfhosted.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 75e90a08..f41003fa 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -81,6 +81,16 @@ jobs: - name: Set environment variable with current branch name run: echo "GITHUB_REF_SLUG=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV + - name: Get commits since last release + run: | + # Get the latest release tag + LATEST_TAG=$(git describe --tags --abbrev=0) + # Get all commits since the latest release tag + COMMITS=$(git log $LATEST_TAG..HEAD --pretty=format:"- %s") + # Set the output variable + echo "::set-output name=commits::$COMMITS" + id: commits + - name: Publish the flatpak in a new cooker release uses: ncipollo/release-action@v1 with: @@ -89,6 +99,9 @@ jobs: # Release Notes (Cooker) This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}. + ## Commits since last release + ${{ steps.commits.outputs.commits }} + For the full release note for this build please refer to the channel [#BETA-TESTING](https://discord.gg/qQcrFvaA2C) on our Discord server. Cooker channel is provided for the community to test fixes and explore new functionality. From 8b1f6a2e5d97b8e758dca1de7992c8f40977cb72 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 11:26:02 +0200 Subject: [PATCH 023/105] Pipeline: split flatpak build and download, added a second try --- .github/workflows/cooker-selfhosted.yml | 37 ++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index f41003fa..c83172e4 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -59,12 +59,47 @@ jobs: sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" + - name: "Build flatpak: download only" + id: "flatpak-download" + run: | + git config --global protocol.file.allow always + mkdir -vp ${GITHUB_WORKSPACE}/local + mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --download-only \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml + + # Sometimes flatpak download fails, in this case it tries a second time + - name: "Build flatpak: download only (retry)" + if: steps.flatpak-download.outcome == 'failure' + run: | + git config --global protocol.file.allow always + mkdir -vp ${GITHUB_WORKSPACE}/local + mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --download-only \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml + - name: Build flatpak run: | git config --global protocol.file.allow always mkdir -vp ${GITHUB_WORKSPACE}/local mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker - flatpak-builder --user --force-clean --install-deps-from=flathub --install-deps-from=flathub-beta --repo=${GITHUB_WORKSPACE}/local ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --disable-download \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml - name: Create Artifact for flathub run: | From 669a0b1159a3d9432ca403b482b690c4cf5bf9be Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 11:56:42 +0200 Subject: [PATCH 024/105] Cooke pipeline: change step name [skip ci] --- .github/workflows/cooker-selfhosted.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index c83172e4..bdb3782e 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -35,7 +35,7 @@ jobs: with: submodules: 'true' - - name: Generate build ID + - name: Generate cooker build ID run: | word1=$(shuf -n 1 ${GITHUB_WORKSPACE}/automation_tools/codename_wordlist.txt) capitalized_word1="$(tr '[:lower:]' '[:upper:]' <<< ${word1:0:1})${word1:1}" From 0ab1eaa24ef54586b80f93f6dc3330b4d24c94e1 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 11:59:30 +0200 Subject: [PATCH 025/105] Update main pipeline to reflect the changes in the cooker one [skip ci] --- .github/workflows/main-selfhosted.yml | 68 ++++++++++++++++++--------- 1 file changed, 46 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 7cd7e44f..34e5392a 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -30,30 +30,20 @@ jobs: run: sudo umount -f /home/ubuntu/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/* continue-on-error: true - - name: Generate build ID - id: generating_buildid - run: echo "##[set-output name=build-id;]$(echo "$( git rev-parse --short HEAD )")" - - - uses: actions/checkout@v3 + - name: Clone RetroDECK repo + uses: actions/checkout@v3 + with: + submodules: 'true' - - name: Initialize enviornment + - name: Initialize Flatpak environment run: | - git pull - git submodule init - git submodule update sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - flatpak install --user -y --noninteractive \ - org.kde.Sdk//6.3 \ - org.kde.Platform//6.3 \ - org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 \ - io.qt.qtwebengine.BaseApp/x86_64/6.3 \ - org.freedesktop.Sdk.Extension.llvm13 \ - org.freedesktop.Sdk.Extension.dotnet6/x86_64/22.08 \ - runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22.08 - /bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh # Run pre-build automation tasks - - name: Setting branch in the manifest + - name: Run pre-build automation tasks + run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" + + - name: Set branch in the manifest run: | sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" @@ -72,12 +62,47 @@ jobs: exit 1 fi + - name: "Build flatpak: download only" + id: "flatpak-download" + run: | + git config --global protocol.file.allow always + mkdir -vp ${GITHUB_WORKSPACE}/local + mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --download-only \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml + + # Sometimes flatpak download fails, in this case it tries a second time + - name: "Build flatpak: download only (retry)" + if: steps.flatpak-download.outcome == 'failure' + run: | + git config --global protocol.file.allow always + mkdir -vp ${GITHUB_WORKSPACE}/local + mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --download-only \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml + - name: Build flatpak run: | git config --global protocol.file.allow always mkdir -vp ${GITHUB_WORKSPACE}/local mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker - flatpak-builder --user --force-clean --install-deps-from=flathub --install-deps-from=flathub-beta --repo=${GITHUB_WORKSPACE}/local ${GITHUB_WORKSPACE}/retrodeck-flatpak-main net.retrodeck.retrodeck.yml + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --disable-download \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml - name: Create Artifact for flathub run: | @@ -111,7 +136,6 @@ jobs: bodyFile: "body.md" artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz" allowUpdates: true - #prerelease: true makeLatest: true token: ${{ secrets.TRIGGER_BUILD_TOKEN }} repo: RetroDECK @@ -123,4 +147,4 @@ jobs: with: name: retrodeck-flatpak path: RetroDECK.flatpak - continue-on-error: true + continue-on-error: true \ No newline at end of file From 74de88d16af478db476317dafa0ea7839ffeb58a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 14:12:52 +0200 Subject: [PATCH 026/105] cooker pipeline: Issue while generating commits list, continuing on error. --- .github/workflows/cooker-selfhosted.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index bdb3782e..61a1cdd9 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -125,6 +125,7 @@ jobs: # Set the output variable echo "::set-output name=commits::$COMMITS" id: commits + continue-on-error: true - name: Publish the flatpak in a new cooker release uses: ncipollo/release-action@v1 From 570e282526e373a914851d4c05beae9075901299 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 15:09:11 +0200 Subject: [PATCH 027/105] Automated generation of flathub needed files and manifest --- .github/workflows/flathub_push_main.yml | 27 +++++++++++++--- flathub.json | 3 -- flathub.yml | 41 ------------------------- 3 files changed, 23 insertions(+), 48 deletions(-) delete mode 100644 flathub.json delete mode 100644 flathub.yml diff --git a/.github/workflows/flathub_push_main.yml b/.github/workflows/flathub_push_main.yml index 1b4bad8f..ef02c9f4 100644 --- a/.github/workflows/flathub_push_main.yml +++ b/.github/workflows/flathub_push_main.yml @@ -9,6 +9,7 @@ jobs: Pushing_main_into_flathub: runs-on: ubuntu-latest steps: + - name: Pushing shell: bash run: | @@ -47,17 +48,35 @@ jobs: # Copying only a few files as the others are cloned by git in retrodeck.sh cd $gits_folder/RetroDECK cp -rf \ - 'flathub.json' \ 'LICENSE' \ - 'flathub.yml' \ 'README.md' \ $gits_folder/flathub/ cd $gits_folder/flathub ls -lah - # manipulating manifest - mv flathub.yml net.retrodeck.retrodeck.yml + # Creating the manifest for flathub + manifest='net.retrodeck.retrodeck.yml' + sed -n '/cleanup/q;p' $gits_folder/RetroDECK/net.retrodeck.retrodeck.yml > $manifest + sed -i '/^[[:space:]]*#/d' $manifest + sed -i 's/[[:space:]]*#.*$//' $manifest + cat << EOF >> $manifest + modules: + - name: retrodeck + buildsystem: simple + build-commands: + - cp -rn files/* /app + sources: + - type: archive + url: https://artifacts.retrodeck.net/artifacts/RetroDECK-Artifact.tar.gz + sha256: __SHA__ + EOF + + cat << EOF >> flathub.json + { + "only-arches": ["x86_64"] + } + EOF # Getting latest release name # version=$(\ diff --git a/flathub.json b/flathub.json deleted file mode 100644 index 0b69b95e..00000000 --- a/flathub.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "only-arches": ["x86_64"] -} \ No newline at end of file diff --git a/flathub.yml b/flathub.yml deleted file mode 100644 index f0216f88..00000000 --- a/flathub.yml +++ /dev/null @@ -1,41 +0,0 @@ -app-id: net.retrodeck.retrodeck -runtime: org.kde.Platform -runtime-version: 5.15-22.08 -sdk: org.kde.Sdk -sdk-extensions: - - org.freedesktop.Sdk.Extension.llvm14 # Needed for rpcs3 -base: io.qt.qtwebengine.BaseApp # Needed for Yuzu -base-version: 5.15-22.08 # Needed for Yuzu -command: retrodeck.sh - -finish-args: - - --socket=fallback-x11 - - --socket=wayland - - --socket=pulseaudio - - --share=ipc - - --share=network - - --device=all - - --filesystem=home # Needed to be able to relocate / remove / create symlink at ~/retrodeck - - --filesystem=/run/media - - --filesystem=/media - - --allow=multiarch - - --talk-name=org.freedesktop.ScreenSaver - - --talk-name=org.freedesktop.PowerManagement.Inhibit - - --talk-name=org.freedesktop.login1.Manager - - --filesystem=xdg-run/app/com.discordapp.Discord:create - # Dolphin - - --allow=bluetooth - # PPSSPP - # It allows an SDL application to specify its window class, which can be useful for window managers and desktop environments to identify and group similar windows - - --env=SDL_VIDEO_X11_WMCLASS=net.retrodeck.retrodeck - - --env=SDL_VIDEO_WAYLAND_WMCLASS=net.retrodeck.retrodeck - -modules: - - name: retrodeck - buildsystem: simple - build-commands: - - cp -rn files/* /app - sources: - - type: archive - url: https://artifacts.retrodeck.net/artifacts/RetroDECK-Artifact.tar.gz - sha256: __SHA__ \ No newline at end of file From af5b12bfd842c88b0c11760318fd1633e4b34619 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 15:17:38 +0200 Subject: [PATCH 028/105] Added ReadTheDocs badge to README.md [skip ci] --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index caf4125f..fd858140 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ ![Flathub](https://img.shields.io/flathub/v/net.retrodeck.retrodeck) ![Discord](https://img.shields.io/discord/951662718102962256?label=discord) ![GitHub](https://img.shields.io/github/license/XargonWan/RetroDECK) +[![Documentation Status](https://readthedocs.org/projects/retrodeck/badge/?version=latest)](https://retrodeck.readthedocs.io/en/latest/?badge=latest) + # RetroDECK on your device! From 507ad3a73e48b6c532960cb200d9de7d62b8b778 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Wed, 30 Aug 2023 09:58:16 -0400 Subject: [PATCH 029/105] Use existing function for branch replacement --- automation_tools/automation_task_list.cfg | 2 +- automation_tools/pre_build_automation.sh | 8 +------- rd-submodules/retroarch | 2 +- rd-submodules/shared-modules | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg index 98321389..a34f3878 100644 --- a/automation_tools/automation_task_list.cfg +++ b/automation_tools/automation_task_list.cfg @@ -1,6 +1,5 @@ # The proper format for this file is # ACTION^PLACEHOLDERTEXT^URL^REPO(Optional) -branch^THISBRANCH # hash^DOOMSHAPLACEHOLDER^https://buildbot.libretro.com/assets/cores/DOOM/Doom%20%28Shareware%29.zip hash^VITASHAPLACEHOLDER^https://github.com/Vita3K/Vita3K/releases/download/continuous/ubuntu-latest.zip hash^DUCKSTATIONSHAPLACEHOLDER^https://github.com/stenzek/duckstation/releases/download/preview/DuckStation-x64.AppImage @@ -10,3 +9,4 @@ hash^MSXBIOSHASHPLACEHOLDER^http://bluemsx.msxblue.com/rel_download/blueMSXv282f hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid +outside_info^THISBRANCH^$(git rev-parse --abbrev-ref HEAD) diff --git a/automation_tools/pre_build_automation.sh b/automation_tools/pre_build_automation.sh index f4d56c62..cdd1c59e 100644 --- a/automation_tools/pre_build_automation.sh +++ b/automation_tools/pre_build_automation.sh @@ -28,13 +28,7 @@ echo while IFS="^" read -r action placeholder url branch do if [[ ! $action == "#"* ]] && [[ ! -z "$action" ]]; then - if [[ "$action" == "branch" ]]; then - echo - echo "Placeholder text: $placeholder" - echo "Current branch:" "$current_branch" - echo - /bin/sed -i 's^'"$placeholder"'^'"$current_branch"'^g' $rd_manifest - elif [[ "$action" == "hash" ]]; then + if [[ "$action" == "hash" ]]; then echo echo "Placeholder text: $placeholder" echo "URL to hash: $url" diff --git a/rd-submodules/retroarch b/rd-submodules/retroarch index fbfdda61..0b1cfb79 160000 --- a/rd-submodules/retroarch +++ b/rd-submodules/retroarch @@ -1 +1 @@ -Subproject commit fbfdda61b3da092a71cc53999dd3e7b909f244e2 +Subproject commit 0b1cfb79e591e10488a3262d6b38db843c39a409 diff --git a/rd-submodules/shared-modules b/rd-submodules/shared-modules index 50314360..a2441b96 160000 --- a/rd-submodules/shared-modules +++ b/rd-submodules/shared-modules @@ -1 +1 @@ -Subproject commit 50314360ded6fa3b9f0b602513b1164b7a6636ed +Subproject commit a2441b964afefd8cd1cebcdf562c7878670daf42 From 03fc1ce56ac11c567744cfb94623d15445636161 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 16:16:20 +0200 Subject: [PATCH 030/105] pipelines: moved the branch checking from the pipeline to the automation tool --- .github/workflows/cooker-selfhosted.yml | 5 ----- .github/workflows/main-selfhosted.yml | 7 +------ automation_tools/automation_task_list.cfg | 1 + 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 61a1cdd9..fc1cd535 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -54,11 +54,6 @@ jobs: - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" - - name: Set branch in the manifest - run: | - sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml - echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - - name: "Build flatpak: download only" id: "flatpak-download" run: | diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 34e5392a..5d9e8d3d 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -43,11 +43,6 @@ jobs: - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" - - name: Set branch in the manifest - run: | - sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml - echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - - name: Read manifest content id: read_manifest run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)" @@ -55,7 +50,7 @@ jobs: - name: Check VERSION id: check_version_string run: | - if [[ "${{ steps.read_file.outputs.file_content }}" == *"VERSION=THISBRANCH"* ]]; then + if [[ "${{ steps.read_file.outputs.file_content }}" == *"VERSION=THISBRANCH"* ]] || [[ "${{ steps.read_file.outputs.file_content }}" == *"VERSION=main"* ]]; then echo "Version string is present, proceeding." else echo "Error: You forgot to specify the version." diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg index f1624f43..a34f3878 100644 --- a/automation_tools/automation_task_list.cfg +++ b/automation_tools/automation_task_list.cfg @@ -9,3 +9,4 @@ hash^MSXBIOSHASHPLACEHOLDER^http://bluemsx.msxblue.com/rel_download/blueMSXv282f hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid +outside_info^THISBRANCH^$(git rev-parse --abbrev-ref HEAD) From 16fe569c204b9e681c853f15c55ec7cc069eecb1 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 16:16:44 +0200 Subject: [PATCH 031/105] Updated release comments on manifest --- net.retrodeck.retrodeck.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 8c201fb1..ad873521 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -66,15 +66,15 @@ modules: # The version number is hardcoded in /app/retrodeck/version # # UPDATE STEPS FOR MAIN: - # [ ] Update the VERSION variable + # [ ] Update the VERSION variable on line containing "VERSION=THISBRANCH" # [ ] Update the appdata.xml with the version number and notes - # [ ] if header (before modules) was edited, edit it even in flathub.yml # - name: version-initialization buildsystem: simple build-commands: - | + # on main please update this with the version variable, eg: VERSION='0.7.0b' VERSION=THISBRANCH git checkout ${GITHUB_REF_NAME} From 64c147374f68033c3e88716aa8e146745bb581b6 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 17:18:22 +0200 Subject: [PATCH 032/105] Wrong substitution? --- automation_tools/automation_task_list.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg index a34f3878..15506a58 100644 --- a/automation_tools/automation_task_list.cfg +++ b/automation_tools/automation_task_list.cfg @@ -9,4 +9,4 @@ hash^MSXBIOSHASHPLACEHOLDER^http://bluemsx.msxblue.com/rel_download/blueMSXv282f hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid -outside_info^THISBRANCH^$(git rev-parse --abbrev-ref HEAD) +outside_info^THISBRANCH^"$(git rev-parse --abbrev-ref HEAD)" From fa21df195cd4d5a5f53aa126ebb347d21c2cb224 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 17:20:28 +0200 Subject: [PATCH 033/105] Some folder were excluded from the build triggering --- .github/workflows/cooker-selfhosted.yml | 2 ++ .github/workflows/main-selfhosted.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index fc1cd535..7a59bb0f 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -6,8 +6,10 @@ on: - cooker* paths: - '.github/workflows/**' + - 'automation_tools' - 'emu-configs/**' - 'es-configs/**' + - 'functions' - 'rd-submodules/**' - '*.sh' - 'net.retrodeck.retrodeck.yml' diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 5d9e8d3d..4588bb81 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -6,8 +6,10 @@ on: - main paths: - '.github/workflows/**' + - 'automation_tools' - 'emu-configs/**' - 'es-configs/**' + - 'functions' - 'rd-submodules/**' - '*.sh' - 'net.retrodeck.retrodeck.yml' From 88996afd085afbea527d01cc82aa6dc69106a715 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 17:26:16 +0200 Subject: [PATCH 034/105] pipeline: wrong substitution in autmation tools, falling back to the old method --- .github/workflows/cooker-selfhosted.yml | 6 ++++++ .github/workflows/main-selfhosted.yml | 6 ++++++ automation_tools/automation_task_list.cfg | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 7a59bb0f..1a3dca3b 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -56,6 +56,12 @@ jobs: - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" + # remove me when the automations tool substitution can do this + - name: Set branch in the manifest + run: | + sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" + - name: "Build flatpak: download only" id: "flatpak-download" run: | diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 4588bb81..420a8895 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -45,6 +45,12 @@ jobs: - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" + # remove me when the automations tool substitution can do this + - name: Set branch in the manifest + run: | + sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" + - name: Read manifest content id: read_manifest run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)" diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg index 15506a58..74f9aae2 100644 --- a/automation_tools/automation_task_list.cfg +++ b/automation_tools/automation_task_list.cfg @@ -9,4 +9,4 @@ hash^MSXBIOSHASHPLACEHOLDER^http://bluemsx.msxblue.com/rel_download/blueMSXv282f hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid -outside_info^THISBRANCH^"$(git rev-parse --abbrev-ref HEAD)" +#outside_info^THISBRANCH^"$(git rev-parse --abbrev-ref HEAD)" From 221159eaebfc78628f9db99fba39dd797c4936c6 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Wed, 30 Aug 2023 11:59:58 -0400 Subject: [PATCH 035/105] Branch rename automation again --- automation_tools/automation_task_list.cfg | 2 +- automation_tools/pre_build_automation.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg index a34f3878..dd907e09 100644 --- a/automation_tools/automation_task_list.cfg +++ b/automation_tools/automation_task_list.cfg @@ -9,4 +9,4 @@ hash^MSXBIOSHASHPLACEHOLDER^http://bluemsx.msxblue.com/rel_download/blueMSXv282f hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid -outside_info^THISBRANCH^$(git rev-parse --abbrev-ref HEAD) +branch^THISBRANCH^$(git rev-parse --abbrev-ref HEAD) diff --git a/automation_tools/pre_build_automation.sh b/automation_tools/pre_build_automation.sh index cdd1c59e..f4d56c62 100644 --- a/automation_tools/pre_build_automation.sh +++ b/automation_tools/pre_build_automation.sh @@ -28,7 +28,13 @@ echo while IFS="^" read -r action placeholder url branch do if [[ ! $action == "#"* ]] && [[ ! -z "$action" ]]; then - if [[ "$action" == "hash" ]]; then + if [[ "$action" == "branch" ]]; then + echo + echo "Placeholder text: $placeholder" + echo "Current branch:" "$current_branch" + echo + /bin/sed -i 's^'"$placeholder"'^'"$current_branch"'^g' $rd_manifest + elif [[ "$action" == "hash" ]]; then echo echo "Placeholder text: $placeholder" echo "URL to hash: $url" From 6c95113cfe3d955c459b8fd736a8a8f88c75ed95 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Wed, 30 Aug 2023 12:01:35 -0400 Subject: [PATCH 036/105] Remove excess info --- automation_tools/automation_task_list.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg index dd907e09..ebf7d98f 100644 --- a/automation_tools/automation_task_list.cfg +++ b/automation_tools/automation_task_list.cfg @@ -9,4 +9,4 @@ hash^MSXBIOSHASHPLACEHOLDER^http://bluemsx.msxblue.com/rel_download/blueMSXv282f hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid -branch^THISBRANCH^$(git rev-parse --abbrev-ref HEAD) +branch^THISBRANCH From 5e762cc056420fdff86c25286b0f13ee917c05f6 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Wed, 30 Aug 2023 12:03:03 -0400 Subject: [PATCH 037/105] Sync to main repo --- .github/workflows/cooker-selfhosted.yml | 34 ++++++++++++++++++++++++- .github/workflows/main-selfhosted.yml | 29 +++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 7042d3f0..12062858 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -32,7 +32,10 @@ jobs: run: sudo umount -f /home/ubuntu/actions-runner/_work/RetroDECK/RetroDECK/.flatpak-builder/rofiles/* continue-on-error: true - - uses: actions/checkout@v3 + - name: Clone RetroDECK repo + uses: actions/checkout@v3 + with: + submodules: 'true' - name: Generate cooker build ID run: | @@ -59,6 +62,35 @@ jobs: sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" + - name: "Build flatpak: download only" + id: "flatpak-download" + run: | + git config --global protocol.file.allow always + mkdir -vp ${GITHUB_WORKSPACE}/local + mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --download-only \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml + + # Sometimes flatpak download fails, in this case it tries a second time + - name: "Build flatpak: download only (retry)" + if: steps.flatpak-download.outcome == 'failure' + run: | + git config --global protocol.file.allow always + mkdir -vp ${GITHUB_WORKSPACE}/local + mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --download-only \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml + - name: Build flatpak run: | git config --global protocol.file.allow always diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 8b3764f5..bf2fa44e 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -65,6 +65,35 @@ jobs: exit 1 fi + - name: "Build flatpak: download only" + id: "flatpak-download" + run: | + git config --global protocol.file.allow always + mkdir -vp ${GITHUB_WORKSPACE}/local + mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --download-only \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml + + # Sometimes flatpak download fails, in this case it tries a second time + - name: "Build flatpak: download only (retry)" + if: steps.flatpak-download.outcome == 'failure' + run: | + git config --global protocol.file.allow always + mkdir -vp ${GITHUB_WORKSPACE}/local + mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker + flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --download-only \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml + - name: Build flatpak run: | git config --global protocol.file.allow always From d6e0691a70c3b6271a7c819ccd818372b7edbb49 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 30 Aug 2023 18:06:49 +0200 Subject: [PATCH 038/105] Disabling substitution in the pipeline to use the automation tools --- .github/workflows/cooker-selfhosted.yml | 8 ++++---- .github/workflows/main-selfhosted.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 12062858..979d214a 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -57,10 +57,10 @@ jobs: run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" # remove me when the automations tool substitution can do this - - name: Set branch in the manifest - run: | - sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml - echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" + # - name: Set branch in the manifest + # run: | + # sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + # echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - name: "Build flatpak: download only" id: "flatpak-download" diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index bf2fa44e..87152095 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -46,10 +46,10 @@ jobs: run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" # remove me when the automations tool substitution can do this - - name: Set branch in the manifest - run: | - sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml - echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" + # - name: Set branch in the manifest + # run: | + # sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml + # echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - name: Read manifest content id: read_manifest From 97493cbb6284461a5e55d478a88880623bfc36ba Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 08:51:43 +0200 Subject: [PATCH 039/105] Added update portal in cooker releases + code cleanup [skip ci] --- .github/workflows/cooker-selfhosted.yml | 7 ++----- .github/workflows/main-selfhosted.yml | 6 ------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 979d214a..332113d0 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -56,11 +56,8 @@ jobs: - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" - # remove me when the automations tool substitution can do this - # - name: Set branch in the manifest - # run: | - # sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml - # echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" + - name: "Adding flatpak portal for automated updates (cooker only)" + run: sed -i '/finish-args:/a \ \ - --talk-name=org.freedesktop.Flatpak' net.retrodeck.retrodeck.yml - name: "Build flatpak: download only" id: "flatpak-download" diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 87152095..00a1b70c 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -45,12 +45,6 @@ jobs: - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" - # remove me when the automations tool substitution can do this - # - name: Set branch in the manifest - # run: | - # sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml - # echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)" - - name: Read manifest content id: read_manifest run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)" From 2835ac9b3e4712da5b3d5106f6cd21cc2009b968 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 10:07:10 +0200 Subject: [PATCH 040/105] pipelines are getting the packages list from a requirement.txt [skip ci] --- .github/workflows/cooker-selfhosted.yml | 2 +- .github/workflows/main-selfhosted.yml | 2 +- automation_tools/requirements.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 automation_tools/requirements.txt diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 332113d0..d1164f44 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -50,7 +50,7 @@ jobs: - name: Initialize Flatpak environment run: | - sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 + sudo apt install -y $(cat 'automation_tools/requirements.txt') flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - name: Run pre-build automation tasks diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 00a1b70c..cdcbc094 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -39,7 +39,7 @@ jobs: - name: Initialize Flatpak environment run: | - sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 + sudo apt install -y $(cat 'automation_tools/requirements.txt') flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - name: Run pre-build automation tasks diff --git a/automation_tools/requirements.txt b/automation_tools/requirements.txt new file mode 100644 index 00000000..3dac54e4 --- /dev/null +++ b/automation_tools/requirements.txt @@ -0,0 +1 @@ +flatpak flatpak-builder p7zip-full xmlstarlet bzip2 curl \ No newline at end of file From a0fe34abf79f92dd5bbb018472173c132904de73 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 10:07:24 +0200 Subject: [PATCH 041/105] Updated version extractor [skip ci] --- automation_tools/version_extractor.sh | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 automation_tools/version_extractor.sh diff --git a/automation_tools/version_extractor.sh b/automation_tools/version_extractor.sh new file mode 100755 index 00000000..a76154f5 --- /dev/null +++ b/automation_tools/version_extractor.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Set the file paths +appdata="net.retrodeck.retrodeck.appdata.xml" +manifest="net.retrodeck.retrodeck.yml" +manifest_content=$(cat "$manifest") + +# Getting latest RetroDECK release info +LATEST_RELEASE=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK/releases/latest") +# Extracting tag name from the latest release +TAG=$(echo "$LATEST_RELEASE" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') +# Printing results +echo "repo: $TAG" + +# Extract the version from the net.retrodeck.retrodeck.appdata.xml file +appdata_version=$(grep -oPm1 "(?<= Date: Thu, 31 Aug 2023 10:11:59 +0200 Subject: [PATCH 042/105] pipeline: moved to an install dependencies script [skip ci] --- .github/workflows/cooker-selfhosted.yml | 6 ++---- .github/workflows/main-selfhosted.yml | 6 ++---- automation_tools/install_dependencies.sh | 3 +++ automation_tools/requirements.txt | 1 - 4 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 automation_tools/install_dependencies.sh delete mode 100644 automation_tools/requirements.txt diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index d1164f44..f106340a 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -48,10 +48,8 @@ jobs: echo "buildid=$result" >> $GITHUB_ENV echo "VersionID is $result" - - name: Initialize Flatpak environment - run: | - sudo apt install -y $(cat 'automation_tools/requirements.txt') - flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + - name: "Install dependencies" + run: "automation_tools/install_dependencies.sh" - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index cdcbc094..41792fa6 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -37,10 +37,8 @@ jobs: with: submodules: 'true' - - name: Initialize Flatpak environment - run: | - sudo apt install -y $(cat 'automation_tools/requirements.txt') - flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + - name: "Install dependencies" + run: "automation_tools/install_dependencies.sh" - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" diff --git a/automation_tools/install_dependencies.sh b/automation_tools/install_dependencies.sh new file mode 100644 index 00000000..1f9ce4d9 --- /dev/null +++ b/automation_tools/install_dependencies.sh @@ -0,0 +1,3 @@ +#!/bin/bash +sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 curl +flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo \ No newline at end of file diff --git a/automation_tools/requirements.txt b/automation_tools/requirements.txt deleted file mode 100644 index 3dac54e4..00000000 --- a/automation_tools/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -flatpak flatpak-builder p7zip-full xmlstarlet bzip2 curl \ No newline at end of file From f2145ae99b99a5cbd204024f4b32487b47cd374e Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 10:32:40 +0200 Subject: [PATCH 043/105] renamed version checker script [skip ci] --- automation_tools/version_checker.sh | 62 +++++++++++++++++++++++++++ automation_tools/version_extractor.sh | 31 -------------- 2 files changed, 62 insertions(+), 31 deletions(-) create mode 100755 automation_tools/version_checker.sh delete mode 100755 automation_tools/version_extractor.sh diff --git a/automation_tools/version_checker.sh b/automation_tools/version_checker.sh new file mode 100755 index 00000000..a16e163f --- /dev/null +++ b/automation_tools/version_checker.sh @@ -0,0 +1,62 @@ +#!/bin/bash +# This script is used to check that the versions are correct and topping the pipeline if something is wrong. +# This is designed to be run on main pipeline to check that everything is in order before building RetroDECK. + +# Set the file paths +appdata="net.retrodeck.retrodeck.appdata.xml" +manifest="net.retrodeck.retrodeck.yml" +manifest_content=$(cat "$manifest") + +compare_versions() { + local manifest_version_cleaned=$(echo "$1" | sed 's/[a-zA-Z]//g') + local appdata_version_cleaned=$(echo "$2" | sed 's/[a-zA-Z]//g') + + if [[ "$manifest_version_cleaned" == "$appdata_version_cleaned" ]]; then + return 0 # Versions are equal + fi + + local IFS=. + local manifest_parts=($manifest_version_cleaned) + local appdata_parts=($appdata_version_cleaned) + + for ((i=0; i<${#manifest_parts[@]}; i++)); do + if ((manifest_parts[i] > appdata_parts[i])); then + return 1 # Manifest version is greater + elif ((manifest_parts[i] < appdata_parts[i])); then + return 2 # Appdata version is greater + fi + done + + return 0 # Versions are equal +} + +# Getting latest RetroDECK release info +LATEST_RELEASE=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK/releases/latest") +# Extracting tag name from the latest release +repo_version=$(echo "$LATEST_RELEASE" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') +# Printing results +echo -e "Online repository:\t$repo_version" + +# Extract the version from the net.retrodeck.retrodeck.appdata.xml file +appdata_version=$(grep -oPm1 "(?<= Date: Thu, 31 Aug 2023 10:32:51 +0200 Subject: [PATCH 044/105] comments [skip ci] --- automation_tools/install_dependencies.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automation_tools/install_dependencies.sh b/automation_tools/install_dependencies.sh index 1f9ce4d9..e4cc6261 100644 --- a/automation_tools/install_dependencies.sh +++ b/automation_tools/install_dependencies.sh @@ -1,3 +1,5 @@ #!/bin/bash +# This scritp is installing the required dependencies to correctly run the pipeline and buold the flatpak + sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 curl flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo \ No newline at end of file From 012a06a156007bd19674815ea5764d0f5aab892a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 11:07:00 +0200 Subject: [PATCH 045/105] Split version checler and version extractor[skip ci] --- automation_tools/version_checker.sh | 45 ++++++++++++++------------- automation_tools/version_extractor.sh | 24 ++++++++++++++ 2 files changed, 47 insertions(+), 22 deletions(-) create mode 100644 automation_tools/version_extractor.sh diff --git a/automation_tools/version_checker.sh b/automation_tools/version_checker.sh index a16e163f..8190637c 100755 --- a/automation_tools/version_checker.sh +++ b/automation_tools/version_checker.sh @@ -1,6 +1,8 @@ #!/bin/bash # This script is used to check that the versions are correct and topping the pipeline if something is wrong. -# This is designed to be run on main pipeline to check that everything is in order before building RetroDECK. +# This is designed to be run on the main pipeline to check that everything is in order before building RetroDECK. + +source automation_tools/version_extractor.sh # Set the file paths appdata="net.retrodeck.retrodeck.appdata.xml" @@ -30,33 +32,32 @@ compare_versions() { return 0 # Versions are equal } -# Getting latest RetroDECK release info -LATEST_RELEASE=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK/releases/latest") -# Extracting tag name from the latest release -repo_version=$(echo "$LATEST_RELEASE" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') -# Printing results +repo_version=$(fetch_repo_version) echo -e "Online repository:\t$repo_version" -# Extract the version from the net.retrodeck.retrodeck.appdata.xml file -appdata_version=$(grep -oPm1 "(?<= Date: Thu, 31 Aug 2023 11:07:14 +0200 Subject: [PATCH 046/105] main pipeline is now checking the version [skip ci] --- .github/workflows/main-selfhosted.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 41792fa6..7647f6ef 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -47,15 +47,9 @@ jobs: id: read_manifest run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)" - - name: Check VERSION + - name: Check versions (main only) id: check_version_string - run: | - if [[ "${{ steps.read_file.outputs.file_content }}" == *"VERSION=THISBRANCH"* ]] || [[ "${{ steps.read_file.outputs.file_content }}" == *"VERSION=main"* ]]; then - echo "Version string is present, proceeding." - else - echo "Error: You forgot to specify the version." - exit 1 - fi + run: "automation_tools/version_checker.sh" - name: "Build flatpak: download only" id: "flatpak-download" From 60f228961af7f223cfe3bfdefbfcca7b84b62e9a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 12:40:15 +0200 Subject: [PATCH 047/105] removed unused dependency [skip ci] --- automation_tools/install_dependencies.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 automation_tools/install_dependencies.sh diff --git a/automation_tools/install_dependencies.sh b/automation_tools/install_dependencies.sh old mode 100644 new mode 100755 From 156730bedaa8ecfb88d59e1afbbe926537da8241 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 12:40:38 +0200 Subject: [PATCH 048/105] fixed version extractor: variables were missing --- automation_tools/version_extractor.sh | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 automation_tools/version_extractor.sh diff --git a/automation_tools/version_extractor.sh b/automation_tools/version_extractor.sh old mode 100644 new mode 100755 index e672575c..f324c106 --- a/automation_tools/version_extractor.sh +++ b/automation_tools/version_extractor.sh @@ -1,5 +1,9 @@ #!/bin/bash +appdata="net.retrodeck.retrodeck.appdata.xml" +manifest="net.retrodeck.retrodeck.yml" +manifest_content=$(cat "$manifest") + fetch_repo_version(){ # Getting latest RetroDECK release info LATEST_RELEASE=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK/releases/latest") From 42d6d26a19b1e1d29c66fe7e2042151b2fe96e15 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 12:41:25 +0200 Subject: [PATCH 049/105] Added an aoutomation tool to manage the appdata's version notes --- automation_tools/appdata_management.sh | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 automation_tools/appdata_management.sh diff --git a/automation_tools/appdata_management.sh b/automation_tools/appdata_management.sh new file mode 100755 index 00000000..5a546595 --- /dev/null +++ b/automation_tools/appdata_management.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +source automation_tools/version_extractor.sh + +# Fetch appdata version +appdata_version=$(fetch_appdata_version) +echo -e "Appdata:\t\t$appdata_version" +# Fetch manifest version +manifest_version=$(fetch_manifest_version) +echo -e "Manifest:\t\t$manifest_version" + +# Defining manifest file location +appdata_file="net.retrodeck.retrodeck.appdata.xml" + +# Check if release with manifest_version already exists +if grep -q "version=\"$manifest_version\"" "$appdata_file"; then + echo "The release notes for the latest version are already present in the appdata" +else + # Get today's date in the required format (YYYY-MM-DD) + today_date=$(date +"%Y-%m-%d") + echo "Today is $today_date" + + # Construct the release snippet + release_snippet="\ + + + https://github.com/XargonWan/RetroDECK/releases/tag/$manifest_version + + RELEASE_NOTES_PLACEHOLDER + + " + + # Read the entire content of the XML file + xml_content=$(cat "$appdata_file") + + # Replace RELEASE_NOTES_PLACEHOLDER with the actual release notes + # TODO + + # Append the new release snippet to the content + modified_xml_content="${xml_content//$release_snippet}" + + # Overwrite the original XML file with the modified content + echo "$modified_xml_content" > "$appdata_file" +fi + # Format the XML file + xmlstarlet fo --omit-decl "$appdata_file" \ No newline at end of file From 0bd0bbfffd10b2d77ccf1a76623ef9e19c4257ae Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 14:25:57 +0200 Subject: [PATCH 050/105] pipeline nehancements --- .github/workflows/cooker-selfhosted.yml | 9 ++++++--- .github/workflows/main-selfhosted.yml | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index f106340a..9d527f27 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -37,6 +37,9 @@ jobs: with: submodules: 'true' + - name: "Install dependencies" + run: "automation_tools/install_dependencies.sh" + - name: Generate cooker build ID run: | word1=$(shuf -n 1 ${GITHUB_WORKSPACE}/automation_tools/codename_wordlist.txt) @@ -48,15 +51,15 @@ jobs: echo "buildid=$result" >> $GITHUB_ENV echo "VersionID is $result" - - name: "Install dependencies" - run: "automation_tools/install_dependencies.sh" - - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" - name: "Adding flatpak portal for automated updates (cooker only)" run: sed -i '/finish-args:/a \ \ - --talk-name=org.freedesktop.Flatpak' net.retrodeck.retrodeck.yml + - name: "Updating release notes in appdata" + run: "automation_tools/appdata_management.sh" + - name: "Build flatpak: download only" id: "flatpak-download" run: | diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index 7647f6ef..d7808765 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -46,6 +46,9 @@ jobs: - name: Read manifest content id: read_manifest run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)" + + - name: "Updating release notes in appdata" + run: "automation_tools/appdata_management.sh" - name: Check versions (main only) id: check_version_string From 08698cf63a320f89143676d911dd1f0239fb614b Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 14:28:57 +0200 Subject: [PATCH 051/105] Removed appdata updater as it's broken --- .github/workflows/cooker-selfhosted.yml | 4 ++-- .github/workflows/main-selfhosted.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 9d527f27..e5e1aa4d 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -57,8 +57,8 @@ jobs: - name: "Adding flatpak portal for automated updates (cooker only)" run: sed -i '/finish-args:/a \ \ - --talk-name=org.freedesktop.Flatpak' net.retrodeck.retrodeck.yml - - name: "Updating release notes in appdata" - run: "automation_tools/appdata_management.sh" + # - name: "Updating release notes in appdata" + # run: "automation_tools/appdata_management.sh" - name: "Build flatpak: download only" id: "flatpak-download" diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index d7808765..e1c3d448 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -47,8 +47,8 @@ jobs: id: read_manifest run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)" - - name: "Updating release notes in appdata" - run: "automation_tools/appdata_management.sh" + # - name: "Updating release notes in appdata" + # run: "automation_tools/appdata_management.sh" - name: Check versions (main only) id: check_version_string From aa2a2b453b1b456b38e55cd880327a3030455492 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 14:32:36 +0200 Subject: [PATCH 052/105] Repo cleanup [skip ci] --- automation_tools/appdata_management.sh | 129 ++++++++++++++---- .../force-update-submodules.sh | 2 + automation_tools/pre_build_automation.sh | 0 .../removed-modules.yml | 0 .../workflows}/TEST_release_info.yml | 0 .../removed => old/workflows}/cooker.yml | 0 .../workflows}/flathub_push_cooker.yml | 0 .../removed => old/workflows}/main.yml | 0 .../workflows}/remove-artifacts.yml | 0 9 files changed, 107 insertions(+), 24 deletions(-) rename force-update-submodules.sh => automation_tools/force-update-submodules.sh (93%) mode change 100644 => 100755 automation_tools/pre_build_automation.sh rename removed-modules.yml => old/removed-modules.yml (100%) rename {.github/workflows/removed => old/workflows}/TEST_release_info.yml (100%) rename {.github/workflows/removed => old/workflows}/cooker.yml (100%) rename {.github/workflows/removed => old/workflows}/flathub_push_cooker.yml (100%) rename {.github/workflows/removed => old/workflows}/main.yml (100%) rename {.github/workflows/removed => old/workflows}/remove-artifacts.yml (100%) diff --git a/automation_tools/appdata_management.sh b/automation_tools/appdata_management.sh index 5a546595..29fa7cf5 100755 --- a/automation_tools/appdata_management.sh +++ b/automation_tools/appdata_management.sh @@ -5,42 +5,123 @@ source automation_tools/version_extractor.sh # Fetch appdata version appdata_version=$(fetch_appdata_version) echo -e "Appdata:\t\t$appdata_version" -# Fetch manifest version -manifest_version=$(fetch_manifest_version) -echo -e "Manifest:\t\t$manifest_version" # Defining manifest file location appdata_file="net.retrodeck.retrodeck.appdata.xml" -# Check if release with manifest_version already exists -if grep -q "version=\"$manifest_version\"" "$appdata_file"; then - echo "The release notes for the latest version are already present in the appdata" -else - # Get today's date in the required format (YYYY-MM-DD) - today_date=$(date +"%Y-%m-%d") - echo "Today is $today_date" +# Check if release with appdata_version already exists +if grep -q "version=\"$appdata_version\"" "$appdata_file"; then + echo "Deleting existing release version $appdata_version..." + + # Remove the existing release entry + sed -i "//d" "$appdata_file" +fi - # Construct the release snippet - release_snippet="\ +echo "Adding new release version $appdata_version..." + +# Get today's date in the required format (YYYY-MM-DD) +today_date=$(date +"%Y-%m-%d") +echo "Today is $today_date" + +# Construct the release snippet +release_snippet="\ - - https://github.com/XargonWan/RetroDECK/releases/tag/$manifest_version + + https://github.com/XargonWan/RetroDECK/releases/tag/$appdata_version RELEASE_NOTES_PLACEHOLDER " - # Read the entire content of the XML file - xml_content=$(cat "$appdata_file") +# Read the entire content of the XML file +xml_content=$(cat "$appdata_file") - # Replace RELEASE_NOTES_PLACEHOLDER with the actual release notes - # TODO +# Replace RELEASE_NOTES_PLACEHOLDER with the actual release notes +# TODO +git clone https://github.com/XargonWan/RetroDECK.wiki.git /tmp/wiki - # Append the new release snippet to the content - modified_xml_content="${xml_content//$release_snippet}" +# Path to the markdown file +wiki="/tmp/wiki/Version-history:-Patch-Notes.md" +# Read the markdown file until the first occurrence of "---" +latest_version_notes="" +while IFS= read -r line; do + if [ "$line" = "---" ]; then + break + fi + latest_version_notes+="$line\n" +done < "$wiki" - # Overwrite the original XML file with the modified content - echo "$modified_xml_content" > "$appdata_file" +# Extract the version number +version_number="${latest_version_notes#*# RetroDECK }" # Remove text before "# RetroDECK " +version_number="${version_number%% -*}" # Remove text after " - " + +# Extract sections from the latest version notes +sections=$(echo "$latest_version_notes" | awk '/##/ { print; }') + +# # Create a formatted section list +# section_list="" +# current_section="" +# while IFS= read -r line; do +# if [[ "$line" == "##"* ]]; then +# if [ -n "$current_section" ]; then +# section_list+="" +# fi +# section_name="${line##*# }" +# section_list+="

${section_name}

    " +# elif [[ "$line" == "- "* ]]; then +# entry="${line#*- }" +# section_list+="
  • ${entry}
  • " +# fi +# done <<< "$sections" + +# if [ -n "$current_section" ]; then +# section_list+="
" +# fi + +altered_sections="" +current_section="" +in_list=0 + +IFS=$'\n' +for line in $sections; do + if [[ $line =~ ^##\ (.+) ]]; then + if [ -n "$current_section" ]; then + if [ $in_list -eq 1 ]; then + altered_sections+="\n" + in_list=0 + fi + altered_sections+="\n" + fi + current_section="${BASH_REMATCH[1]}" + altered_sections+="

$current_section

\n
    \n" + elif [[ $line =~ ^-\ (.+) ]]; then + if [ $in_list -eq 0 ]; then + in_list=1 + altered_sections+="
      \n" + fi + list_item="${BASH_REMATCH[1]}" + altered_sections+="
    • $list_item
    • \n" + elif [ -z "$line" ]; then + if [ $in_list -eq 1 ]; then + in_list=0 + altered_sections+="
    \n" + fi + fi +done +if [ $in_list -eq 1 ]; then + altered_sections+="
\n" fi - # Format the XML file - xmlstarlet fo --omit-decl "$appdata_file" \ No newline at end of file + +echo -e "$altered_sections" + +# Replace RELEASE_NOTES_PLACEHOLDER with the actual release notes +release_description="${release_snippet/RELEASE_NOTES_PLACEHOLDER/$section_list}" + +# Append the new release snippet to the content +modified_xml_content="${xml_content//$release_description}" + +# Overwrite the original XML file with the modified content +echo "$modified_xml_content" > "$appdata_file" + +# Format the XML file +#xmlstarlet fo --omit-decl "$appdata_file" diff --git a/force-update-submodules.sh b/automation_tools/force-update-submodules.sh similarity index 93% rename from force-update-submodules.sh rename to automation_tools/force-update-submodules.sh index 57d3df5f..c0c84f46 100644 --- a/force-update-submodules.sh +++ b/automation_tools/force-update-submodules.sh @@ -1,5 +1,7 @@ #!/bin/bash +# Don't use this script lightly + git submodule deinit --all rm rd-submodules/retroarch git rm -rf --cached rd-submodules/retroarch diff --git a/automation_tools/pre_build_automation.sh b/automation_tools/pre_build_automation.sh old mode 100644 new mode 100755 diff --git a/removed-modules.yml b/old/removed-modules.yml similarity index 100% rename from removed-modules.yml rename to old/removed-modules.yml diff --git a/.github/workflows/removed/TEST_release_info.yml b/old/workflows/TEST_release_info.yml similarity index 100% rename from .github/workflows/removed/TEST_release_info.yml rename to old/workflows/TEST_release_info.yml diff --git a/.github/workflows/removed/cooker.yml b/old/workflows/cooker.yml similarity index 100% rename from .github/workflows/removed/cooker.yml rename to old/workflows/cooker.yml diff --git a/.github/workflows/removed/flathub_push_cooker.yml b/old/workflows/flathub_push_cooker.yml similarity index 100% rename from .github/workflows/removed/flathub_push_cooker.yml rename to old/workflows/flathub_push_cooker.yml diff --git a/.github/workflows/removed/main.yml b/old/workflows/main.yml similarity index 100% rename from .github/workflows/removed/main.yml rename to old/workflows/main.yml diff --git a/.github/workflows/removed/remove-artifacts.yml b/old/workflows/remove-artifacts.yml similarity index 100% rename from .github/workflows/removed/remove-artifacts.yml rename to old/workflows/remove-artifacts.yml From 2b450ad5e12d81c0c60667b4adce3ae814d21a53 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 14:43:38 +0200 Subject: [PATCH 053/105] Uploading last version of this broken tool [skip ci] --- automation_tools/appdata_management.sh | 64 ++++++-------------------- 1 file changed, 14 insertions(+), 50 deletions(-) diff --git a/automation_tools/appdata_management.sh b/automation_tools/appdata_management.sh index 29fa7cf5..a59fdfb9 100755 --- a/automation_tools/appdata_management.sh +++ b/automation_tools/appdata_management.sh @@ -58,61 +58,25 @@ version_number="${version_number%% -*}" # Remove text after " - " # Extract sections from the latest version notes sections=$(echo "$latest_version_notes" | awk '/##/ { print; }') -# # Create a formatted section list -# section_list="" -# current_section="" -# while IFS= read -r line; do -# if [[ "$line" == "##"* ]]; then -# if [ -n "$current_section" ]; then -# section_list+="" -# fi -# section_name="${line##*# }" -# section_list+="

${section_name}

    " -# elif [[ "$line" == "- "* ]]; then -# entry="${line#*- }" -# section_list+="
  • ${entry}
  • " -# fi -# done <<< "$sections" - -# if [ -n "$current_section" ]; then -# section_list+="
" -# fi - -altered_sections="" +# Create a formatted section list +section_list="" current_section="" -in_list=0 - -IFS=$'\n' -for line in $sections; do - if [[ $line =~ ^##\ (.+) ]]; then +while IFS= read -r line; do + if [[ "$line" == "##"* ]]; then if [ -n "$current_section" ]; then - if [ $in_list -eq 1 ]; then - altered_sections+="\n" - in_list=0 - fi - altered_sections+="\n" - fi - current_section="${BASH_REMATCH[1]}" - altered_sections+="

$current_section

\n
    \n" - elif [[ $line =~ ^-\ (.+) ]]; then - if [ $in_list -eq 0 ]; then - in_list=1 - altered_sections+="
      \n" - fi - list_item="${BASH_REMATCH[1]}" - altered_sections+="
    • $list_item
    • \n" - elif [ -z "$line" ]; then - if [ $in_list -eq 1 ]; then - in_list=0 - altered_sections+="
    \n" + section_list+="
" fi + section_name="${line##*# }" + section_list+="

${section_name}

    " + elif [[ "$line" == "- "* ]]; then + entry="${line#*- }" + section_list+="
  • ${entry}
  • " fi -done -if [ $in_list -eq 1 ]; then - altered_sections+="
\n" -fi +done <<< "$sections" -echo -e "$altered_sections" +if [ -n "$current_section" ]; then + section_list+="" +fi # Replace RELEASE_NOTES_PLACEHOLDER with the actual release notes release_description="${release_snippet/RELEASE_NOTES_PLACEHOLDER/$section_list}" From 1ee2cb6d89d3a212a7df177aeac7f2abb40496a4 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Aug 2023 17:26:29 +0200 Subject: [PATCH 054/105] Renamed pipelines [skip ci] --- .github/workflows/cooker-selfhosted.yml | 2 +- .github/workflows/flathub_push_main.yml | 2 +- .github/workflows/main-selfhosted.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index e5e1aa4d..4e74e67b 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -1,4 +1,4 @@ -name: cooker-selfhosted +name: "Build cooker" on: push: diff --git a/.github/workflows/flathub_push_main.yml b/.github/workflows/flathub_push_main.yml index ef02c9f4..7e085521 100644 --- a/.github/workflows/flathub_push_main.yml +++ b/.github/workflows/flathub_push_main.yml @@ -1,5 +1,5 @@ -name: PUSH-main-flathub +name: "Push main on Flathub" on: workflow_dispatch: diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index e1c3d448..d097cb7a 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -1,4 +1,4 @@ -name: main-selfhosted +name: "Build main" on: push: From c2af92576ad555fd0d2c7282a9b793a384f3aaf6 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Fri, 1 Sep 2023 16:17:57 -0400 Subject: [PATCH 055/105] Updated GBA borders preset for integer scaling --- .../defaults/retrodeck/presets/gba_presets.cfg | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/emu-configs/defaults/retrodeck/presets/gba_presets.cfg b/emu-configs/defaults/retrodeck/presets/gba_presets.cfg index dc48d86d..adde1c14 100644 --- a/emu-configs/defaults/retrodeck/presets/gba_presets.cfg +++ b/emu-configs/defaults/retrodeck/presets/gba_presets.cfg @@ -2,12 +2,13 @@ config_file_format^retroarch target_file^/var/config/retroarch/config/mGBA/gba.cfg defaults_file^$emuconfigs/retroarch/retroarch.cfg change^borders^aspect_ratio_index^23 -change^borders^custom_viewport_height^600 -change^borders^custom_viewport_width^900 -change^borders^custom_viewport_x^190 -change^borders^custom_viewport_y^37 -change^borders^input_overlay^/var/config/retroarch/overlays/borders/pegasus/gba.cfg -change^borders^input_overlay_aspect_adjust_landscape^0.105000 +change^borders^custom_viewport_height^640 +change^borders^custom_viewport_width^960 +change^borders^custom_viewport_x^160 +change^borders^custom_viewport_y^0 change^borders^input_overlay_enable^true -change^borders^input_overlay_scale_landscape^1.140000 +change^borders^input_overlay^/var/config/retroarch/overlays/borders/pegasus/gba.cfg +change^borders^input_overlay_aspect_adjust_landscape^0.135000 +change^borders^input_overlay_scale_landscape^1.190000 +change^borders^input_overlay_y_offset_landscape^0.025000 enable^nintendo_button_layout^/var/config/retroarch/config/remaps/Gambatte/gbc.rmp From 9486d7e2a8c1a1d7f7837e98d89f8f324710f844 Mon Sep 17 00:00:00 2001 From: WallK Date: Sat, 2 Sep 2023 16:53:23 +0300 Subject: [PATCH 056/105] Update GBA border to better align with integer scaling Moved and rescaled overlay to avoid covering the game --- emu-configs/defaults/retrodeck/presets/gba_presets.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emu-configs/defaults/retrodeck/presets/gba_presets.cfg b/emu-configs/defaults/retrodeck/presets/gba_presets.cfg index adde1c14..21787a86 100644 --- a/emu-configs/defaults/retrodeck/presets/gba_presets.cfg +++ b/emu-configs/defaults/retrodeck/presets/gba_presets.cfg @@ -8,7 +8,7 @@ change^borders^custom_viewport_x^160 change^borders^custom_viewport_y^0 change^borders^input_overlay_enable^true change^borders^input_overlay^/var/config/retroarch/overlays/borders/pegasus/gba.cfg -change^borders^input_overlay_aspect_adjust_landscape^0.135000 -change^borders^input_overlay_scale_landscape^1.190000 -change^borders^input_overlay_y_offset_landscape^0.025000 +change^borders^input_overlay_aspect_adjust_landscape^0.110000 +change^borders^input_overlay_scale_landscape^1.2150000 +change^borders^input_overlay_y_offset_landscape^0.020000 enable^nintendo_button_layout^/var/config/retroarch/config/remaps/Gambatte/gbc.rmp From 74e7dba40ec752f9020d8cbb7dbc27736cfca735 Mon Sep 17 00:00:00 2001 From: WallK Date: Sun, 3 Sep 2023 12:28:02 +0300 Subject: [PATCH 057/105] Game Gear integer scaling and border Output resolution set to 6x by 5x to match GG screen stretch --- .../defaults/retrodeck/presets/gg_presets.cfg | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/emu-configs/defaults/retrodeck/presets/gg_presets.cfg b/emu-configs/defaults/retrodeck/presets/gg_presets.cfg index 1fc0ebb7..f6b8529a 100644 --- a/emu-configs/defaults/retrodeck/presets/gg_presets.cfg +++ b/emu-configs/defaults/retrodeck/presets/gg_presets.cfg @@ -2,10 +2,12 @@ config_file_format^retroarch target_file^/var/config/retroarch/config/Genesis Plus GX/gg.cfg defaults_file^$emuconfigs/retroarch/retroarch.cfg change^borders^aspect_ratio_index^23 -change^borders^custom_viewport_width^800 -change^borders^custom_viewport_x^240 -change^borders^custom_viewport_y^43 +change^borders^custom_viewport_width^960 +change^borders^custom_viewport_height^720 +change^borders^custom_viewport_x^160 +change^borders^custom_viewport_y^24 change^borders^input_overlay^/var/config/retroarch/overlays/borders/pegasus/gg.cfg -change^borders^input_overlay_aspect_adjust_landscape^-0.080000 +change^borders^input_overlay_aspect_adjust_landscape^0.110000 change^borders^input_overlay_enable^true -change^borders^input_overlay_scale_landscape^1.345000 +change^borders^input_overlay_scale_landscape^1.350000 +change^borders^input_overlay_y_offset_landscape^0.020000 From bd39e29b6a4034703f22310d55f96224e806106d Mon Sep 17 00:00:00 2001 From: WallK Date: Sun, 3 Sep 2023 15:08:12 +0300 Subject: [PATCH 058/105] Fix GBC overlay position --- emu-configs/defaults/retrodeck/presets/gbc_presets.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emu-configs/defaults/retrodeck/presets/gbc_presets.cfg b/emu-configs/defaults/retrodeck/presets/gbc_presets.cfg index c691b38d..cd24b9e7 100644 --- a/emu-configs/defaults/retrodeck/presets/gbc_presets.cfg +++ b/emu-configs/defaults/retrodeck/presets/gbc_presets.cfg @@ -10,5 +10,5 @@ change^borders^input_overlay^/var/config/retroarch/overlays/borders/pegasus/gbc. change^borders^input_overlay_aspect_adjust_landscape^0.110000 change^borders^input_overlay_enable^true change^borders^input_overlay_scale_landscape^1.205000 -change^borders^input_overlay_y_offset_landscape^0.005000 +change^borders^input_overlay_y_offset_landscape^-0.040000 enable^nintendo_button_layout^/var/config/retroarch/config/remaps/Gambatte/gbc.rmp From db6dde2c353d35ad18243d84826f79d0b3077582 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 4 Sep 2023 12:05:01 +0200 Subject: [PATCH 059/105] Updating credits [skip ci] --- .../reference_lists/retrodeck_credits.txt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/emu-configs/defaults/retrodeck/reference_lists/retrodeck_credits.txt b/emu-configs/defaults/retrodeck/reference_lists/retrodeck_credits.txt index 46e31fbd..eb6c994b 100644 --- a/emu-configs/defaults/retrodeck/reference_lists/retrodeck_credits.txt +++ b/emu-configs/defaults/retrodeck/reference_lists/retrodeck_credits.txt @@ -13,11 +13,14 @@ Creator of the RetroDECK configurator and various awesome features. Lazorne Community management/outreach, testing, documentation, feature suggestions and some design. +dottormac +Beta Tester + +LX32 +Junior code contributor, Beta Tester + Collaborators -Niroku / Atari -Helps with community management, is also part of Batocera - Leon Styhre Maker of EmulationStation Desktop Edition @@ -27,7 +30,7 @@ Theme creator for ES-DE and AmberELEC Additional credits RavenKilit -Did some code and testning, contributed to AmberELEC +Former Beta Tester and AmberELEC contributor MorGuux Made the RetroDECK steamdb graphics for the old logo @@ -38,11 +41,14 @@ Made the new logo and steamdb graphics teotwaki Generous cloud hosting sponsor +Niroku / Atari +Helps with community management, is also part of Batocera + Gabeboii Webmaster Draco -Server Administration +Former server admiistrator and code consultant ItzSelenux Maker of pixelitos @@ -56,7 +62,7 @@ Special Thanks We want give special thanks to: Our Patreons that keeps the build servers running and provide feedback. - All related emulation projects. + All related emulation projects, such as Batocera and AmberELEC where we are taking our inspiration. All people that have put both time and money into emulation projects. All the users who help others with support, guidance and good spirit. All the users who help with testing and reporting issues. From b93a6f4b0e1d1dc00abe2eeba705fcc710eda0a7 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 4 Sep 2023 14:48:58 +0200 Subject: [PATCH 060/105] GB: possible "quit" colorization fix --- emu-configs/defaults/retroarch/retroarch-core-options.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emu-configs/defaults/retroarch/retroarch-core-options.cfg b/emu-configs/defaults/retroarch/retroarch-core-options.cfg index 6be315ae..f7bbfc46 100644 --- a/emu-configs/defaults/retroarch/retroarch-core-options.cfg +++ b/emu-configs/defaults/retroarch/retroarch-core-options.cfg @@ -286,6 +286,10 @@ gambatte_gb_link_network_server_ip_9 = "0" gambatte_gb_palette_pixelshift_1 = "PixelShift 01 - Arctic Green" gambatte_gb_palette_twb64_1 = "TWB64 001 - Aqours Blue" gambatte_gb_palette_twb64_2 = "TWB64 101 - 765PRO Pink" +gambatte_gb_input_player1_l = "nul" +gambatte_gb_input_player1_l_btn = "nul" +gambatte_gb_input_player1_r = "nul" +gambatte_gb_input_player1_r_btn = "nul" gambatte_gbc_color_correction = "GBC only" gambatte_gbc_color_correction_mode = "accurate" gambatte_gbc_frontlight_position = "central" From db59cde08d728f71abac6a04e673270a6738db76 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 4 Sep 2023 15:05:30 +0200 Subject: [PATCH 061/105] Fix: cooker updater --- functions/checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/checks.sh b/functions/checks.sh index 227be3fd..710fd6c9 100644 --- a/functions/checks.sh +++ b/functions/checks.sh @@ -83,7 +83,7 @@ check_for_version_update() { local latest_cooker_download=$(curl --silent https://api.github.com/repos/XargonWan/$update_repo/releases/latest | grep '"browser_download_url":' | sed -E 's/.*"([^"]+)".*/\1/') mkdir -p "$rdhome/RetroDECK_Updates" wget -P "$rdhome/RetroDECK_Updates" $latest_cooker_download - flatpak-spawn --host flatpak install --user --bundle --noninteractive -y "$rdhome/RetroDECK_Updates/RetroDECK.flatpak" + flatpak-spawn --host flatpak install --user --bundle --noninteractive -y "$rdhome/RetroDECK_Updates/RetroDECK-cooker.flatpak" rm -rf "$rdhome/RetroDECK_Updates" # Cleanup old bundles to save space ) | zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \ From 45cca6a765d5eb097ed7fe3918fe5bd0422a2ecc Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 4 Sep 2023 15:10:12 +0200 Subject: [PATCH 062/105] Fix: pipelines triggering [skip ci] --- .github/workflows/cooker-selfhosted.yml | 4 ++-- .github/workflows/main-selfhosted.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 4e74e67b..f198a60e 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -6,10 +6,10 @@ on: - cooker* paths: - '.github/workflows/**' - - 'automation_tools' + - 'automation_tools/**' - 'emu-configs/**' - 'es-configs/**' - - 'functions' + - 'functions/**' - 'rd-submodules/**' - '*.sh' - 'net.retrodeck.retrodeck.yml' diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index d097cb7a..ab6fa4e8 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -6,10 +6,10 @@ on: - main paths: - '.github/workflows/**' - - 'automation_tools' + - 'automation_tools/**' - 'emu-configs/**' - 'es-configs/**' - - 'functions' + - 'functions/**' - 'rd-submodules/**' - '*.sh' - 'net.retrodeck.retrodeck.yml' From 39a20a2911096f46ddcafa2cfefaa268e55c042a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 4 Sep 2023 16:11:13 +0200 Subject: [PATCH 063/105] Fix: pipelines download retry --- .github/workflows/cooker-selfhosted.yml | 1 + .github/workflows/main-selfhosted.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index f198a60e..bf7e76fd 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -73,6 +73,7 @@ jobs: --download-only \ ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ net.retrodeck.retrodeck.yml + continue-on-error: true # Sometimes flatpak download fails, in this case it tries a second time - name: "Build flatpak: download only (retry)" diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index ab6fa4e8..c380622f 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -67,6 +67,7 @@ jobs: --download-only \ ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ net.retrodeck.retrodeck.yml + continue-on-error: true # Sometimes flatpak download fails, in this case it tries a second time - name: "Build flatpak: download only (retry)" From 7edfc10a5ee7b435e0fad0c6ae8e0563101c6b55 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Tue, 5 Sep 2023 14:04:16 -0400 Subject: [PATCH 064/105] Update all presets on any reset/move --- functions/prepare_emulator.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/functions/prepare_emulator.sh b/functions/prepare_emulator.sh index 1b24b608..441cc6b6 100644 --- a/functions/prepare_emulator.sh +++ b/functions/prepare_emulator.sh @@ -15,14 +15,14 @@ prepare_emulator() { if [[ "$emulator" == "retrodeck" ]]; then if [[ "$action" == "reset" ]]; then # Update the paths of all folders in retrodeck.cfg and create them - while read -r config_line; do - local current_setting_name=$(get_setting_name "$config_line" "retrodeck") - if [[ ! $current_setting_name =~ (rdhome|sdcard) ]]; then # Ignore these locations - local current_setting_value=$(get_setting_value "$rd_conf" "$current_setting_name" "retrodeck" "paths") - eval "$current_setting_name=$rdhome/$(basename $current_setting_value)" - mkdir -p "$rdhome/$(basename $current_setting_value)" - fi - done < <(grep -v '^\s*$' $rd_conf | awk '/^\[paths\]/{f=1;next} /^\[/{f=0} f') + while read -r config_line; do + local current_setting_name=$(get_setting_name "$config_line" "retrodeck") + if [[ ! $current_setting_name =~ (rdhome|sdcard) ]]; then # Ignore these locations + local current_setting_value=$(get_setting_value "$rd_conf" "$current_setting_name" "retrodeck" "paths") + eval "$current_setting_name=$rdhome/$(basename $current_setting_value)" + mkdir -p "$rdhome/$(basename $current_setting_value)" + fi + done < <(grep -v '^\s*$' $rd_conf | awk '/^\[paths\]/{f=1;next} /^\[/{f=0} f') fi if [[ "$action" == "postmove" ]]; then # Update the paths of any folders that came with the retrodeck folder during a move while read -r config_line; do @@ -616,4 +616,7 @@ prepare_emulator() { set_setting_value "$yuzuconf" "Screenshots\screenshot_path" "$screenshots_folder" "yuzu" "UI" fi fi + + # Update presets for all emulators after any reset or move + build_retrodeck_current_presets } From 19016e318ba04995750d3c9054c325b543846aef Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 6 Sep 2023 09:59:32 +0200 Subject: [PATCH 065/105] Added deubg check on cooker pipeline --- .github/workflows/cooker-selfhosted.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index bf7e76fd..21855e1d 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -54,6 +54,9 @@ jobs: - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" + - name: "[DEBUG] Outputting manifest" + run: cat net.retrodeck.retrodeck.yml + - name: "Adding flatpak portal for automated updates (cooker only)" run: sed -i '/finish-args:/a \ \ - --talk-name=org.freedesktop.Flatpak' net.retrodeck.retrodeck.yml From 7c02cb2fbf0c0e8babd73c33927f817d16810f4d Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 6 Sep 2023 10:03:32 +0200 Subject: [PATCH 066/105] fix: Added deubg check on cooker pipeline --- .github/workflows/cooker-selfhosted.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 21855e1d..2ae40fe2 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -54,15 +54,15 @@ jobs: - name: Run pre-build automation tasks run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" - - name: "[DEBUG] Outputting manifest" - run: cat net.retrodeck.retrodeck.yml - - name: "Adding flatpak portal for automated updates (cooker only)" run: sed -i '/finish-args:/a \ \ - --talk-name=org.freedesktop.Flatpak' net.retrodeck.retrodeck.yml # - name: "Updating release notes in appdata" # run: "automation_tools/appdata_management.sh" + - name: "[DEBUG] Outputting manifest" + run: cat net.retrodeck.retrodeck.yml + - name: "Build flatpak: download only" id: "flatpak-download" run: | From 0b6e791d461ff48d76753ef79710b1a9fb55e43e Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 6 Sep 2023 10:11:10 +0200 Subject: [PATCH 067/105] Manifest: removing old comments [skip ci] --- net.retrodeck.retrodeck.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index ad873521..c281d570 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -1202,7 +1202,6 @@ modules: - mkdir -p /app/tools - cp tools/configurator.sh /app/tools/configurator.sh - chmod +x /app/tools/configurator.sh - #- cp es-configs/tools-gamelist.xml /app/retrodeck/tools-gamelist.xml - cp tools/retrodeck_function_wrapper.sh /app/tools/retrodeck_function_wrapper.sh - chmod +x /app/tools/retrodeck_function_wrapper.sh @@ -1214,8 +1213,6 @@ modules: - cp net.retrodeck.retrodeck.desktop /app/share/applications/net.retrodeck.retrodeck.desktop - cp net.retrodeck.retrodeck.Configurator.desktop /app/share/applications/net.retrodeck.retrodeck.Configurator.desktop - # TODO: group the configs per-emu and optimize the following cps, like already done with Dolphin. Please not that some files may be renamed, check retrodeck.sh to know how (and fix it after the edit) - # Initializing default emulator configs - cp -r emu-configs ${FLATPAK_DEST}/retrodeck/emu-configs/ From 3a5c60314a4e67726a125275481afd89f097e56f Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 6 Sep 2023 10:11:52 +0200 Subject: [PATCH 068/105] Manifest: removing old comments [skip ci] --- net.retrodeck.retrodeck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index c281d570..d9c8be09 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -15,7 +15,7 @@ finish-args: - --share=ipc - --share=network - --device=all - - --filesystem=home # Needed to be able to relocate / remove / create symlink at ~/retrodeck + - --filesystem=home - --filesystem=/run/media - --filesystem=/media - --allow=multiarch From b2014f250000a98ff8d733000650bd1c0c7c6d2a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 6 Sep 2023 10:42:47 +0200 Subject: [PATCH 069/105] fix: string quoted --- functions/dialogs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/dialogs.sh b/functions/dialogs.sh index e77b65f7..00393287 100644 --- a/functions/dialogs.sh +++ b/functions/dialogs.sh @@ -170,7 +170,7 @@ changelog_dialog() { local version_changelog=$(xml sel -t -m "//release[@version='$1']/description" -v . -n $rd_appdata | tr -s '\n' | sed 's/^\s*//') echo -e "In RetroDECK version $1, the following changes were made:\n$version_changelog" > "/var/config/retrodeck/changelog-partial.txt" - $version_changelog >> "/var/config/retrodeck/changelog-partial.txt" + "$version_changelog" >> "/var/config/retrodeck/changelog-partial.txt" zenity --icon-name=net.retrodeck.retrodeck --text-info --width=1200 --height=720 \ --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ From e327762ddef8ef30f75fcd3abae5301d6cd57fb3 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 7 Sep 2023 15:16:41 +0200 Subject: [PATCH 070/105] GB Colorization bug: tentative fix --- emu-configs/retroarch/retroarch-core-options.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emu-configs/retroarch/retroarch-core-options.cfg b/emu-configs/retroarch/retroarch-core-options.cfg index 06420de7..ef112dce 100644 --- a/emu-configs/retroarch/retroarch-core-options.cfg +++ b/emu-configs/retroarch/retroarch-core-options.cfg @@ -294,6 +294,8 @@ gambatte_rumble_level = "10" gambatte_show_gb_link_settings = "disabled" gambatte_turbo_period = "4" gambatte_up_down_allowed = "disabled" +gambatte_input_player1_r = "nul" +gambatte_input_player1_l = "nul" genesis_plus_gx_add_on = "auto" genesis_plus_gx_addr_error = "enabled" genesis_plus_gx_aspect_ratio = "auto" From 91f1fac361af993c0e00faa508c4c84153dab7d2 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 7 Sep 2023 09:28:07 -0400 Subject: [PATCH 071/105] Remove current container when updating cooker Don't try to build presets before emulators have been set up on finit --- functions/checks.sh | 1 + functions/prepare_emulator.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/checks.sh b/functions/checks.sh index 710fd6c9..bb93b322 100644 --- a/functions/checks.sh +++ b/functions/checks.sh @@ -83,6 +83,7 @@ check_for_version_update() { local latest_cooker_download=$(curl --silent https://api.github.com/repos/XargonWan/$update_repo/releases/latest | grep '"browser_download_url":' | sed -E 's/.*"([^"]+)".*/\1/') mkdir -p "$rdhome/RetroDECK_Updates" wget -P "$rdhome/RetroDECK_Updates" $latest_cooker_download + flatpak-spawn --host flatpak remove --noninteractive -y net.retrodeck.retrodeck # Remove current version before installing new one, to avoid duplicates flatpak-spawn --host flatpak install --user --bundle --noninteractive -y "$rdhome/RetroDECK_Updates/RetroDECK-cooker.flatpak" rm -rf "$rdhome/RetroDECK_Updates" # Cleanup old bundles to save space ) | diff --git a/functions/prepare_emulator.sh b/functions/prepare_emulator.sh index 441cc6b6..b4ade655 100644 --- a/functions/prepare_emulator.sh +++ b/functions/prepare_emulator.sh @@ -618,5 +618,7 @@ prepare_emulator() { fi # Update presets for all emulators after any reset or move - build_retrodeck_current_presets + if [[ ! "$emulator" == "retrodeck" ]]; then + build_retrodeck_current_presets + fi } From bf70523071c51f5b62cbcf4d4c500148fb47752e Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 8 Sep 2023 13:54:24 +0200 Subject: [PATCH 072/105] RA: removing unsignificant lines from core overrides [skip ci] --- emu-configs/retroarch/retroarch-core-options.cfg | 2 -- 1 file changed, 2 deletions(-) diff --git a/emu-configs/retroarch/retroarch-core-options.cfg b/emu-configs/retroarch/retroarch-core-options.cfg index ef112dce..06420de7 100644 --- a/emu-configs/retroarch/retroarch-core-options.cfg +++ b/emu-configs/retroarch/retroarch-core-options.cfg @@ -294,8 +294,6 @@ gambatte_rumble_level = "10" gambatte_show_gb_link_settings = "disabled" gambatte_turbo_period = "4" gambatte_up_down_allowed = "disabled" -gambatte_input_player1_r = "nul" -gambatte_input_player1_l = "nul" genesis_plus_gx_add_on = "auto" genesis_plus_gx_addr_error = "enabled" genesis_plus_gx_aspect_ratio = "auto" From 8509e5b582f7da98713207aa18ae8f34fb5ff102 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 8 Sep 2023 13:55:53 +0200 Subject: [PATCH 073/105] RA: enabled save on quit [skip ci] --- emu-configs/retroarch/retroarch.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emu-configs/retroarch/retroarch.cfg b/emu-configs/retroarch/retroarch.cfg index 3bda1f75..2fc14c02 100644 --- a/emu-configs/retroarch/retroarch.cfg +++ b/emu-configs/retroarch/retroarch.cfg @@ -80,7 +80,7 @@ cheevos_visibility_account = "true" cheevos_visibility_mastery = "true" cheevos_visibility_summary = "1" cheevos_visibility_unlock = "true" -config_save_on_exit = "false" +config_save_on_exit = "true" content_database_path = "/app/share/libretro/database/rdb" content_favorites_directory = "default" content_favorites_path = "/var/config/retroarch/content_favorites.lpl" From ea5eb22ca0672108cd55d7f9d59c6a5540f88d83 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 8 Sep 2023 15:50:08 +0200 Subject: [PATCH 074/105] ES-DE: last played is now the default startup system [skip ci] --- es-configs/es_settings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-configs/es_settings.xml b/es-configs/es_settings.xml index 93de24b3..8247458d 100644 --- a/es-configs/es_settings.xml +++ b/es-configs/es_settings.xml @@ -143,7 +143,7 @@ - + From 01feccc324e29512f6c354e4a07e9f82c8e7fa39 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Fri, 8 Sep 2023 17:00:28 -0400 Subject: [PATCH 075/105] Reset presets to default when resetting emulator --- functions/prepare_emulator.sh | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/functions/prepare_emulator.sh b/functions/prepare_emulator.sh index b4ade655..de1988b7 100644 --- a/functions/prepare_emulator.sh +++ b/functions/prepare_emulator.sh @@ -116,6 +116,29 @@ prepare_emulator() { dir_prep "$texture_packs_folder/RetroArch-Mesen" "/var/config/retroarch/system/HdPacks" dir_prep "$texture_packs_folder/RetroArch-Mupen64Plus/cache" "/var/config/retroarch/system/Mupen64plus/cache" dir_prep "$texture_packs_folder/RetroArch-Mupen64Plus/hires_texture" "/var/config/retroarch/system/Mupen64plus/hires_texture" + + # Reset default preset settings + set_setting_value "$rd_conf" "retroarch" "$(get_setting_value "$rd_defaults" "retroarch" "retrodeck" "cheevos")" "retrodeck" "cheevos" + set_setting_value "$rd_conf" "retroarch" "$(get_setting_value "$rd_defaults" "retroarch" "retrodeck" "cheevos_hardcore")" "retrodeck" "cheevos_hardcore" + set_setting_value "$rd_conf" "gb" "$(get_setting_value "$rd_defaults" "gb" "retrodeck" "borders")" "retrodeck" "borders" + set_setting_value "$rd_conf" "gba" "$(get_setting_value "$rd_defaults" "gba" "retrodeck" "borders")" "retrodeck" "borders" + set_setting_value "$rd_conf" "gbc" "$(get_setting_value "$rd_defaults" "gbc" "retrodeck" "borders")" "retrodeck" "borders" + set_setting_value "$rd_conf" "genesis" "$(get_setting_value "$rd_defaults" "genesis" "retrodeck" "borders")" "retrodeck" "borders" + set_setting_value "$rd_conf" "gg" "$(get_setting_value "$rd_defaults" "gg" "retrodeck" "borders")" "retrodeck" "borders" + set_setting_value "$rd_conf" "n64" "$(get_setting_value "$rd_defaults" "n64" "retrodeck" "borders")" "retrodeck" "borders" + set_setting_value "$rd_conf" "psx_ra" "$(get_setting_value "$rd_defaults" "psx_ra" "retrodeck" "borders")" "retrodeck" "borders" + set_setting_value "$rd_conf" "snes" "$(get_setting_value "$rd_defaults" "snes" "retrodeck" "borders")" "retrodeck" "borders" + set_setting_value "$rd_conf" "genesis" "$(get_setting_value "$rd_defaults" "genesis" "retrodeck" "widescreen")" "retrodeck" "widescreen" + set_setting_value "$rd_conf" "n64" "$(get_setting_value "$rd_defaults" "n64" "retrodeck" "widescreen")" "retrodeck" "widescreen" + set_setting_value "$rd_conf" "psx_ra" "$(get_setting_value "$rd_defaults" "psx_ra" "retrodeck" "widescreen")" "retrodeck" "widescreen" + set_setting_value "$rd_conf" "snes" "$(get_setting_value "$rd_defaults" "snes" "retrodeck" "widescreen")" "retrodeck" "widescreen" + set_setting_value "$rd_conf" "gb" "$(get_setting_value "$rd_defaults" "gb" "retrodeck" "nintendo_button_layout")" "retrodeck" "nintendo_button_layout" + set_setting_value "$rd_conf" "gba" "$(get_setting_value "$rd_defaults" "gba" "retrodeck" "nintendo_button_layout")" "retrodeck" "nintendo_button_layout" + set_setting_value "$rd_conf" "gbc" "$(get_setting_value "$rd_defaults" "gbc" "retrodeck" "nintendo_button_layout")" "retrodeck" "nintendo_button_layout" + set_setting_value "$rd_conf" "n64" "$(get_setting_value "$rd_defaults" "gb" "retrodeck" "nintendo_button_layout")" "retrodeck" "nintendo_button_layout" + set_setting_value "$rd_conf" "snes" "$(get_setting_value "$rd_defaults" "gba" "retrodeck" "nintendo_button_layout")" "retrodeck" "nintendo_button_layout" + set_setting_value "$rd_conf" "retroarch" "$(get_setting_value "$rd_defaults" "retroarch" "retrodeck" "savestate_auto_load")" "retrodeck" "savestate_auto_load" + set_setting_value "$rd_conf" "retroarch" "$(get_setting_value "$rd_defaults" "retroarch" "retrodeck" "savestate_auto_save")" "retrodeck" "savestate_auto_save" fi if [[ "$action" == "postmove" ]]; then # Run only post-move commands dir_prep "$bios_folder" "/var/config/retroarch/system" @@ -190,6 +213,10 @@ prepare_emulator() { dir_prep "$logs_folder/citra" "/var/data/citra-emu/log" dir_prep "$mods_folder/Citra" "/var/data/citra-emu/load/mods" dir_prep "$texture_packs_folder/Citra" "/var/data/citra-emu/load/textures" + + # Reset default preset settings + set_setting_value "$rd_conf" "citra" "$(get_setting_value "$rd_defaults" "citra" "retrodeck" "nintendo_button_layout")" "retrodeck" "nintendo_button_layout" + set_setting_value "$rd_conf" "citra" "$(get_setting_value "$rd_defaults" "citra" "retrodeck" "ask_to_exit")" "retrodeck" "ask_to_exit" fi if [[ "$action" == "postmove" ]]; then # Run only post-move commands dir_prep "$rdhome/bios/citra/sysdata" "/var/data/citra-emu/sysdata" @@ -237,6 +264,9 @@ prepare_emulator() { dir_prep "$saves_folder/wii/dolphin" "/var/data/dolphin-emu/Wii" dir_prep "$mods_folder/Dolphin" "/var/data/dolphin-emu/Load/GraphicMods" dir_prep "$texture_packs_folder/Dolphin" "/var/data/dolphin-emu/Load/Textures" + + # Reset default preset settings + set_setting_value "$rd_conf" "dolphin" "$(get_setting_value "$rd_defaults" "dolphin" "retrodeck" "ask_to_exit")" "retrodeck" "ask_to_exit" fi if [[ "$action" == "postmove" ]]; then # Run only post-move commands dir_prep "$saves_folder/gc/dolphin/EU" "/var/data/dolphin-emu/GC/EUR" @@ -283,6 +313,12 @@ prepare_emulator() { # Shared actions dir_prep "$states_folder/psx/duckstation" "/var/config/duckstation/savestates" # This is hard-coded in Duckstation, always needed dir_prep "$texture_packs_folder/Duckstation" "/var/config/duckstation/textures" + + # Reset default preset settings + set_setting_value "$rd_conf" "duckstation" "$(get_setting_value "$rd_defaults" "duckstation" "retrodeck" "cheevos")" "retrodeck" "cheevos" + set_setting_value "$rd_conf" "duckstation" "$(get_setting_value "$rd_defaults" "duckstation" "retrodeck" "cheevos_hardcore")" "retrodeck" "cheevos_hardcore" + set_setting_value "$rd_conf" "duckstation" "$(get_setting_value "$rd_defaults" "duckstation" "retrodeck" "savestate_auto_save")" "retrodeck" "savestate_auto_save" + set_setting_value "$rd_conf" "duckstation" "$(get_setting_value "$rd_defaults" "duckstation" "retrodeck" "ask_to_exit")" "retrodeck" "ask_to_exit" fi if [[ "$action" == "postmove" ]]; then # Run only post-move commands set_setting_value "$duckstationconf" "SearchDirectory" "$bios_folder" "duckstation" "BIOS" @@ -364,6 +400,12 @@ prepare_emulator() { mkdir -pv "$saves_folder/ps2/pcsx2/memcards" mkdir -pv "$states_folder/ps2/pcsx2" dir_prep "$texture_packs_folder/PCSX2" "/var/config/PCSX2/textures" + + # Reset default preset settings + set_setting_value "$rd_conf" "pcsx2" "$(get_setting_value "$rd_defaults" "pcsx2" "retrodeck" "cheevos")" "retrodeck" "cheevos" + set_setting_value "$rd_conf" "pcsx2" "$(get_setting_value "$rd_defaults" "pcsx2" "retrodeck" "cheevos_hardcore")" "retrodeck" "cheevos_hardcore" + set_setting_value "$rd_conf" "pcsx2" "$(get_setting_value "$rd_defaults" "pcsx2" "retrodeck" "savestate_auto_save")" "retrodeck" "savestate_auto_save" + set_setting_value "$rd_conf" "pcsx2" "$(get_setting_value "$rd_defaults" "pcsx2" "retrodeck" "ask_to_exit")" "retrodeck" "ask_to_exit" fi if [[ "$action" == "postmove" ]]; then # Run only post-move commands set_setting_value "$pcsx2conf" "Bios" "$bios_folder" "pcsx2" "Folders" @@ -442,6 +484,9 @@ prepare_emulator() { dir_prep "$saves_folder/wii/primehack" "/var/data/primehack/Wii" dir_prep "$mods_folder/Primehack" "/var/data/primehack/Load/GraphicMods" dir_prep "$texture_packs_folder/Primehack" "/var/data/primehack/Load/Textures" + + # Reset default preset settings + set_setting_value "$rd_conf" "primehack" "$(get_setting_value "$rd_defaults" "primehack" "retrodeck" "ask_to_exit")" "retrodeck" "ask_to_exit" fi if [[ "$action" == "postmove" ]]; then # Run only post-move commands dir_prep "$saves_folder/gc/primehack/EU" "/var/data/primehack/GC/EUR" @@ -601,6 +646,10 @@ prepare_emulator() { if [ -d $bios_folder/switch ]; then find $bios_folder/switch -xtype l -exec rm {} \; fi + + # Reset default preset settings + set_setting_value "$rd_conf" "yuzu" "$(get_setting_value "$rd_defaults" "yuzu" "retrodeck" "nintendo_button_layout")" "retrodeck" "nintendo_button_layout" + set_setting_value "$rd_conf" "yuzu" "$(get_setting_value "$rd_defaults" "yuzu" "retrodeck" "ask_to_exit")" "retrodeck" "ask_to_exit" fi if [[ "$action" == "postmove" ]]; then # Run only post-move commands dir_prep "$bios_folder/switch/keys" "/var/data/yuzu/keys" From 32463f1093c376c5d876053b4b5d583dd48f31ab Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 12 Sep 2023 13:36:18 +0200 Subject: [PATCH 076/105] ES-DE: revert: last played is no more the default startup system [skip ci] --- es-configs/es_settings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-configs/es_settings.xml b/es-configs/es_settings.xml index 8247458d..93de24b3 100644 --- a/es-configs/es_settings.xml +++ b/es-configs/es_settings.xml @@ -143,7 +143,7 @@ - + From 61fde7009943cd0da1ec7eea6a224d5c2567c6e1 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Tue, 12 Sep 2023 10:40:28 -0400 Subject: [PATCH 077/105] Deploy helper files on finit and update Add Citra mod helper file --- .../how-to-install-citra-mods.txt | 19 +++++++++++++++++++ .../reference_lists/helper_files_list.cfg | 2 +- functions/functions.sh | 1 + functions/post_update.sh | 1 + 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-citra-mods.txt diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-citra-mods.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-citra-mods.txt new file mode 100644 index 00000000..f9ce75bc --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-citra-mods.txt @@ -0,0 +1,19 @@ +There are two ways of adding mods into Citra + +From Citra +- Extract any mod from compressed .zip or any other format to folders. +- Open up Citra inside RetroDECK Configurator by pressing Open Emulator - Citra. +- Right click on the game you want to add mods into. +- Click on Open Mods Location. +- Paste the mod files inside that directory, each folder is stored by the TITLLEID of the game. +- Quit Citra + +From the mod folder directly +- Extract any mod files from compressed .zip or any other format into folders. +- Go into ~/retrodeck/mods/citra/. The folders are all named by TITLEID. +- Past the mods into the right ~/retrodeck/mods/yuzu/ folder. + +Related wiki article can be found here: +https://github.com/XargonWan/RetroDECK/wiki/Citra%3A-Mods#citra---3ds + +The RetroDECK Team diff --git a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg index d5a1be95..1b05ffff 100644 --- a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg +++ b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg @@ -2,4 +2,4 @@ # FILE NAME^DESTINATION # The destination can be an internal variable name like $roms_folder if needed # The FILE name can have spaces in it, but the DESTINATION cannot, even in variable form -RetroDECK Example Readme.txt^$rdhome +how-to-install-citra-mods.txt^$mods_folder/Citra diff --git a/functions/functions.sh b/functions/functions.sh index 7bcc6499..e6b6f9ed 100644 --- a/functions/functions.sh +++ b/functions/functions.sh @@ -422,6 +422,7 @@ finit() { ( prepare_emulator "reset" "all" build_retrodeck_current_presets + deploy_helper_files # Optional actions based on user choices if [[ "$finit_options_choices" =~ (rpcs3_firmware|Enable All) ]]; then diff --git a/functions/post_update.sh b/functions/post_update.sh index c65bd9f2..69194993 100644 --- a/functions/post_update.sh +++ b/functions/post_update.sh @@ -244,6 +244,7 @@ post_update() { fi update_splashscreens + deploy_helper_files build_retrodeck_current_presets ) | zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \ From 880c8225b28dbc6c74975a2e8dfc223a2121963d Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 12 Sep 2023 16:46:20 +0200 Subject: [PATCH 078/105] Adding more helper files --- .../how-to-install-citra-mods.txt | 2 +- .../how-to-install-dolphin-mods.txt | 10 ++++++++ .../how-to-install-primehack-mods.txt | 10 ++++++++ .../helper_files/how-to-install-yuzu-mods.txt | 25 +++++++++++++++++++ .../reference_lists/helper_files_list.cfg | 3 +++ 5 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-dolphin-mods.txt create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-primehack-mods.txt create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-yuzu-mods.txt diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-citra-mods.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-citra-mods.txt index f9ce75bc..8918ba2d 100644 --- a/emu-configs/defaults/retrodeck/helper_files/how-to-install-citra-mods.txt +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-citra-mods.txt @@ -16,4 +16,4 @@ From the mod folder directly Related wiki article can be found here: https://github.com/XargonWan/RetroDECK/wiki/Citra%3A-Mods#citra---3ds -The RetroDECK Team +The RetroDECK Team \ No newline at end of file diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-dolphin-mods.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-dolphin-mods.txt new file mode 100644 index 00000000..150ed2ba --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-dolphin-mods.txt @@ -0,0 +1,10 @@ +- Extract any mod files from compressed .zip or any other format into folders. + +- Go into mods folders, they contain folders that are all named by GAME_ID. ~/retrodeck/mods/dolphin/ + +- Move the mods into the right folder: ~/retrodeck/mods/dolphin/ + +Related wiki article can be found here: +https://github.com/XargonWan/RetroDECK/wiki/Dolphin-and-Primehack%3A-Mods + +The RetroDECK Team \ No newline at end of file diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-primehack-mods.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-primehack-mods.txt new file mode 100644 index 00000000..f88e8a4e --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-primehack-mods.txt @@ -0,0 +1,10 @@ +- Extract any mod files from compressed .zip or any other format into folders. + +- Go into mods folders, they contain folders that are all named by GAME_ID. ~/retrodeck/mods/primehack/. + +- Move the mods into the right folder: ~/retrodeck/mods/primehack/ + +Related wiki article can be found here: +https://github.com/XargonWan/RetroDECK/wiki/Dolphin-and-Primehack%3A-Mods + +The RetroDECK Team \ No newline at end of file diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-yuzu-mods.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-yuzu-mods.txt new file mode 100644 index 00000000..1f41c698 --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-yuzu-mods.txt @@ -0,0 +1,25 @@ +There are two ways of adding mods into Yuzu + +From Yuzu directly +- Extract any mod files from compressed .zip or any other format to folders. +- Open up Yuzu inside RetroDECK Configurator by pressing Open Emulator - Yuzu. +- Right click on the game you want to add mods into. +- Click on Open Mod Data Destination. +- Paste the mod folders inside that directory. +- Right clicking on the game and selecting Properties. +- Enable the mods you want to enable by pressing the checkboxes in the Add-Ons tab and press OK. +- Quit Yuzu + +From the mods/yuzu folder +- Extract any mod files from compressed .zip or any other format into folders. +- Go into ~/retrodeck/mods/yuzu/ and file the right folder for the game you want to add mods to. The folders are all named by TITLEID. +- Move those folders into ~/retrodeck/mods/yuzu/ +- Open up Yuzu inside RetroDECK Configurator by pressing Open Emulator - Yuzu. +- Right clicking on the game and selecting Properties. +- Enable the mods you want to enable by pressing the checkboxes in the Add-Ons tab and press OK. +- Quit Yuzu + +Related wiki article can be found here: +https://github.com/XargonWan/RetroDECK/wiki/Yuzu%3A-Mods + +The RetroDECK Team \ No newline at end of file diff --git a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg index 1b05ffff..0c1e9a8b 100644 --- a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg +++ b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg @@ -3,3 +3,6 @@ # The destination can be an internal variable name like $roms_folder if needed # The FILE name can have spaces in it, but the DESTINATION cannot, even in variable form how-to-install-citra-mods.txt^$mods_folder/Citra +how-to-install-dolphin-mods.txt^$mods_folder/Dolphin +how-to-install-primehack-mods.txt^$mods_folder/Primehack +how-to-install-yuzu-mods.txt^$mods_folder/Yuzu \ No newline at end of file From 09497f1f75578126ac561d5e4576f01baa05222d Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 13 Sep 2023 12:12:14 +0200 Subject: [PATCH 079/105] Yuzu helper file wasn't deployed --- .../defaults/retrodeck/reference_lists/helper_files_list.cfg | 2 +- net.retrodeck.retrodeck.appdata.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg index 0c1e9a8b..8243c5e9 100644 --- a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg +++ b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg @@ -5,4 +5,4 @@ how-to-install-citra-mods.txt^$mods_folder/Citra how-to-install-dolphin-mods.txt^$mods_folder/Dolphin how-to-install-primehack-mods.txt^$mods_folder/Primehack -how-to-install-yuzu-mods.txt^$mods_folder/Yuzu \ No newline at end of file +how-to-install-yuzu-mods.txt^$mods_folder/Yuzu diff --git a/net.retrodeck.retrodeck.appdata.xml b/net.retrodeck.retrodeck.appdata.xml index 4a126254..e737f8f5 100644 --- a/net.retrodeck.retrodeck.appdata.xml +++ b/net.retrodeck.retrodeck.appdata.xml @@ -74,6 +74,7 @@
  • Redone the patches for ES-DE
  • Updated theme
  • Changelog is now scrollable
  • +
  • Added helper files in the mods folders to instruct the users on the procedures to follow
  • From dba58a3ecc561ade7bad0db231ef2d14f1b15ddc Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 13 Sep 2023 12:41:15 +0200 Subject: [PATCH 080/105] Added textures helper files --- .../how-to-install-Duckstation-textures.txt | 28 ++++++++++++++++ .../how-to-install-Mesen-textures.txt | 32 +++++++++++++++++++ .../how-to-install-Mupen64Plus-textures.txt | 30 +++++++++++++++++ .../how-to-install-PCSX2-textures.txt | 26 +++++++++++++++ .../how-to-install-PPSSPP-textures.txt | 26 +++++++++++++++ .../how-to-install-dolphin-mods.txt | 15 +++++++-- .../how-to-install-primehack-mods.txt | 13 ++++++-- .../reference_lists/helper_files_list.cfg | 10 ++++++ 8 files changed, 175 insertions(+), 5 deletions(-) create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-Duckstation-textures.txt create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-Mesen-textures.txt create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-Mupen64Plus-textures.txt create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-PCSX2-textures.txt create mode 100644 emu-configs/defaults/retrodeck/helper_files/how-to-install-PPSSPP-textures.txt diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-Duckstation-textures.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-Duckstation-textures.txt new file mode 100644 index 00000000..4deee10f --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-Duckstation-textures.txt @@ -0,0 +1,28 @@ +The ~/retrodeck/texture_packs/duckstaiton/ represents the /duckstation/textures/ folder in Duckstation. + +Note: +Some texture packs could made for a specific version or region of a game. Make sure you have the right game and textures for it. + +Note: +TITLEID is different for every game. + +Enable Custom Textures +- Open up Duckstation inside RetroDECK Configurator by pressing Open Emulator - Duckstation. +- Go to Settings -> Advanced -> Tweaks/Hacks +- Enable VRAM Write Texture Replacement and set it to On. +- Preload Texture Replacements and set it to On. + +How do I add texture packs? +Requirements: Texture pack files + +NOTE: On the Steam Deck this could be easier to do in Desktop Mode. + +Texture folder directly +- Extract any texture pack files from compressed .zip or any other format into folders. +- Go into ~/retrodeck/texture_packs/duckstation/. The folders are all named by TITLEID. +- Move textures into the right ~/retrodeck/texture_packs/duckstation/ folder. + +Related wiki article can be found here: +https://github.com/XargonWan/RetroDECK/wiki/Duckstation%3A-Texture-Packs + +The RetroDECK Team \ No newline at end of file diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-Mesen-textures.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-Mesen-textures.txt new file mode 100644 index 00000000..33e9d9c8 --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-Mesen-textures.txt @@ -0,0 +1,32 @@ +RetroArch - NES - Mesen +The texture_packs/RetroArch-Mesen/ represents /retroarch/system/HdPacks/ folder. + +Note: +Some texture packs could made for a specific version or region of a game. Make sure you have the right game and textures for it. + +Enable Texture Packs in the Mesen core for certain games +From the RetroArch Quick Menu + +- Go to Core Options -> Enable HD Packs set to On +- Then save the current configuration for that game under Core Options -> Manage Core Options -> Save Game Options + +How do I add texture packs that can be used by the Mesen Core? +NOTE: On the Steam Deck this could be easier to do in Desktop Mode. + +- All texture packs go into the texture_packs/RetroArch-Mesen/ folder. +- The texture pack have to be extracted from .zip or other compressed format into a folder. +- The name of the folder must be the same name as that of the rom file the texture pack is for. +Example: + +You want apply a texture pack to a game called ScaryCastle USA.nes and you have downloaded the ScaryCastle TexturePACK HD.zip. + +- Extract the ScaryCastle TexturePACK HD.zip +- Move the extracted ScaryCastle TexturePACK HD folder into texture_packs/RetroArch-Mesen/ +- Rename the ScaryCastle TexturePACK HD folder so it has the same name as the rom ScaryCastle USA without the .nes file extension. +- Start up RetroDECK and select the ScaryCastle nes games. +NOTE: On the Steam Deck go into GameMode first, then launch RetroDECK. + +Related wiki article can be found here: +https://github.com/XargonWan/RetroDECK/wiki/RetroArch-Mesen%3A-Texture-Packs + +The RetroDECK Team \ No newline at end of file diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-Mupen64Plus-textures.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-Mupen64Plus-textures.txt new file mode 100644 index 00000000..6cfe0670 --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-Mupen64Plus-textures.txt @@ -0,0 +1,30 @@ +RetroArch - N64 - Mupen64Plus-Next + +The directory 'texture_packs/RetroArch-Mupen64Plus/' corresponds to the '/retroarch/system/Mupen64plus/' folder. + +Please note that some texture packs may be designed for a specific version or region of the game. Ensure you have the correct ROM and textures for it. + +To enable Texture Packs in the Mupen64Plus-Next core for certain games, follow these steps: + +1. Open the RetroArch Quick Menu. +2. Navigate to Core Options -> GLideN64. +3. Set 'Use High-Res Textures', 'Cache Textures', 'Use High-Res Full Alpha Channel', and 'Use Hi-Res Storage' to On. +4. Save the current configuration for that game under Core Options -> Manage Core Options -> Save Game Options. + +Optionally, you can set 'Use High-Res Texture Cache Compression' to On to compress uncompressed HD Textures into .hts files. + +To add texture packs that can be used by the Mupen64Plus-Next Core: + +Note: On the Steam Deck, this could be easier to do in Desktop Mode. + +1. All texture packs go into the 'texture_packs//RetroArch-Mupen64Plus/hires_texture/' or 'texture_packs/RetroArch-Mupen64Plus/cache/' folder. +2. The texture pack must be extracted from .zip or other compressed format into a folder. + +For compressed textures stored in .hts files, place them in the 'texture_packs/RetroArch-Mupen64Plus/cache/' folder. + +For uncompressed textures stored in loose folders or files, place them in the 'texture_packs/RetroArch-Mupen64Plus/hires_texture/' folder. + +Related wiki article can be found here: +https://github.com/XargonWan/RetroDECK/wiki/RetroArch-Mupen64Plus-Next%3A-Texture-Packs + +The RetroDECK Team \ No newline at end of file diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-PCSX2-textures.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-PCSX2-textures.txt new file mode 100644 index 00000000..807513b7 --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-PCSX2-textures.txt @@ -0,0 +1,26 @@ +PCSX2 - Playstation 2 + +The directory '~/retrodeck/texture_packs/PCSX2/' corresponds to the '/PCSX2/textures/' folder in PCSX2. + +Please note that some texture packs may be designed for a specific version or region of a game. Ensure you have the correct game and textures for it. + +Also, keep in mind that 'TITLEID' is different for every game. + +To enable Custom Textures, follow these steps: + +1. Open up PCSX2 inside RetroDECK Configurator by pressing 'Open Emulator' - 'PCSX2'. +2. Press 'Settings' -> 'Graphics'. +3. Set 'Load Textures' and 'Async Texture Loading' to On. + +To add texture packs, you'll need the texture pack files. On the Steam Deck, this could be easier to do in Desktop Mode. + +For direct texture folder: + +1. Extract any texture pack files from compressed .zip or any other format into folders. +2. Go into '~/retrodeck/texture_packs/PCSX2/'. The folders are all named by 'TITLEID'. +3. Move textures into the correct '~/retrodeck/texture_packs/PCSX2/' folder. + +Related wiki article can be found here: +https://github.com/XargonWan/RetroDECK/wiki/PCSX2%3A-Texture-Packs + +The RetroDECK Team \ No newline at end of file diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-PPSSPP-textures.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-PPSSPP-textures.txt new file mode 100644 index 00000000..6fabb0e4 --- /dev/null +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-PPSSPP-textures.txt @@ -0,0 +1,26 @@ +PPSSPP - PSP + +The directory '~/retrodeck/texture_packs/ppsspp/' corresponds to the '/PSP/TEXTURES/' folder in PPSSPP. + +Please note that some texture packs may be designed for a specific version or region of the game. Ensure you have the correct ROM and textures for it. + +Also, keep in mind that 'TITLEID' is different for every game. + +To enable Custom Textures, follow these steps: + +1. Open up PPSSPP inside RetroDECK Configurator by pressing 'Open Emulator' - 'PPSSPP'. +2. Press 'Settings' -> 'Tools' -> 'Developer Tools'. +3. Set 'Replace Textures' to On. + +To add texture packs, you'll need the texture pack files. On the Steam Deck, this could be easier to do in Desktop Mode. + +For adding textures: + +1. Extract any texture pack files from compressed .zip or any other format into folders. +2. Go into '~/retrodeck/texture_packs/ppsspp/'. The folders are all named by 'TITLEID'. +3. Paste the textures into the correct '~/retrodeck/texture_packs/ppsspp/' folder. + +Related wiki article can be found here: +https://github.com/XargonWan/RetroDECK/wiki/PPSSPP%3A-Texture-Packs + +The RetroDECK Team \ No newline at end of file diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-dolphin-mods.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-dolphin-mods.txt index 150ed2ba..33a50c8c 100644 --- a/emu-configs/defaults/retrodeck/helper_files/how-to-install-dolphin-mods.txt +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-dolphin-mods.txt @@ -1,9 +1,18 @@ +Prerequisites +- Open up Dolphin inside RetroDECK Configurator by pressing Open Emulator - Dolphin. +- Press Options -> Graphic Settings +- Enable Graphics Mods and set it to On. + +Installation - Extract any mod files from compressed .zip or any other format into folders. - -- Go into mods folders, they contain folders that are all named by GAME_ID. ~/retrodeck/mods/dolphin/ - +- Go into mods folders, they contain folders that are all named by GAME_ID. ~/retrodeck/mods/dolphin/. - Move the mods into the right folder: ~/retrodeck/mods/dolphin/ +Notes: +- The ~/retrodeck/mods/dolphin/ that represents the /load/GraphicMods folder. +- Some texture packs could made for a specific version or region of a game. Make sure you have the right game and textures for it. +- GAME_ID is different for every game. + Related wiki article can be found here: https://github.com/XargonWan/RetroDECK/wiki/Dolphin-and-Primehack%3A-Mods diff --git a/emu-configs/defaults/retrodeck/helper_files/how-to-install-primehack-mods.txt b/emu-configs/defaults/retrodeck/helper_files/how-to-install-primehack-mods.txt index f88e8a4e..1bcbbc05 100644 --- a/emu-configs/defaults/retrodeck/helper_files/how-to-install-primehack-mods.txt +++ b/emu-configs/defaults/retrodeck/helper_files/how-to-install-primehack-mods.txt @@ -1,9 +1,18 @@ +Prerequisites +- Open up Primehack inside RetroDECK Configurator by pressing Open Emulator - Primehack. +- Press Options -> Graphic Settings +- Enable Graphics Mods and set it to On. + +Installation - Extract any mod files from compressed .zip or any other format into folders. - - Go into mods folders, they contain folders that are all named by GAME_ID. ~/retrodeck/mods/primehack/. - - Move the mods into the right folder: ~/retrodeck/mods/primehack/ +Notes: +- The ~/retrodeck/mods/primehack/ that represents the /load/GraphicMods folder. +- Some texture packs could made for a specific version or region of a game. Make sure you have the right game and textures for it. +- GAME_ID is different for every game. + Related wiki article can be found here: https://github.com/XargonWan/RetroDECK/wiki/Dolphin-and-Primehack%3A-Mods diff --git a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg index 8243c5e9..4f30fe78 100644 --- a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg +++ b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg @@ -2,7 +2,17 @@ # FILE NAME^DESTINATION # The destination can be an internal variable name like $roms_folder if needed # The FILE name can have spaces in it, but the DESTINATION cannot, even in variable form + +# mods how-to-install-citra-mods.txt^$mods_folder/Citra how-to-install-dolphin-mods.txt^$mods_folder/Dolphin how-to-install-primehack-mods.txt^$mods_folder/Primehack how-to-install-yuzu-mods.txt^$mods_folder/Yuzu + +# textures +how-to-install-Mesen-textures.txt^$texture_packs_folder/RetroArch-Mesen +how-to-install-PPSSPP-textures.txt^$texture_packs_folder/PPSSPP +how-to-install-PCSX2-textures.txt^$texture_packs_folder/PCSX2 +how-to-install-Mupen64Plus-textures.txt^$texture_packs_folder/RetroArch-Mupen64Plus/cache +how-to-install-Mupen64Plus-textures.txt^$texture_packs_folder/RetroArch-Mupen64Plus/hires_texture +how-to-install-Duckstation-textures.txt^$texture_packs_folder/Duckstation \ No newline at end of file From e40676436f9f2c3b0eb417b659db757a38def38f Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 13 Sep 2023 14:50:20 +0200 Subject: [PATCH 081/105] Last line fix --- .../defaults/retrodeck/reference_lists/helper_files_list.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg index 4f30fe78..aaa8ad51 100644 --- a/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg +++ b/emu-configs/defaults/retrodeck/reference_lists/helper_files_list.cfg @@ -15,4 +15,4 @@ how-to-install-PPSSPP-textures.txt^$texture_packs_folder/PPSSPP how-to-install-PCSX2-textures.txt^$texture_packs_folder/PCSX2 how-to-install-Mupen64Plus-textures.txt^$texture_packs_folder/RetroArch-Mupen64Plus/cache how-to-install-Mupen64Plus-textures.txt^$texture_packs_folder/RetroArch-Mupen64Plus/hires_texture -how-to-install-Duckstation-textures.txt^$texture_packs_folder/Duckstation \ No newline at end of file +how-to-install-Duckstation-textures.txt^$texture_packs_folder/Duckstation From 869444b7100de0e5176373f95c13df22a91ad9af Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 15 Sep 2023 15:36:47 +0200 Subject: [PATCH 082/105] PPSSPP: updated to 1.16.1 (RetroAchievements to be done) --- net.retrodeck.retrodeck.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index d9c8be09..99fd50e5 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -8,6 +8,15 @@ base: io.qt.qtwebengine.BaseApp # Needed for Yuzu base-version: 5.15-22.08 # Needed for Yuzu command: retrodeck.sh +add-extensions: + org.ppsspp.PPSSPP.Locale: + directory: share/locale + bundle: true + no-autodownload: false + subdirectories: false + autodelete: true + locale-subset: true + finish-args: - --socket=fallback-x11 - --socket=wayland @@ -548,8 +557,8 @@ modules: sources: - type: git url: &ppsspp-url https://github.com/hrydgard/ppsspp.git - tag: v1.15.4 - commit: 9a80120dc09997e40c0a73fda05c3e07a347259f + tag: v1.16.1 + commit: 961e0068f7b859b56fecfaaceddea74b355ee1ba x-checker-data: type: anitya project-id: 12295 From 573cb0e603ba61ae3aa178af235a956ebafdde2f Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 19 Sep 2023 15:54:39 +0200 Subject: [PATCH 083/105] PPSSPP: updated to 1.16.2 --- net.retrodeck.retrodeck.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 99fd50e5..95eed05d 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -557,8 +557,8 @@ modules: sources: - type: git url: &ppsspp-url https://github.com/hrydgard/ppsspp.git - tag: v1.16.1 - commit: 961e0068f7b859b56fecfaaceddea74b355ee1ba + tag: v1.16.2 + commit: 4f8db4c61728109d953650223e3146a35497ad08 x-checker-data: type: anitya project-id: 12295 From 53d706ddefbc8bae05db27d8f54852ef6f67cbdb Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sat, 23 Sep 2023 20:09:14 +0200 Subject: [PATCH 084/105] PPSSPP: updated to 1.6.3, RETROARCH: updated to 1,16,0 --- .gitignore | 3 +- net.retrodeck.retrodeck.yml | 58 +++++++++++++++++++------------------ 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index e98c039e..2ce58802 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ Thumbs.db retrodeck-flatpak-cooker/ retrodeck-flatpak/ backup -.old \ No newline at end of file +.old +.godot \ No newline at end of file diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 95eed05d..d5dad13c 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -366,11 +366,13 @@ modules: config-opts: - '--enable-dbus' make-args: - - GLOBAL_CONFIG_DIR=${FLATPAK_DEST}/etc + - 'GLOBAL_CONFIG_DIR=${FLATPAK_DEST}/etc' + - HAVE_TRANSLATE=1 + - HAVE_ACCESSIBILITY=1 sources: - type: git - url: https://github.com/libretro/RetroArch.git - commit: 6616b807edea5b56683e9fbca8b003b436c22b13 + url: 'https://github.com/libretro/RetroArch.git' + commit: 712b9350a5c2b1b9129d939a2ae622093dfabd04 - type: file path: rd-submodules/retroarch/retroarch.cfg post-install: @@ -383,7 +385,6 @@ modules: - >- sed s:@prefix@:${FLATPAK_DEST}:g retroarch.cfg > ${FLATPAK_DEST}/etc/retroarch.cfg - - mkdir -p ${FLATPAK_DEST}/share/appdata modules: - rd-submodules/retroarch/modules/libpng/libpng-1.6.35.json - rd-submodules/retroarch/modules/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013.json @@ -407,44 +408,44 @@ modules: - PREFIX=${FLATPAK_DEST} sources: - type: git - url: https://github.com/libretro/RetroArch.git - commit: 6616b807edea5b56683e9fbca8b003b436c22b13 + url: 'https://github.com/libretro/RetroArch.git' + commit: 712b9350a5c2b1b9129d939a2ae622093dfabd04 - name: retroarch-filers-audio subdir: libretro-common/audio/dsp_filters make-install-args: - PREFIX=${FLATPAK_DEST} sources: - type: git - url: https://github.com/libretro/RetroArch.git - commit: 6616b807edea5b56683e9fbca8b003b436c22b13 + url: 'https://github.com/libretro/RetroArch.git' + commit: 712b9350a5c2b1b9129d939a2ae622093dfabd04 - name: retroarch-assets make-install-args: - PREFIX=${FLATPAK_DEST} sources: - type: git - url: https://github.com/libretro/retroarch-assets.git - commit: 4ec80faf1b5439d1654f407805bb66141b880826 + url: 'https://github.com/libretro/retroarch-assets.git' + commit: 7b735ef18bcc6508b1c9a626eb237779ff787179 - name: libretro-database make-install-args: - PREFIX=${FLATPAK_DEST} sources: - type: git - url: https://github.com/libretro/libretro-database.git - commit: 6a8d65d2bc1b7ffa7accb882e80c0a77b931bcc6 + url: 'https://github.com/libretro/libretro-database.git' + commit: e3b5cb00da4f3ab99491bf67c19630ffa7ee19f2 - name: libretro-core-info make-install-args: - PREFIX=${FLATPAK_DEST} sources: - type: git - url: https://github.com/libretro/libretro-core-info.git - commit: eb7e3ff064c3fdaae46b89c9da9f49e15a8e9c2b + url: 'https://github.com/libretro/libretro-core-info.git' + commit: dacae85b406131feb12395a415fdf57fc4745201 - name: retroarch-joypad-autoconfig make-install-args: - PREFIX=${FLATPAK_DEST} sources: - type: git - url: https://github.com/libretro/retroarch-joypad-autoconfig.git - commit: 8ec6304a14bd37cf927ebe7555a274ac4fefeb69 + url: 'https://github.com/libretro/retroarch-joypad-autoconfig.git' + commit: 5666e46bb89caf4e9af358fdb97a2b384cb62f36 - name: common-shaders make-install-args: - PREFIX=${FLATPAK_DEST} @@ -457,22 +458,22 @@ modules: - PREFIX=${FLATPAK_DEST} sources: - type: git - url: https://github.com/libretro/slang-shaders.git - commit: 8b35477a934739b1db193f22e7057754e7a87381 + url: 'https://github.com/libretro/slang-shaders.git' + commit: 9266fa24b64b274fd429b73469ded3561de7b8f4 - name: glsl-shaders make-install-args: - PREFIX=${FLATPAK_DEST} sources: - type: git - url: https://github.com/libretro/glsl-shaders.git - commit: 799aa9e4d567db0874111d2aed9c9b9058a19641 + url: 'https://github.com/libretro/glsl-shaders.git' + commit: c26b9e1913eda8c25d6cd218818745a3b451f982 - name: common-overlays make-install-args: - PREFIX=${FLATPAK_DEST} sources: - type: git - url: https://github.com/libretro/common-overlays.git - commit: b3827a2c63834ed9e1902acc7cf9019f64771ed3 + url: 'https://github.com/libretro/common-overlays.git' + commit: 115d8670c2e032e4a41ba45f766f5cfd9dae28b8 # RetroArch - END @@ -557,13 +558,14 @@ modules: sources: - type: git url: &ppsspp-url https://github.com/hrydgard/ppsspp.git - tag: v1.16.2 - commit: 4f8db4c61728109d953650223e3146a35497ad08 + tag: v1.16.3 + commit: a9b6421dfde68be9d065b51e9d519699ce2e9053 x-checker-data: - type: anitya - project-id: 12295 - tag-template: v$version - is-main-source: true + type: json + url: https://api.github.com/repos/hrydgard/ppsspp/releases/latest + version-query: .tag_name | sub("^v"; "") + tag-query: .tag_name + timestamp-query: .published_at - name: ppsspp-localization buildsystem: simple From 7229b55eb24300c42815ab54d5d3e390aff7b019 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sat, 23 Sep 2023 20:33:40 +0200 Subject: [PATCH 085/105] Comments [skip ci] --- automation_tools/version_checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation_tools/version_checker.sh b/automation_tools/version_checker.sh index 8190637c..87011bfd 100755 --- a/automation_tools/version_checker.sh +++ b/automation_tools/version_checker.sh @@ -1,5 +1,5 @@ #!/bin/bash -# This script is used to check that the versions are correct and topping the pipeline if something is wrong. +# This script is used to check that the versions are correct and stopping the pipeline if something is wrong. # This is designed to be run on the main pipeline to check that everything is in order before building RetroDECK. source automation_tools/version_extractor.sh From 122405896e522666188e36b8510d2766635680e8 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sat, 23 Sep 2023 21:22:17 +0200 Subject: [PATCH 086/105] Repo cleanup [skip ci] --- es-configs/tools-gamelist.xml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 es-configs/tools-gamelist.xml diff --git a/es-configs/tools-gamelist.xml b/es-configs/tools-gamelist.xml deleted file mode 100644 index c1a8f052..00000000 --- a/es-configs/tools-gamelist.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - ./configurator.sh - RetroDECK Configurator - Change settings, move folders and more! - true - true - - \ No newline at end of file From 0b98367cf7a2f2c6597ea7a91151d5a62c195818 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 25 Sep 2023 14:21:45 +0200 Subject: [PATCH 087/105] PPSSPP: added RetroAchievements section in the config [skip ci] --- emu-configs/ppssppsdl/ppsspp.ini | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/emu-configs/ppssppsdl/ppsspp.ini b/emu-configs/ppssppsdl/ppsspp.ini index 66fa6b67..64135e0f 100644 --- a/emu-configs/ppssppsdl/ppsspp.ini +++ b/emu-configs/ppssppsdl/ppsspp.ini @@ -516,3 +516,19 @@ VRCameraPitch = 0 VRHeadRotationScale = 5.000000 VRHeadRotationEnabled = False VRHeadRotationSmoothing = False +[Achievements] +AchievementsEnable = False +AchievementsChallengeMode = False +AchievementsEncoreMode = False +AchievementsUnofficial = False +AchievementsLogBadMemReads = False +AchievementsUserName = +AchievementsSoundEffects = True +AchievementsUnlockAudioFile = +AchievementsLeaderboardSubmitAudioFile = +AchievementsLeaderboardTrackerPos = 3 +AchievementsLeaderboardStartedOrFailedPos = 3 +AchievementsLeaderboardSubmittedPos = 3 +AchievementsProgressPos = 3 +AchievementsChallengePos = 3 +AchievementsUnlockedPos = 4 From d2c3a9f11516663b6b20fde38ca1081d09b2c5fc Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 25 Sep 2023 14:30:36 +0200 Subject: [PATCH 088/105] RA: cores updated to 1.16.0 --- net.retrodeck.retrodeck.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index d5dad13c..22578a21 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -485,8 +485,8 @@ modules: - mv ./RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/cores/* /app/share/libretro/cores/ sources: - type: archive - url: https://buildbot.libretro.com/stable/1.15.0/linux/x86_64/RetroArch_cores.7z - sha256: 2230bc38eaf87406efd0c2b7bdd1cf9e813ba113505600f14a7ef9eb06f8c7c0 + url: https://buildbot.libretro.com/stable/1.16.0/linux/x86_64/RetroArch_cores.7z + sha256: 421c25f22dbe5d96d9ee4d3eecf25f395f60a360412dc2cf829b26bfe67869fd - name: retroarch-sameduck-core buildsystem: simple From 6088034d8b17b4cde410237e5d15c4861c9a61f0 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 25 Sep 2023 14:33:27 +0200 Subject: [PATCH 089/105] YUZU: updated to mainline 1567 --- net.retrodeck.retrodeck.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 22578a21..51dd3678 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -598,8 +598,8 @@ modules: - ln -s "${FLATPAK_DEST}/yuzu/usr/bin/yuzu" "${FLATPAK_DEST}/bin/yuzu" sources: - type: file - url: https://github.com/yuzu-emu/yuzu-mainline/releases/download/mainline-0-1522/yuzu-mainline-20230813-3ea669b08.AppImage - sha256: d1c5217f96c7ce66b6ebc8db835daad801de7e8ca7df1c35ae62920aa55c04da + url: https://github.com/yuzu-emu/yuzu-mainline/releases/download/mainline-0-1567/yuzu-mainline-20230923-ace91dd0c.AppImage + sha256: 965bdfa63e713a0672fb5a037ecb527b4860600c6a2526f7c053bfe082b5a9d8 # Yuzu - END From 2eaed3fb977326814676115a0ed9e93a441fb5ea Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 25 Sep 2023 14:35:10 +0200 Subject: [PATCH 090/105] PCSX2: updated to v1.7.5059 --- net.retrodeck.retrodeck.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 51dd3678..7371293a 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -664,8 +664,8 @@ modules: - ln -s "${FLATPAK_DEST}/pcsx2-qt/usr/bin/pcsx2-qt" "${FLATPAK_DEST}/bin/pcsx2-qt" sources: - type: file - url: https://github.com/PCSX2/pcsx2/releases/download/v1.7.4916/pcsx2-v1.7.4916-linux-appimage-x64-Qt.AppImage - sha256: 870a9d198d5f05a1ecf3e98110fe24beacf72eb45077ee31d1200c36930b3d9c + url: https://github.com/PCSX2/pcsx2/releases/download/v1.7.5059/pcsx2-v1.7.5059-linux-appimage-x64-Qt.AppImage + sha256: a51addc9bd15b77e842160acecb1f18486f8a024e5e73e8aea5de71de2b164c7 # PCSX2 - END From 278bcc0801971a27c926dc4f4e676a0ed449e851 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 25 Sep 2023 14:36:52 +0200 Subject: [PATCH 091/105] Comments --- net.retrodeck.retrodeck.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 7371293a..c2d74da5 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -945,9 +945,8 @@ modules: # RPCS3 - END - # # PRIMEHACK - START - # # https://github.com/flathub/io.github.shiiion.primehack - # # Disabled because it's overwriting Dolphin + # PRIMEHACK - START + # https://github.com/flathub/io.github.shiiion.primehack - name: primehack buildsystem: cmake-ninja From a0c733e9d1951069768519dab4bdadbb733f038e Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 25 Sep 2023 14:42:28 +0200 Subject: [PATCH 092/105] CEMU: updated to 2.0-51, glslang updated to 13.0.0 --- net.retrodeck.retrodeck.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index c2d74da5..e20a3c3d 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -217,6 +217,7 @@ modules: url: https://github.com/mikefarah/yq/releases/download/v4.33.3/yq_linux_amd64 sha256: 4ee662847c588c3ef2fec8bfb304e8739e3dbaba87ccb9a608d691c88f5b64dc + # used by: CEMU, ??? - name: glslang buildsystem: cmake-ninja config-opts: @@ -227,8 +228,8 @@ modules: - /lib/cmake sources: - type: archive - url: https://github.com/KhronosGroup/glslang/archive/12.3.1.tar.gz - sha256: a57836a583b3044087ac51bb0d5d2d803ff84591d55f89087fc29ace42a8b9a8 + url: https://github.com/KhronosGroup/glslang/archive/13.0.0.tar.gz + sha256: bcda732434f829aa74414ea0e06d329ec8ac28637c38a0de45e17c8fd25a4715 x-checker-data: type: anitya stable-only: true @@ -1017,8 +1018,8 @@ modules: - /lib/cmake sources: - type: archive - url: https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.tar.bz2 - sha256: a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6 + url: https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2 + sha256: 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e x-checker-data: type: anitya project-id: 6845 @@ -1039,8 +1040,10 @@ modules: - /lib/pkgconfig sources: - type: archive - url: https://libzip.org/download/libzip-1.10.0.tar.xz - sha256: cd2a7ac9f1fb5bfa6218272d9929955dc7237515bba6e14b5ad0e1d1e2212b43 + url: https://libzip.org/download/libzip-1.10.1.tar.xz + mirror-urls: + - https://github.com/nih-at/libzip/releases/download/v1.10.1/libzip-1.10.1.tar.xz + sha256: dc3c8d5b4c8bbd09626864f6bcf93de701540f761d76b85d7c7d710f4bd90318 x-checker-data: type: anitya project-id: 10649 @@ -1129,8 +1132,8 @@ modules: x-checker-data: type: git tag-pattern: ^v([\d.]+-\d+)$ - tag: v2.0-46 - commit: a17111e6b0e4802044c90f4bedd66478de689070 + tag: v2.0-51 + commit: 1d398551e25a35054ef51780a60756c3015ec312 - type: shell commands: - sed "s/set(EXPERIMENTAL_VERSION.*/set(EXPERIMENTAL_VERSION \"$(git describe From 9ae25fa5768a9af26b41cc93cd019de918778a13 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 25 Sep 2023 15:04:36 +0200 Subject: [PATCH 093/105] Updated 0.7.2b changelog [skip ci] --- net.retrodeck.retrodeck.appdata.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net.retrodeck.retrodeck.appdata.xml b/net.retrodeck.retrodeck.appdata.xml index e737f8f5..d8d73673 100644 --- a/net.retrodeck.retrodeck.appdata.xml +++ b/net.retrodeck.retrodeck.appdata.xml @@ -65,16 +65,17 @@ GPL-3.0 CC0-1.0 - + https://github.com/XargonWan/RetroDECK/releases/tag/0.7.2b -

    Bug fixes:

    +

    Changelog:

    • Updated ES-DE to 2.1.1
    • Redone the patches for ES-DE
    • -
    • Updated theme
    • -
    • Changelog is now scrollable
    • +
    • Updated default theme
    • +
    • Changelog is now scrollable in the Configurator
    • Added helper files in the mods folders to instruct the users on the procedures to follow
    • +
    • Updated all the updateable emulators
    From c9f0f7c2a5730b0f1989860fb017c676efb421b5 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 25 Sep 2023 15:16:49 +0200 Subject: [PATCH 094/105] Submodules update --- rd-submodules/retroarch | 2 +- rd-submodules/shared-modules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rd-submodules/retroarch b/rd-submodules/retroarch index 0b1cfb79..9dc43930 160000 --- a/rd-submodules/retroarch +++ b/rd-submodules/retroarch @@ -1 +1 @@ -Subproject commit 0b1cfb79e591e10488a3262d6b38db843c39a409 +Subproject commit 9dc439300e92338d5b2bc3fc680eedd4fe1d3b0c diff --git a/rd-submodules/shared-modules b/rd-submodules/shared-modules index a2441b96..2a35fe7d 160000 --- a/rd-submodules/shared-modules +++ b/rd-submodules/shared-modules @@ -1 +1 @@ -Subproject commit a2441b964afefd8cd1cebcdf562c7878670daf42 +Subproject commit 2a35fe7d41b991a59992a55f09d4cdd69fdf983d From fcf120cfcffab474807faa59fbbcaaacd3c0c44e Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 25 Sep 2023 15:33:23 +0200 Subject: [PATCH 095/105] Added submodules PR automator [skip ci] --- .github/workflows/submodule-update.yml | 57 ++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/submodule-update.yml diff --git a/.github/workflows/submodule-update.yml b/.github/workflows/submodule-update.yml new file mode 100644 index 00000000..af02cfd7 --- /dev/null +++ b/.github/workflows/submodule-update.yml @@ -0,0 +1,57 @@ +name: Sunday Submodule Update + +on: + # At 4:00 (CET) + schedule: + - cron: '0 2 * * 0' + workflow_dispatch: + +jobs: + update_submodules: + name: Update submodules and create PR + runs-on: ubuntu-latest + steps: + + - name: Checkout repo with submodules + uses: actions/checkout@v2 + with: + token: ${{ secrets.REPO_TOKEN }} + submodules: recursive + + - name: Fetch all remote branches + run: git fetch --all + + - name: List cooker branches by date + id: list_branches + run: | + BRANCHES=$(git for-each-ref --sort=-committerdate refs/remotes/origin/cooker* --format='%(refname)') echo “::set-output name=branches::$BRANCHES” + + - name: Select target branch + id: select_branch + run: | + TARGET_BRANCH=(echo{{ steps.list_branches.outputs.branches }} | head -n 1) + echo “::set-output name=target_branch::$TARGET_BRANCH” + git checkout $TARGET_BRANCH + echo "Working on $TARGET_BRANCH" + + - name: Update submodules with command + run: git submodule update --remote --merge --recursive + + - name: Configure Git credentials + run: | + git config --global user.name 'GitHub bot' + git config --global user.email 'bot@noreply.github.com' + + - name: Commit and push changes + run: | + git commit -am "Sunday submodule update" + git push origin HEAD:submodule-update + + - name: Create PR + uses: repo-sync/pull-request@v2 + with: + github_token: ${{ secrets.REPO_TOKEN }} + pr_title: "Sunday submodule update" + pr_body: "This PR updates the submodules to the latest commit on their remote repositories." + source_branch: "submodule-update" + destination_branch: "cooker*" From 237cb03d10176ae453b4d361b158fd269aa39c7d Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 26 Sep 2023 03:16:52 +0200 Subject: [PATCH 096/105] CEMU: rolled back to the latest version on runtime 22.08 + dependecy comments + comment fixes --- net.retrodeck.retrodeck.yml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index e20a3c3d..94e10b9a 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -67,6 +67,7 @@ cleanup-commands: modules: + # dependency of: CEMU - rd-submodules/shared-modules/libusb/libusb.json # This module is used to define the RetroDECK version @@ -119,6 +120,7 @@ modules: # mesa repo got a double certificate issue and gnutils cannot handle that so GLU download fails, # this affects even the shared-modules's glu so I have to replace it temporarly # more info there: https://gitlab.com/gnutls/gnutls/-/issues/1335 + # dependency of: CEMU - name: glu buildsystem: meson cleanup: @@ -217,7 +219,7 @@ modules: url: https://github.com/mikefarah/yq/releases/download/v4.33.3/yq_linux_amd64 sha256: 4ee662847c588c3ef2fec8bfb304e8739e3dbaba87ccb9a608d691c88f5b64dc - # used by: CEMU, ??? + # dependency of: CEMU (13.0.0) - name: glslang buildsystem: cmake-ninja config-opts: @@ -271,6 +273,7 @@ modules: - sed -i 's|-o root -g root ||' ./Makefile.gnu - sed -i 's|/usr|/app|' ./Makefile.gnu + # dependency of: CEMU - name: pugixml buildsystem: cmake-ninja config-opts: @@ -400,7 +403,7 @@ modules: - rd-submodules/retroarch/modules/libbz2/libbz2-1.0.8.json - rd-submodules/retroarch/modules/xrandr/xrandr-1.5.1.json - rd-submodules/retroarch/modules/libaio/libaio-0.3.112.json - # certificate issue, check libglu module for more info + # certificate issue, check glu module for more info #- rd-submodules/shared-modules/glu/glu-9.json - rd-submodules/shared-modules/libdecor/libdecor-0.1.1.json - name: retroarch-filers-video @@ -895,9 +898,11 @@ modules: # DO NOT UPDATE! WENT ON QT6 # https://github.com/flathub/net.rpcs3.RPCS3 - # glu issue, check libglu module for more info + # glu issue, check glu module for more info #- rd-submodules/shared-modules/glu/glu-9.json - - rd-submodules/shared-modules/glew/glew.json # RPCS3 is not using this anymore, what about the other emu? Can we remove it? + + # dependency of: CEMU + - rd-submodules/shared-modules/glew/glew.json - name: rpcs3 buildsystem: cmake-ninja @@ -1004,9 +1009,22 @@ modules: # Duckstation-AppImage - END # Cemu - START + # LATEST BUILD BEFORE RUNTIME 23.08 # https://github.com/cemu-project/Cemu/releases # https://github.com/flathub/info.cemu.Cemu + - name: hidapi + buildsystem: cmake-ninja + sources: + - type: archive + url: https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.14.0.tar.gz + sha256: a5714234abe6e1f53647dd8cba7d69f65f71c558b7896ed218864ffcf405bcbd + x-checker-data: + type: anitya + project-id: 5594 + stable-only: true + url-template: https://github.com/libusb/hidapi/archive/refs/tags/hidapi-$version.tar.gz + - name: boost buildsystem: simple build-commands: @@ -1132,8 +1150,8 @@ modules: x-checker-data: type: git tag-pattern: ^v([\d.]+-\d+)$ - tag: v2.0-51 - commit: 1d398551e25a35054ef51780a60756c3015ec312 + tag: v2.0-47 + commit: 85aa4f095b119e98620451a0c19c80f656d944a6 - type: shell commands: - sed "s/set(EXPERIMENTAL_VERSION.*/set(EXPERIMENTAL_VERSION \"$(git describe From 9376a9274ea7de3dac685de131bf601d08afb4b8 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 26 Sep 2023 08:53:18 +0200 Subject: [PATCH 097/105] Updated version notes [skip ci] --- net.retrodeck.retrodeck.appdata.xml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/net.retrodeck.retrodeck.appdata.xml b/net.retrodeck.retrodeck.appdata.xml index d8d73673..e98c4f50 100644 --- a/net.retrodeck.retrodeck.appdata.xml +++ b/net.retrodeck.retrodeck.appdata.xml @@ -65,17 +65,26 @@ GPL-3.0 CC0-1.0 - + https://github.com/XargonWan/RetroDECK/releases/tag/0.7.2b -

    Changelog:

    +

    Updates:

      -
    • Updated ES-DE to 2.1.1
    • -
    • Redone the patches for ES-DE
    • -
    • Updated default theme
    • -
    • Changelog is now scrollable in the Configurator
    • -
    • Added helper files in the mods folders to instruct the users on the procedures to follow
    • -
    • Updated all the updateable emulators
    • +
    • All Emulators, ES-DE and the included theme have been updated.
    • +
    +

    Bugfixes and other changes:

    +
      +
    • Added helper .txt files to the mod and texture pack folders.
    • +
    • The builtin changelog is now scrollable.
    • +
    • The loading bar color is after much debate once again red.
    • +
    • Gameboy Advanced and Game Gear integer scaling changes based on feedback.
    • +
    • Optimized and retooled the patching process for ES-DE.
    • +
    • Various fixes and optimizations to the RetroDECK build process.
    • +
    +

    Known issues:

    +
      +
    • PPSSPP now have Retroachievements, but it is right now not configurable in the configurator (as it works a bit different the other emulators), we hope to have a solution for it at a later date. You can still login / logout / enable hardcore mode normally from the PPSSPP interface.
    • +
    • Quitting the RetroArch GB core with the radial function makes the core swap the palette.
    From 6b4b171219b4b36fbb74537444d100ecc6152f13 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 26 Sep 2023 09:08:29 +0200 Subject: [PATCH 098/105] Described some automation scripts [skip ci] --- automation_tools/appdata_management.sh | 3 +++ automation_tools/force-update-submodules.sh | 2 +- automation_tools/version_extractor.sh | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/automation_tools/appdata_management.sh b/automation_tools/appdata_management.sh index a59fdfb9..f6cdfb19 100755 --- a/automation_tools/appdata_management.sh +++ b/automation_tools/appdata_management.sh @@ -1,5 +1,8 @@ #!/bin/bash +# THIS SCRIPT IS BROKEN HENCE DISABLED FTM +# This script is getting the latest release notes from the wiki and add them to the appdata + source automation_tools/version_extractor.sh # Fetch appdata version diff --git a/automation_tools/force-update-submodules.sh b/automation_tools/force-update-submodules.sh index c0c84f46..50c249c7 100644 --- a/automation_tools/force-update-submodules.sh +++ b/automation_tools/force-update-submodules.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Don't use this script lightly +# WARNING: DANGEROUS! Don't use this script lightly git submodule deinit --all rm rd-submodules/retroarch diff --git a/automation_tools/version_extractor.sh b/automation_tools/version_extractor.sh index f324c106..b9f679ff 100755 --- a/automation_tools/version_extractor.sh +++ b/automation_tools/version_extractor.sh @@ -1,5 +1,11 @@ #!/bin/bash +# This script is intended to gather version information from various sources: +# RetroDECK repository +# Appdata.xml file +# Manifest YAML file +# It consists of three functions, each responsible for retrieving a specific version-related data. + appdata="net.retrodeck.retrodeck.appdata.xml" manifest="net.retrodeck.retrodeck.yml" manifest_content=$(cat "$manifest") From c112b5370bfca60ae74da57bee72599b4212a2bd Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 26 Sep 2023 09:09:01 +0200 Subject: [PATCH 099/105] Outsurcing pipeline commands in bash scripts [skip ci] --- .github/workflows/cooker-selfhosted.yml | 2 +- automation_tools/cooker-flatpak-portal-add.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 automation_tools/cooker-flatpak-portal-add.sh diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 2ae40fe2..c185c4c6 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -55,7 +55,7 @@ jobs: run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" - name: "Adding flatpak portal for automated updates (cooker only)" - run: sed -i '/finish-args:/a \ \ - --talk-name=org.freedesktop.Flatpak' net.retrodeck.retrodeck.yml + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/cooker-flatpak-portal-add.sh" # - name: "Updating release notes in appdata" # run: "automation_tools/appdata_management.sh" diff --git a/automation_tools/cooker-flatpak-portal-add.sh b/automation_tools/cooker-flatpak-portal-add.sh new file mode 100644 index 00000000..c3c3557a --- /dev/null +++ b/automation_tools/cooker-flatpak-portal-add.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# COOKER ONLY +# This script is adding the update portal (permission) to the ooker flatpak. +# This is ran by the cooker pipeline. + +sed -i '/finish-args:/a \ \ - --talk-name=org.freedesktop.Flatpak' net.retrodeck.retrodeck.yml \ No newline at end of file From a193b41b126fe85a5f35ebd95e67406d2896bc9d Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 26 Sep 2023 09:10:08 +0200 Subject: [PATCH 100/105] Naming conventions [skip ci] --- .github/workflows/cooker-selfhosted.yml | 2 +- ...ooker-flatpak-portal-add.sh => cooker_flatpak_portal_add.sh} | 0 .../{force-update-submodules.sh => force_update_submodules.sh} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename automation_tools/{cooker-flatpak-portal-add.sh => cooker_flatpak_portal_add.sh} (100%) rename automation_tools/{force-update-submodules.sh => force_update_submodules.sh} (100%) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index c185c4c6..12d4512b 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -55,7 +55,7 @@ jobs: run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh" - name: "Adding flatpak portal for automated updates (cooker only)" - run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/cooker-flatpak-portal-add.sh" + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/cooker_flatpak_portal_add.sh" # - name: "Updating release notes in appdata" # run: "automation_tools/appdata_management.sh" diff --git a/automation_tools/cooker-flatpak-portal-add.sh b/automation_tools/cooker_flatpak_portal_add.sh similarity index 100% rename from automation_tools/cooker-flatpak-portal-add.sh rename to automation_tools/cooker_flatpak_portal_add.sh diff --git a/automation_tools/force-update-submodules.sh b/automation_tools/force_update_submodules.sh similarity index 100% rename from automation_tools/force-update-submodules.sh rename to automation_tools/force_update_submodules.sh From e315504be63779e465255b8de6a44c3963aaf5d5 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 26 Sep 2023 09:20:19 +0200 Subject: [PATCH 101/105] Outsurcing pipeline commands in bash scripts [skip ci] --- .github/workflows/cooker-selfhosted.yml | 39 ++-------------- .github/workflows/main-selfhosted.yml | 44 ++++--------------- automation_tools/cooker_flatpak_portal_add.sh | 0 automation_tools/flatpak_build_bundle.sh | 5 +++ .../flatpak_build_download_only.sh | 14 ++++++ automation_tools/flatpak_build_only.sh | 14 ++++++ automation_tools/force_update_submodules.sh | 0 ...ion_checker.sh => main_version_checker.sh} | 0 8 files changed, 45 insertions(+), 71 deletions(-) mode change 100644 => 100755 automation_tools/cooker_flatpak_portal_add.sh create mode 100755 automation_tools/flatpak_build_bundle.sh create mode 100755 automation_tools/flatpak_build_download_only.sh create mode 100755 automation_tools/flatpak_build_only.sh mode change 100644 => 100755 automation_tools/force_update_submodules.sh rename automation_tools/{version_checker.sh => main_version_checker.sh} (100%) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 12d4512b..fc96a040 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -65,46 +65,16 @@ jobs: - name: "Build flatpak: download only" id: "flatpak-download" - run: | - git config --global protocol.file.allow always - mkdir -vp ${GITHUB_WORKSPACE}/local - mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker - flatpak-builder --user --force-clean \ - --install-deps-from=flathub \ - --install-deps-from=flathub-beta \ - --repo=${GITHUB_WORKSPACE}/local \ - --download-only \ - ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ - net.retrodeck.retrodeck.yml + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh" continue-on-error: true # Sometimes flatpak download fails, in this case it tries a second time - name: "Build flatpak: download only (retry)" if: steps.flatpak-download.outcome == 'failure' - run: | - git config --global protocol.file.allow always - mkdir -vp ${GITHUB_WORKSPACE}/local - mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker - flatpak-builder --user --force-clean \ - --install-deps-from=flathub \ - --install-deps-from=flathub-beta \ - --repo=${GITHUB_WORKSPACE}/local \ - --download-only \ - ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ - net.retrodeck.retrodeck.yml + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh" - name: Build flatpak - run: | - git config --global protocol.file.allow always - mkdir -vp ${GITHUB_WORKSPACE}/local - mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker - flatpak-builder --user --force-clean \ - --install-deps-from=flathub \ - --install-deps-from=flathub-beta \ - --repo=${GITHUB_WORKSPACE}/local \ - --disable-download \ - ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ - net.retrodeck.retrodeck.yml + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_only.sh" - name: Create Artifact for flathub run: | @@ -115,8 +85,7 @@ jobs: continue-on-error: true - name: Create Bundle - run: | - flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK-cooker.flatpak net.retrodeck.retrodeck + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_bundle.sh" - name: Set environment variable with current branch name run: echo "GITHUB_REF_SLUG=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml index c380622f..b71961c6 100644 --- a/.github/workflows/main-selfhosted.yml +++ b/.github/workflows/main-selfhosted.yml @@ -52,50 +52,23 @@ jobs: - name: Check versions (main only) id: check_version_string - run: "automation_tools/version_checker.sh" + run: "automation_tools/main_version_checker.sh" + + - name: "[DEBUG] Outputting manifest" + run: cat net.retrodeck.retrodeck.yml - name: "Build flatpak: download only" id: "flatpak-download" - run: | - git config --global protocol.file.allow always - mkdir -vp ${GITHUB_WORKSPACE}/local - mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker - flatpak-builder --user --force-clean \ - --install-deps-from=flathub \ - --install-deps-from=flathub-beta \ - --repo=${GITHUB_WORKSPACE}/local \ - --download-only \ - ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ - net.retrodeck.retrodeck.yml + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh" continue-on-error: true # Sometimes flatpak download fails, in this case it tries a second time - name: "Build flatpak: download only (retry)" if: steps.flatpak-download.outcome == 'failure' - run: | - git config --global protocol.file.allow always - mkdir -vp ${GITHUB_WORKSPACE}/local - mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker - flatpak-builder --user --force-clean \ - --install-deps-from=flathub \ - --install-deps-from=flathub-beta \ - --repo=${GITHUB_WORKSPACE}/local \ - --download-only \ - ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ - net.retrodeck.retrodeck.yml + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh" - name: Build flatpak - run: | - git config --global protocol.file.allow always - mkdir -vp ${GITHUB_WORKSPACE}/local - mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker - flatpak-builder --user --force-clean \ - --install-deps-from=flathub \ - --install-deps-from=flathub-beta \ - --repo=${GITHUB_WORKSPACE}/local \ - --disable-download \ - ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ - net.retrodeck.retrodeck.yml + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_only.sh" - name: Create Artifact for flathub run: | @@ -106,8 +79,7 @@ jobs: continue-on-error: true - name: Create Bundle - run: | - flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK.flatpak net.retrodeck.retrodeck + run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_bundle.sh" - name: Getting version info id: version diff --git a/automation_tools/cooker_flatpak_portal_add.sh b/automation_tools/cooker_flatpak_portal_add.sh old mode 100644 new mode 100755 diff --git a/automation_tools/flatpak_build_bundle.sh b/automation_tools/flatpak_build_bundle.sh new file mode 100755 index 00000000..8c155810 --- /dev/null +++ b/automation_tools/flatpak_build_bundle.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# This is building the bundle RetroDECK.flatpak after the download and build steps are done + +flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK-cooker.flatpak net.retrodeck.retrodeck \ No newline at end of file diff --git a/automation_tools/flatpak_build_download_only.sh b/automation_tools/flatpak_build_download_only.sh new file mode 100755 index 00000000..55352780 --- /dev/null +++ b/automation_tools/flatpak_build_download_only.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# This script is downloading the needed files to prepare the manifest build + +git config --global protocol.file.allow always +mkdir -vp ${GITHUB_WORKSPACE}/local +mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker +flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --download-only \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml \ No newline at end of file diff --git a/automation_tools/flatpak_build_only.sh b/automation_tools/flatpak_build_only.sh new file mode 100755 index 00000000..d2ed3fe5 --- /dev/null +++ b/automation_tools/flatpak_build_only.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# This script is building the flatpak is the needed files are already downloaded + +git config --global protocol.file.allow always +mkdir -vp ${GITHUB_WORKSPACE}/local +mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker +flatpak-builder --user --force-clean \ + --install-deps-from=flathub \ + --install-deps-from=flathub-beta \ + --repo=${GITHUB_WORKSPACE}/local \ + --disable-download \ + ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker \ + net.retrodeck.retrodeck.yml \ No newline at end of file diff --git a/automation_tools/force_update_submodules.sh b/automation_tools/force_update_submodules.sh old mode 100644 new mode 100755 diff --git a/automation_tools/version_checker.sh b/automation_tools/main_version_checker.sh similarity index 100% rename from automation_tools/version_checker.sh rename to automation_tools/main_version_checker.sh From 80324a7c639eec7e646ddc11fb433475ff71fb0b Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 26 Sep 2023 17:20:40 +0200 Subject: [PATCH 102/105] Added logo font --- res/DREAMS.ttf | Bin 0 -> 20372 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100755 res/DREAMS.ttf diff --git a/res/DREAMS.ttf b/res/DREAMS.ttf new file mode 100755 index 0000000000000000000000000000000000000000..91e70b71abeecb145fb12117a185226aa9821f6d GIT binary patch literal 20372 zcmeHv34ByV)^F9lx4YAw&`D?OkaQrO00{v?RtO0s5CSBGB@%)OLKgNQAWOgn5EYFY zHW^XS=QmGr!EqEBW&|dJqMx4wK1Og~hVgS2m*9qCAX|6d|J1$ReVdNxd-J_F%kN94 z?yY<7y{Ar{I_K1>Q+11R#+VHUg@qMYlup7GE~anAIcQS(^op)5dnRM0#~Cvmom5d- z#QL%j+~0uvVbd#yXO5qKEw1?({I#Jivbh=b**QZd`Qq_Sc@p^D&I&?^?33enHB<56|FP2kwtp z0zm)N$UI!n#PxtB%NuW4edwCEaox_CRI}{5`Sp+fa@SUn zmaw9J`9hbivXQZg9|N{(<#lTstCwzhm$4Gy+`5GE9%UQOd=@$@Sf${9wSf;c7Nes6ICX#sQ1+4 zZUNcD7BK@W2k)sQyo6dXb_NHDDIve*_u#G~HA_{vSEinM4a>yO|1Vj8nSeib9GK3k zGz8D&H3@1xnB}|`wPy*y->JQWvs8yhC}CxxZ?V?UW~BSH^BXvyWvxn_dL5RCb1~Z+ z`X>ZZ2!(vLbHJD6TJTso~uMEK%Q`X zD$?H2A*{^0L&YyktX#Ut%6SMYm$O-UL_MB4g9LhrK0yo7N{Pxv5_D!Fk8%heQLEh} zdZ})7z7dINrh0&8qE%0)9L~x^A7iINma^XjKhI-=PO$mrCN|$v!fpv$%iasiWtGxd z#zKqONy|i5VM##>Wfk%OR&Ln9%9WMuYNdizE0fq_xsxq6>}S=6msoXZI2&d8Gy9ob z!ag?DvuBJ`Sh>-`DwIF4ROK<2YTU#s1T935E{Xbi>WQ-w=l%}$+@r+xOhEn%Q75XG zK2clf6SaZX4uXfoM}2x3ywH_FdE({&ZCR{L$d-&Fl9ZxJw*yy@b6guGNV*V7T>rqI zN0)x!wg#5jL{1-yO#jeJk8EgoVuutL4$|9Ma#lZT-vN%?S8dkF@ zczZq@#?shumd-Mum02vC<**TKB+F%^SRTt~quCf%zzW$|HjWjsp=>-WW)s+KR>Q6l zHE0mWYjIr1Zep9*&FmI-8@p9N?_jsHCUz%lW_PnKY%5^f**3O=?PT|`d)d#}E_R=I zPJfsyF6OaXJrMahmt9}^av@v7*7o|yZnnNxIAe?1GFY?aY$>~rtz@g%3buxkty#@( zU^lYs*gF6?U4v%l^pz%D!P2 znTz%C3|_}?;2WjiNoRX{1kOHqe+YP7=Y8uqJHg&$AFz+v=j=Pyp?m99@fPoC6K~?s za~Qv8d-i*-J?EZ1Jy-W6^~h9&>vm0w)6tGg*<+q(K-ov^OZGkM<_Ztzv0gai=)>^W zn}q&!`TSd?^KX&Og=ovgkb(x(^;)#-af9 zhmhI3A+;p4+aR+$Ag?wAN&SKY%0O|( zjfKtC!xIj$imC=2XI426jIECIW*1gh=K+sGc<>4yZ>|Q0r5XmD1!%Yn4;hA*B^;0k zl~-L=b>NobxC3L0tK*!`gb4?ZmscG)UL5DFuEtYFFQuS(V?&Havk5dCQ*l2?#Zpmq zU~Jq0R^8l8I4i1>oCj`cZjNh4J+$j1?D%B>&MpUx)d1iGaDWpNj__N`fefc4XB+{N zoJmg5SzU~>%|pv7swRL^XZ0}R`4H9uIaZiy2rg7=A)};sG32jU&XebYD>BZo;-RkK zAhgI}@g@!vs&E({_glJOP^|%s1TYdHJtK>c$jY>HrsD2baFLDWM4R<<&=%!SnO037Wnn~Fm`YiM4b)_TD$g%5 zO=?B)B_S_-KiM+5?NIQc3q@2I9~ZQO&aPJ1Nu;eVdJ4sA?bHd$;pGH99woccQx?|FItwh?V7Z4Zcbk9`Xb8L{`&Dekq27>?z^_MeWy%j1$(G}_wJna<=Jz>$P@HU0b*(#NqmrJFt z!x!&$9k!hBI;c!*3sbg;@?{~5qfo~L^v@&w>#51QkA^5JAxh&tNn=!`WQq>A3z-Dx z!FEWcGqXU-Cb{fOS)QH7lOUikZaa5udrf*xT}>@do4fVcS353_BT;|=@baMjxs|yN z2M(8J1nsY0n>Tvx)t2+)*FAFd%+lTNKR2#(f3&;dbj!nyMI=?K3|&gr1Xr2nIyv*^ zdv7M)68w}iQ6HJ*U6G#>)kUJZa54($s$dj&7|h<;^o$6w4{RfLwPAp!ZzqdCkIaO| ztZNn@-t-Jk!bxm#%9$P&kV+-H5c?7{hI*I<%u;Sn1sK?oWNJRTu}HqRP{^AK_95~wzdLafB1`j z_147LCv~w@M66bCRkufy;%6%M=x`{$WU|Uh#ODZM1BfLy!5*>;+y!NCB1>R=Zqt}Wr75rz z(*5)Ty{bgh3-qd|Ef=6paqzs0uPA*!yRIp(PqkWLRc(k$gpVQt(oFsk&YdJpS2p{> z^6jo6-5WZSe}eT_ruEhXsP^a+%LPbYt-c1DSo>Nfnp!1V*YKJq_II$ylDB3sn`6vX-*pb39rkvvTAai5g_S)fvV^kS^6#Z%f_@Cu3Q2}-=jwp-MB#Ly@D)p1I3}n!v z)$Wyqh-7GB;(#;>Ms0xHYI(mcYyA9i3EWvUZ=C7VZLKX@fBXEot!-(R-xbX-ayoHn zkA2d8;bc=$anng2Vma?>O)p=#bYXeAT(tJ#V{a^LIDKsIx?;&bX6|(v!)m8w$TfT4 zyU=sty}dP52iSuiqox;mY?{6W0(wGChGeg^;OiP&FzB-}Sui|N%Yor~t+7fb?o1}N z@${DvFkT?*bcgy>wHNj1PGRE{i@D9UZ-2*3Pe&?;8AiIdO4awkU1X{QFZYYnWr z2Er^jb=HEaEz8+H10a?7nFe?XvgLgHMvtnSHn;EB*#O}ym}YqCBtK!8zuajG;3LcD zJf>&pI4`W3zZ(O~-jAFbXoqsAhtZ75^u?#KMI;t{Ao@i&L#D#)({}sXKcZ~G29vDGr78edTdhC*y@oTV@!M7{xhelAThDv>Kx-AItGuZDojc$tQw*6 z3Xx1Rcy*aC8PG=u_>v}Sbrb1})*b16Nz}yqZ=B!RDDRP<$8S$(qcNs?L)YV7k9Th{ zykN-e-XP!J`FdxO64^xoWH23LC}GQjenfu*Oq;Lm$QL74!jmYIOBJJHluJ9_A;+wH zl>EESk)0nHQbbuE|0JG`(OXT;Y3fY}TPT*#tinjfX*pFd$8ebZk<{O!CF41?5Vq3B z&rQB@)^Pja`~l`Y7o$R!d9E%lF@G_9){T?HhEz^1iZRZX?7pjxCtMg%kvygJd>-}= z+Ga4jNl#zESR$O7B3!3{P69Y}ZKFAczQ#(SClF_(jy4338nh~Ta>*JD0*ZQh#8VU0 zDEPWw`LsECDw&C|6336pj!<4uUWmvZGd}T4Qd!A$xNBq7sN!iuQl}N?Ms;oQ3}?cf zX^!?cOv4>%&TxA9;#H;%9k~f5qf=5wmn0ZpYrl{WhXfuXoje?N+qVZ<%X^zL!K+6>y@q#t7#rE%5S6HjfJDB00xj4i%>$ykyot*xvS9~kOStL8WR_?b$yrmD1Z z5at~yiGe5)>pyI@1wZH+dtMAPpI678Z9&02V7&T$k7U<|oRVD(I3;^;LsZEw)0fzFa_E3;uYCE=$~{~u7F0L!6| zNYTJa@(d4+B4P$vfWzYP=fPKPj41b$B&0yV1tIT?HiVOjeAAV5leJkY{4!i^JyVRARQiSws}{zUz8)y-vb(Z!=K z?ItT+xTI2pOW7=D${~fn(N>Ne@VQh;#XAxi9?m17WRlvL8~O>s9EMz+wIq zaG2OAeJk{eg`vY!&Zt2$qjolH!7_yUY%1nb!fo0oN+A6$?~$Yjv@$Y987=6uC3K-J zqHT<5PtmK&-d>fEQ}60QF2eumJTAoAf1DjL4XXc3-XRW$8Z_LPl{3p4n?&9mTpKY z?I*h-OJ!to)C=$U)HP$y{zrBe6yEd5{yDB0n&I*rt7e#H^geJMG@&jpuWrI1kI|(8 ztcXEcKLamp2<~1vY8o(52&TFQYjq`~8>RMFY9!d^lv0B?h#vm%#a*t$=%#qNdD+EX zmh-BoNMUGg9^#;cr7{1K@o3?<{Nv1P{PV<||DJPE|G(ya{+VJ%p7yvbz7SwDui(?d z*3vYpKEB{_amjF8X|76)ss5kM?T~-q^zTap>g5Y@V<_z(O7xF~SzE6Z1VclyzFWJ|Jpe)(XQd^0{h}1>RW4|t<*E@s&Lv(;V0_3Uv zQ$%+7$O4&MXUXn4(+rY#C_tT8goyjAbIQ(hS~E)f(c|7zSg;d4uC!n4aa~8KZ+6X~ zj@tDc&-Gm#HqAKB%fxJvUx$m4Li>KxW_m%4BsQ96WE8Eh8>L>L+0`+*n18qbNKdRW z#}@_iO({_zQk@)w$DxgXsXxXnY(Fsvb`N(Qrh&?(bD~SOoL8gtM4K4(B&%Jr@X!AB zd}p=)`^Q{=@!#`5+IkF+?1^KduQU`FrWI*KPRb<)&J|}{)N4_{xi($ z{hj8XC`R<(^Em&I^Eg_}1ilKzOeSA3a-ey^>a2lhh0#w8qQFHg>;4Zlh$695Sl7@O zWhT)2ZGD*mGZlWb35a!jBDpk!pqpHvsjXA~QwNN2sWj!fC$g z1NU3fNE*;Wv{~A)0Ijc}kfL=45#_<^J;p`U4s$d3=V?591Wz`< z-hRfEelas|)F|U9<*3`#eQWn7w@EqbSh9KvP-4z3hRMOR{ctLPQ{+g(SrIq~3Y7hL zq|wAppcg*iXl!H4h{pJ%c7OrPqx+UH5fdM|ePnpy?LnL-P@_&UB#0H#It@hQJs?VQhE{ zX1_7hrScFH*kYBbvBN#ko#ZN%chLm4e2;QgI^#++%sX|e^I=Hmd+zO_GehpjRLBUd zyZ=92Tj*Oqf#PYrcKM1K5#-S?m=OT)Y8lL}tBY!A21Z>-V^iYgaH-U=v2(L@zi#nN z>o(U?*Wu1Sh6~+a>lV%&lug|o|uS-F^? zT;A{s!LU^eJ!&-Mq02FO6v6Gk&IDxj0!|Fpn&G?~3Bt9|lO)_bkp-tKd z9oI)PghGg^J2gip_oO@x5$rQksXV>=SCm|bUFojF-3R4q-3JZ3p}*-t4@om!Pg8Oo zcF)EA2c*T6up;hJ_goHd5_YUYx!Zi)xEER;s@V+0(;;W-WORjjxv~W-Ek9GAW&deD zZkd7@t>;+<)+g&OD5@^7)3U)>-)8xe@2@5Yu z?JEtmq2P=6sztl&T%Spp2t|zEbVPdKN;daO!FsInIDxW(!;m6yT(dzy|9r=?jo%&n>G%Wbrp2NQ5t zt1C)9%doU~01f(!z3Z+z-V$*E@3L}gw`!DmDX>i6N?#D|TheM1^8}=HwoFC(i+ANJ z;ib_#hVqzC#oE-)9M4iJF>PLC97dE$_U%;WVwCwJ%CxZ@eLa11{NTR{ElgI5ERzLB z!~!Ei`3N#1!iK0aOq0-y$w$Dly>Ge2^))#Ho;B^4lD+E+d}aFaR+}q;GNor2Xla|K z9yDtpzesppUvrE5Tggs%-=%|OC+~x9sr>ugFco#lV19Ug%l}9e#XPUC<*DoSmDEilu2gMPsxk&6&GFUL^G;$VOk|ZYbGE3^&Ra z;(oJ#J2w+1(bm1v>RUFOo?+KWE#!m5YC5f{b);Hp^^sWLtdVL_jGK3YsuFcAGZCgz zF4i=2x^5;yEwYi;FmI%r5CpM=S*&DqeMWCLdjy7bo8xOeW_=HQjrL!08lYVP<}rl2 zyb!g^Q)oFAT$C0}BB?nzJ#bc>HW(Ov;__|UI<61od%Bm&ySkUb2ChVYrM#`<18rqj zzWYAz{)P@Md?M!!@Edu9;XgpHg0HE*v&=BB#|qEk_?~b&Tc%mT{wSEdLk_Qp&KdYF zlFpOxB_hf9XvlQo83=q|tgxaR)8QJ?*#yU$&Z7Z0i8_qYa!1&7yfhX{K?-pd6hbU5 zP?u(kRT5{F*(J z;)dk*Gp_HKJ0!MmYHmWu9SNgS`|@E*{uR~ zmC`-HydJMtb{?zTvu1qpnmscO<0JjUcm2u+?R%%z&iX*ee?{;shA%<4k=eaetJBf4 zms+t1QcC9E@ORzw-LJa;;GPeHZ{XLv?-n>xgI`vbin@FHSu7J1qPnCkD9M|2! zFH6lX`rru?8t^=QA1tZ^ol%y$N4oBoa_9xMT>@#OaTQ55(a6A2b)lrQg8v&I$n*HW zxl`RX>lF9h{Cd|7z=3Z?#W!u%MtnVvaa5Sh<|}_?DZRkw8Jl~B*Bh)pcxap#Pn{u} zo#+Kmtuk9YPch`rMY&jpt1I_%xToC9;hu6YhimxV-=X`;6!?Qx{O%K?+&wTB?|b1A zo3|o`_|P)}@Q=K3nbiXW_~8Bm@QXTlt-HWWf2)9p2GFmE>*?3S_4Kz2zNvWX@cldS zjq0U;UeC8LMY;G!QSfcQmmWQQo^fWc@OtI_Ug5RM00D`6GC5@~1u@D1RzE zQ2z3@`aI?3yDB#-e4eqqS9rbhwhm7GRi7vMBfH>}KNVi9BzT`!uiThp!0*4L~TL&t_ThaL(W9d>)z*S68Nm%|5yH-+zykRl2qnj(%y zhD1(`+!Oh7*8*U+aC8|+!JvJ<6ek+E$-d8KgWF?*Xb}i!X5n_sg4nj zBF8kxY{w$UYRAovX2<=Gy^j5k7RRfOHys~2&N(i|OYzqD==j9=wD`REiSaYyYvPy2 zuZzDeetZ0b@lV7bjDI2iHNmYAc0c+R`V${PXn6@eG(K7ua2elw;Nw-1R{%}d@&-Uh zXn8P`TqVX8Gaw<@JwnY(Sl?Qy<>_1h`C6Ww!Cz>313un+PRknsKV3Xy!nmmwGZrph zyR3fotc9!BG+ehLAtNn4Jv~2Py_cVvo-rza;*?pX!$xFet1!O@RS>q5m;ncH9Ktsh z$SuT2`)l#Jem%Bbn1w6)Sib=u?yq18a0Sy)G5Y1>r++UWF`IPU9|ibCY-=$Kl^ceN zXJA_f{c}HzQU4UUNU=%$^*j`?Q;m89y%J;>z5$%hEUeofgteeUus6q0c(cj)8Zr}B zB?AOxvt0PG!*qLTq@xm%aIa(FsoUYiIuOB##mCS#%z^jAcXhMH{u&eE@0OqvlhNN# z0c&V)kaFw@G6PJSiPoZBLaMNX$2Hg&V=g>_M6pLmIQE?w2dSVh-i`PK(F&$n;9-!n zRlvq#Pl`H7QZx3}*p7WA-pAesn9ESv`kd|Y}6caDpEUkn_I zgy_rxPv;>$1fI;okFMv499`*u_#)E%HqqAodp6v?g>ty=>plgn>XD%MTGD-%MIhxP zjX_$Cv<9gWX)V$^q-{vsk#->6gR~O~yBxSbXHiJQk+P5g=?P&`NW+n`kWdn!^hIU_ zfEVG%A@AeyWHEjmWj6rx zYVbt?XLjN!K_{s^vaBXNN98G^JXw?{LvN!1kH(LSvK3LbQIxGf_lM(d7KNCh`($^C z4q4D43px}*ha%`O3OW=)ha~8b1s$-;(qyR$Z-+py4dCR1NDm`Df%G)eL1_72ZEu+t z$nUGr*EgZhA3-0_vGdqtrW@8Nh-3XYkL3w`5Fg4jc`h&D#e6a^=d<`6K94WqE714e z#BbqEd@KJM-@|{-ALCE)1N;y_%3tOu`0M;_{vrREf6Bk)-|=?tmK4b%g-OwpLrP>^ ze$BE1$7nk82St9Y4-z!Mf?i8KN Date: Tue, 26 Sep 2023 17:21:00 +0200 Subject: [PATCH 103/105] Addex Japanese extra splash --- res/extra_splashes/japanese-retoro-dekku.svg | 216 +++++++++++++++++++ 1 file changed, 216 insertions(+) create mode 100755 res/extra_splashes/japanese-retoro-dekku.svg diff --git a/res/extra_splashes/japanese-retoro-dekku.svg b/res/extra_splashes/japanese-retoro-dekku.svg new file mode 100755 index 00000000..af152d5d --- /dev/null +++ b/res/extra_splashes/japanese-retoro-dekku.svg @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + テイキョウ: + + + + レトロ + ック + + + + + + + + From 7f6468252d43019aab3f67499242b4de3d98015f Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 26 Sep 2023 18:00:11 +0200 Subject: [PATCH 104/105] Updated version notes [skip ci] --- net.retrodeck.retrodeck.appdata.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/net.retrodeck.retrodeck.appdata.xml b/net.retrodeck.retrodeck.appdata.xml index e98c4f50..50c4a3e7 100644 --- a/net.retrodeck.retrodeck.appdata.xml +++ b/net.retrodeck.retrodeck.appdata.xml @@ -85,6 +85,7 @@
    • PPSSPP now have Retroachievements, but it is right now not configurable in the configurator (as it works a bit different the other emulators), we hope to have a solution for it at a later date. You can still login / logout / enable hardcore mode normally from the PPSSPP interface.
    • Quitting the RetroArch GB core with the radial function makes the core swap the palette.
    • +
    • Borders sometimes are disappearing, a possible workaround is to reset RetroArch from the configurator.
    From cf2acd3e2cd937fc91bfa971bf543c1850ab1fcd Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 27 Sep 2023 15:46:50 +0200 Subject: [PATCH 105/105] Fixed ra cores sha --- net.retrodeck.retrodeck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 94e10b9a..f13a5980 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -490,7 +490,7 @@ modules: sources: - type: archive url: https://buildbot.libretro.com/stable/1.16.0/linux/x86_64/RetroArch_cores.7z - sha256: 421c25f22dbe5d96d9ee4d3eecf25f395f60a360412dc2cf829b26bfe67869fd + sha256: e4f7c9843ba827812088b3d1c7d745e802d7691180eb789ba5a37732461f2a06 - name: retroarch-sameduck-core buildsystem: simple