From e40c022a0fd1909bb98eb4ebd34e08b49af19688 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 16 Apr 2024 15:11:10 +1000 Subject: [PATCH] CI: Fix Flathub update script --- scripts/flatpak/update-flathub.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/flatpak/update-flathub.sh b/scripts/flatpak/update-flathub.sh index 7369ae074..12e9336a7 100755 --- a/scripts/flatpak/update-flathub.sh +++ b/scripts/flatpak/update-flathub.sh @@ -21,12 +21,16 @@ echo "Updating files in ${OUTDIR}..." mkdir -p "${OUTDIR}" rm -fr "${OUTDIR}/modules" cp -a "${SCRIPTDIR}/modules" "${OUTDIR}/modules" +cp "${SCRIPTDIR}/../shaderc-changes.patch" "${OUTDIR}/modules" echo "Generate AppStream XML..." "${SCRIPTDIR}/../../scripts/generate-metainfo.sh" "${OUTDIR}" echo "Patching Manifest Sources..." -jq ".modules[2].sources = ["\ +jq ".sources[4] = {\"type\": \"patch\", \"path\": \"shaderc-changes.patch\"}" \ +"${SCRIPTDIR}/modules/22-shaderc.json" > "${OUTDIR}/modules/22-shaderc.json" + +jq ".modules[3].sources = ["\ "{\"type\": \"git\", \"url\": \"https://github.com/stenzek/duckstation.git\", \"commit\": \"${GIT_HASH}\", \"disable-shallow-clone\": true},"\ "{\"type\": \"file\", \"path\": \"org.duckstation.DuckStation.metainfo.xml\", \"dest\": \"scripts/flatpak\"}]" \ "${SCRIPTDIR}/${APPID}.json" > "${OUTMANIFEST}"