From ddc2631bb0913d2e448404c3b2d5b4a51243cf24 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Tue, 23 Jun 2020 18:21:22 +0100 Subject: [PATCH] Customise the snap version define directly --- snap/snapcraft.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 4b669b0..bac425d 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -3,7 +3,6 @@ title: Rove base: core20 license: MIT architectures: [ amd64 ] -version: git # TODO icon: summary: An asynchronous nomadic game about exploring as part of a loose community. # TODO: Add more to the description @@ -11,6 +10,7 @@ description: | An asynchronous nomadic game about exploring as part of a loose community. grade: devel # Upgrade to 'stable' when ready confinement: strict +adopt-info: go-rove apps: rove: @@ -40,5 +40,8 @@ parts: source: . build-packages: - gcc-multilib + override-pull: | + snapcraftctl pull + snapcraftctl set-version $(git describe --always --long --dirty --tags) # TODO: Add the version into the build itself (currently using ldflags) # TODO: Server needs /usr/share/dict/words