Skip to content

Commit

Permalink
Set snap grade according to version (#597)
Browse files Browse the repository at this point in the history
Cherry-pick 417fed0
  • Loading branch information
damonbarry authored Mar 14, 2024
1 parent 657b163 commit 604f83f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ description: |
license: MIT

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict
adopt-info: iot-identity-services

parts:
rust-toolchain:
Expand Down Expand Up @@ -61,6 +61,13 @@ parts:
- libtss2-sys1
- libtss2-tctildr0
override-build: |
# if version contains substring "dev" set grade to devel, else stable
SC_VERSION="$(craftctl get version)"
if test "${SC_VERSION#*dev}" != "$SC_VERSION" ; then
craftctl set grade=devel
else
craftctl set grade=stable
fi
contrib/third-party-notices.sh > THIRD-PARTY-NOTICES
make install-deb \
ARCH=$CRAFT_ARCH_BUILD_FOR \
Expand Down

0 comments on commit 604f83f

Please sign in to comment.