From ce010a656022f4403dcbc3553d82f9bf641c9948 Mon Sep 17 00:00:00 2001 From: Carles Pastor Date: Thu, 12 Sep 2024 20:51:31 +0200 Subject: [PATCH] Metainfo -- remove hash from version string git describe --tags appends the short hash, this cleans up the output so that we only print the actual version string. --- Flatpak/fill_release_node.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flatpak/fill_release_node.sh b/Flatpak/fill_release_node.sh index f211769a7c..43597fa920 100755 --- a/Flatpak/fill_release_node.sh +++ b/Flatpak/fill_release_node.sh @@ -2,7 +2,7 @@ DATE=$(git log -1 --pretty=%cd --date=iso8601 --date=format:'%Y-%m-%d') sed -i -e "s/@DATE_PLACEHOLDER/${DATE}/" org.DolphinEmu.dolphin-emu.metainfo.xml -VERSION=$(git describe --tags) +VERSION=$(git describe --tags | sed -E 's/^([0-9]+-[0-9]+).*/\1/') sed -i -e "s/@VERSION_PLACEHOLDER/${VERSION}/" org.DolphinEmu.dolphin-emu.metainfo.xml