Skip to content

Commit

Permalink
ci: snap: move version setting to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
yktoo committed Oct 2, 2023
1 parent 34c7293 commit 284578f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,8 @@ parts:
source: resources/metainfo
parse-info:
- com.yktoo.ymuse.metainfo.xml

ymuse:
plugin: go
source: .
build-snaps:
- go/latest/stable
build-packages:
- git
- gcc
- gettext

override-pull: |
craftctl default
Expand All @@ -43,6 +35,16 @@ parts:
craftctl set version="$version"
craftctl set grade="$(echo $version | grep -q '-' && echo devel || echo stable)"
ymuse:
plugin: go
source: .
build-snaps:
- go/latest/stable
build-packages:
- git
- gcc
- gettext

override-build: |
set -eu
go generate
Expand Down

0 comments on commit 284578f

Please sign in to comment.