瀏覽代碼

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

Thanks to popey at Snapcraft forum.

Lauri Ojansivu 5 年之前
父節點
當前提交
79d4cd83b1
共有 1 個文件被更改,包括 4 次插入7 次删除
  1. 4 7
      snapcraft.yaml

+ 4 - 7
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: