Append commit abbreviation to the snap version for non-release builds

This commit is contained in:
Lee Miller 2023-03-10 05:36:30 +02:00
parent e571ba8a51
commit aaaac0f034
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -28,7 +28,7 @@ parts:
source: https://github.com/Bitmessage/PyBitmessage.git
override-pull: |
snapcraftctl pull
snapcraftctl set-version $(git describe --tags --abbrev=0 | tr -d v)
snapcraftctl set-version $(git describe --tags | cut -d- -f1,3 | tr -d v)
plugin: python
python-version: python2
build-packages: