From d95f0084d42d34bfb8d2b48d1cf0abc84946d49c Mon Sep 17 00:00:00 2001
From: XargonWan <XargonWan@gmail.com>
Date: Wed, 21 Aug 2024 16:02:02 +0900
Subject: [PATCH] SHADPS4: pointing to the latest release as the workflow
 cannot be reached by a non authorized user

---
 automation_tools/automation_task_list.cfg | 1 +
 net.retrodeck.retrodeck.yml               | 7 +++----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg
index 3f70fe7e..bfe81617 100644
--- a/automation_tools/automation_task_list.cfg
+++ b/automation_tools/automation_task_list.cfg
@@ -24,6 +24,7 @@ hash^RETRODECKMELONDSLATEST^https://github.com/RetroDECK/net.kuribo64.melonDS/re
 hash^RETRODECKSOLARUSLATEST^https://github.com/RetroDECK/org.solarus_games.solarus.Launcher/releases/latest/download/RetroDECK-solarus-Artifact.tar.gz
 hash^RETRODECKGZDOOMLATEST^https://github.com/RetroDECK/org.zdoom.GZDoom/releases/latest/download/RetroDECK-gzdoom-Artifact.tar.gz
 hash^RETRODECKMAMELATEST^https://github.com/RetroDECK/MAME/releases/latest/download/RetroDECK-MAME-Artifact.tar.gz
+hash^RETRODECKSHADPS4LATESTSTABLE^https://github.com/shadps4-emu/shadPS4/releases/latest/download/shadps4-linux-qt.zip
 
 #This will replace RETRODECKSHADPS4LATESTURL with the URL of the latest artifact and RETRODECKSHADPS4LATESTSHA with its SHA256 hash.
 latestghaartifact^RETRODECKSHADPS4LATESTURL^RETRODECKSHADPS4LATESTSHA^https://github.com/shadps4-emu/shadPS4/actions/workflows/linux-qt.yml^shadps4-linux-qt
diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml
index 459a43b6..58780f41 100644
--- a/net.retrodeck.retrodeck.yml
+++ b/net.retrodeck.retrodeck.yml
@@ -529,16 +529,15 @@ modules:
   - name: shadps4
     buildsystem: simple
     build-commands:
-      - unzip shadps4-linux-qt.zip
       - chmod +x *.AppImage
       - ./*.AppImage --appimage-extract
       - mkdir -p "${FLATPAK_DEST}/retrodeck/tmplib" "${FLATPAK_DEST}/retrodeck/tmplib/debug"
       - mv "squashfs-root/usr/lib/"* "${FLATPAK_DEST}/retrodeck/tmplib"
       - cp -r squashfs-root/usr/* "${FLATPAK_DEST}/"
     sources:
-      - type: file
-        url: RETRODECKSHADPS4LATESTURL
-        sha256: RETRODECKSHADPS4LATESTSHA
+      - type: archive
+        url: https://github.com/shadps4-emu/shadPS4/releases/latest/download/shadps4-linux-qt.zip
+        sha256: RETRODECKSHADPS4LATESTSTABLE
 
   # ES-DE