Skip to content

Commit

Permalink
Update snapcraft.yaml to auto-set version and grade values with scrip…
Browse files Browse the repository at this point in the history
…tlet
  • Loading branch information
jwrober authored and lmoureaux committed Sep 27, 2023
1 parent d32d5b2 commit 2838940
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ icon: snap/local/freeciv21-client.png
parts:
freeciv21:
override-pull: |
snapcraftctl pull
snapcraftctl set-version `sed -n '2p' snap/local/AutoRevision.txt`
snapcraftctl set-grade "devel"
craftctl default
craftctl set version=`sed -n '2p' ./cmake/AutoRevision.txt | cut -c2-`
craftctl set grade=`case $(sed -n '2p' ./cmake/AutoRevision.txt | cut -c2-) in *-alpha.*) echo devel; ;; *-beta.*) echo devel; ;; *-rc.*) echo candidate; ;; *-patch.*) echo stable; ;; *) echo stable; ;; esac`
plugin: cmake
source: https://github.com/longturn/freeciv21.git
source-type: git
Expand Down

0 comments on commit 2838940

Please sign in to comment.