Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
build(snap): use git tag as snap version (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
peakji authored Apr 19, 2023
1 parent 314b4f9 commit 56bad34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ parts:
python-requirements: [requirements.txt]
override-pull: |
snapcraftctl pull
version="$(git describe --always --tags| sed -e 's/^v//;s/-/+git/;y/-/./')"
[ -n "$(echo $version | grep "+git")" ] && grade=devel || grade=stable
snapcraftctl set-version "$version"
snapcraftctl set-version "$(git describe --tags --abbrev=0)"
snapcraftctl set-grade "$grade"
launcher:
Expand Down

0 comments on commit 56bad34

Please sign in to comment.