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.
This commit is contained in:
Carles Pastor 2024-09-12 20:51:31 +02:00
parent ef512aae6d
commit ce010a6560
1 changed files with 1 additions and 1 deletions

View File

@ -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