소스 검색

Try to fix adopt-info.
https://forum.snapcraft.io/t/dirty-snap-release/12975/8

Thanks to ogra at Snapcraft forum.

Lauri Ojansivu 5 년 전
부모
커밋
be5f435bc5
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      snapcraft.yaml

+ 6 - 1
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