From 554a5eaab2177397ce78cb73e4ababdc093d4968 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sun, 12 Nov 2023 16:33:23 +0100 Subject: [PATCH] re-fix flatpak metainfo --- ...> com.blitterstudio.amiberry.metainfo.xml} | 0 flatpak/generate-metainfo.sh | 32 ------------------- 2 files changed, 32 deletions(-) rename flatpak/{com.blitterstudio.amiberry.metainfo.xml.in => com.blitterstudio.amiberry.metainfo.xml} (100%) delete mode 100644 flatpak/generate-metainfo.sh diff --git a/flatpak/com.blitterstudio.amiberry.metainfo.xml.in b/flatpak/com.blitterstudio.amiberry.metainfo.xml similarity index 100% rename from flatpak/com.blitterstudio.amiberry.metainfo.xml.in rename to flatpak/com.blitterstudio.amiberry.metainfo.xml diff --git a/flatpak/generate-metainfo.sh b/flatpak/generate-metainfo.sh deleted file mode 100644 index 8467a8c81..000000000 --- a/flatpak/generate-metainfo.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -SCRIPTDIR=$(realpath $(dirname "${BASH_SOURCE[0]}")) - -if [[ $# -lt 1 ]]; then - echo "Output directory must be provided as a parameter" - exit 1 -fi - -APPID="com.blitterstudio.amiberry" -OUTDIR=$(realpath "$1") -OUTFILE="${OUTDIR}/${APPID}.metainfo.xml" - -pushd "${SCRIPTDIR}" >/dev/null || exit -GIT_DATE=$(git log -1 --pretty=%cd --date=short) -GIT_HASH=$(git rev-parse HEAD) -GIT_VERSION=$(git describe --dirty | tr -d '\r\n') -if [[ "${GIT_VERSION}" == "" ]]; then - GIT_VERSION=$(git rev-parse HEAD) -fi - -popd >/dev/null || exit - -echo "GIT_DATE: ${GIT_DATE}" -echo "GIT_VERSION: ${GIT_VERSION}" -echo "GIT_HASH: ${GIT_HASH}" - -cp "${SCRIPTDIR}/${APPID}.metainfo.xml.in" "${OUTFILE}" - -sed -i -e "s/@GIT_VERSION@/${GIT_VERSION}/" "${OUTFILE}" -sed -i -e "s/@GIT_DATE@/${GIT_DATE}/" "${OUTFILE}" -sed -i -e "s/@GIT_HASH@/${GIT_HASH}/" "${OUTFILE}" \ No newline at end of file