2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Fix versioning in snap

This commit is contained in:
Eric Kotato
2024-07-01 19:31:03 +03:00
parent 1b26448ae0
commit fceaabcff2

View File

@@ -135,8 +135,8 @@ parts:
override-pull: |
craftctl default
version="$(git describe --tags | sed -r 's,^k([0-9]\.[0-9]),\1,')"
snapcraftctl set version "$version"
version="$(git describe --tags --always | sed -r 's,^k([0-9]\.[0-9]),\1,')"
craftctl set version="$version"
sed -i 's|^Icon=kotatogram$|Icon=${SNAP}/meta/gui/icon.png|g' lib/xdg/io.github.kotatogram.desktop
override-build: |