Fix Snap adopt-info.

https://forum.snapcraft.io/t/dirty-snap-release/12975/12?u=xet7

Thanks to popey at Snapcraft forum.
This commit is contained in:
Lauri Ojansivu 2019-08-29 16:37:03 +03:00
parent 9bc8040634
commit 79d4cd83b1

View file

@ -1,6 +1,6 @@
name: wekan name: wekan
version: 0 version: 0
adopt-info: mypart adopt-info: wekan
summary: The Open-Source kanban summary: The Open-Source kanban
description: | description: |
Wekan is an open-source and collaborative kanban board application. Wekan is an open-source and collaborative kanban board application.
@ -63,12 +63,6 @@ apps:
command: mongodb-restore command: mongodb-restore
plugs: [network, network-bind] plugs: [network, network-bind]
part:
mypart:
override-build: |
snapcraftctl set-version "$(git describe --dirty --tags | cut -c 2-)"
snapcraftctl build
parts: parts:
mongodb: mongodb:
source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.2.22.tgz 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 rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/node-gyp/node_modules/tar/lib/.mkdir.js.swp
# Meteor 1.8.x additional .swp remove # 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 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: organize:
README: README.wekan README: README.wekan
prime: prime: