From be5f435bc5f500b24bc838ac1dc8bf3bb9a33a22 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 29 Aug 2019 16:15:57 +0300 Subject: Try to fix adopt-info. https://forum.snapcraft.io/t/dirty-snap-release/12975/8 Thanks to ogra at Snapcraft forum. --- snapcraft.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index beef4a85..be35b3fc 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,6 +1,6 @@ name: wekan version: 0 -adopt-info: snapcraftctl set-version $(git describe --dirty --tags | cut -c 2-) +adopt-info: mypart summary: The Open-Source kanban description: | Wekan is an open-source and collaborative kanban board application. @@ -226,6 +226,11 @@ parts: prime: - -lib/node_modules/node-pre-gyp/node_modules/tar/lib/.unpack.js.swp + mypart: + override-build: | + snapcraftctl set-version "$(git describe --dirty --tags | cut -c 2-)" + snapcraftctl build + helpers: source: snap-src plugin: dump -- cgit v1.2.3-1-g7c22