Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(goreleaser): update archives name_template

LinkinStars3c08f31e077a
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index cf61b678..7daa1c71 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -37,11 +37,12 @@ builds:
archives:
- - replacements:
- darwin: macOS
- amd64: x86_64
- linux: Linux
- windows: Windows
+ - name_template: >-
+ {{ .ProjectName }}_
+ {{- title .Os }}_
+ {{- if eq .Arch "amd64" }}x86_64
+ {{- else if eq .Arch "386" }}i386
+ {{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot: