From 79d4cd83b1fa83bb814230683b7449ed7f3e1ede Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 29 Aug 2019 16:37:03 +0300 Subject: [PATCH] Fix Snap adopt-info. https://forum.snapcraft.io/t/dirty-snap-release/12975/12?u=xet7 Thanks to popey at Snapcraft forum. --- snapcraft.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 0f3189923..411717a1e 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,6 +1,6 @@ name: wekan version: 0 -adopt-info: mypart +adopt-info: wekan summary: The Open-Source kanban description: | Wekan is an open-source and collaborative kanban board application. @@ -63,12 +63,6 @@ apps: command: mongodb-restore plugs: [network, network-bind] -part: - mypart: - override-build: | - snapcraftctl set-version "$(git describe --dirty --tags | cut -c 2-)" - snapcraftctl build - parts: mongodb: source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.2.22.tgz @@ -227,6 +221,9 @@ parts: rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/node-gyp/node_modules/tar/lib/.mkdir.js.swp # Meteor 1.8.x additional .swp remove rm -f $SNAPCRAFT_PART_INSTALL/programs/server/node_modules/node-pre-gyp/node_modules/tar/lib/.mkdir.js.swp + # Wekan version + snapcraftctl set-version "$(git describe --dirty --tags | cut -c 2-)" + snapcraftctl build organize: README: README.wekan prime: