浏览代码

修复 goreleaser 提示的问题

Signed-off-by: allan716 <[email protected]>
allan716 2 年之前
父节点
当前提交
04c2b2f0e3
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. 7 6
      .goreleaser-ChineseSubFinder.yml

+ 7 - 6
.goreleaser-ChineseSubFinder.yml

@@ -72,12 +72,13 @@ builds:
 
 archives:
   - id: archive
-    name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
-    replacements:
-      darwin: Darwin
-      linux: Linux
-      windows: Windows
-      amd64: x86_64
+    name_template: >-
+      {{- .ProjectName }}_
+      {{- title .Os }}_
+      {{- if eq .Arch "amd64" }}x86_64
+      {{- else if eq .Arch "386" }}i386
+      {{- else }}{{ .Arch }}{{ end }}_
+      {{- .Version }}
 checksum:
   name_template: "checksums.txt"
 snapshot: