1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 10:00:48 +00:00

fix snapcraft version

This commit is contained in:
deadc0de6
2023-04-23 08:14:09 +02:00
parent d70c5c8327
commit 4f4a78b102
2 changed files with 6 additions and 3 deletions

View File

@@ -40,4 +40,7 @@ parts:
plugin: nil
override-build: |
VERSION=$(git describe --abbrev=0 --tags | sed 's/^v//g')
if [ -z ${VERSION} ]; then
VERSION=$(cat dotdrop/version.py | grep version | sed 's/^.*= .\(.*\).$/\1/g')
fi
snapcraftctl set-version "${VERSION}"