From 7066eea7c42e33364b37739864646f273477b41e Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 14 May 2024 18:49:14 +1000 Subject: [PATCH] Scripts: Remove now-unused file --- scripts/flatpak/update-flathub.sh | 36 ------------------------------- 1 file changed, 36 deletions(-) delete mode 100755 scripts/flatpak/update-flathub.sh diff --git a/scripts/flatpak/update-flathub.sh b/scripts/flatpak/update-flathub.sh deleted file mode 100755 index 12e9336a7..000000000 --- a/scripts/flatpak/update-flathub.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -APPID=org.duckstation.DuckStation -SCRIPTDIR=$(realpath $(dirname "${BASH_SOURCE[0]}")) - -if [[ $# -lt 1 ]]; then - echo "Output directory must be provided as a parameter" - exit 1 -fi - -OUTDIR=$(realpath "$1") -OUTMANIFEST="${OUTDIR}/${APPID}.json" - -echo -n "Get revision: " -pushd "${SCRIPTDIR}" >/dev/null -GIT_HASH=$(git rev-parse HEAD) -popd >/dev/null -echo "${GIT_HASH}" - -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 ".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}"