浏览代码

Fix dirty snap release.
https://stackoverflow.com/questions/16035240/why-is-git-describe-dirty-adding-a-dirty-suffix-when-describing-a-clean-ch
https://forum.snapcraft.io/t/dirty-snap-release/12975

Thanks to xet7.

Lauri Ojansivu 5 年之前
父节点
当前提交
007c064672
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      snapcraft.yaml

+ 1 - 1
snapcraft.yaml

@@ -1,6 +1,6 @@
 name: wekan
 version: 0
-version-script: git describe --dirty --tags |  cut -c 2-
+version-script: git update-index --refresh && git describe --dirty --tags |  cut -c 2-
 summary: The open-source kanban
 description: |
    Wekan is an open-source and collaborative kanban board application.