mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix appdata
Use correct format, create script to update the version and release date in the appdata. [Dirk Hohndel: call said script during the build process] Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
39b52d8abf
commit
bcf568586d
3 changed files with 45 additions and 27 deletions
4
scripts/add-version-to-appdata.sh
Executable file
4
scripts/add-version-to-appdata.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
version=$(git describe --abbrev=12)
|
||||
date=$(git log -1 --format="%at" | xargs -I{} date -d @{} +%Y-%m-%d)
|
||||
sed -e "s|<release version=\"\" date=\"\" />|<release version=\"$version\" date=\"$date\" />|" -i appdata/subsurface.appdata.xml
|
Loading…
Add table
Add a link
Reference in a new issue