diff --git a/.goreleaser.yml b/.goreleaser.yml index be857b3..729c127 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,8 +25,11 @@ builds: archives: - name_template: >- {{- .ProjectName }}_ - {{- title .Os }}_ - {{- if eq .Arch "amd64" }}x86_64 + {{- .Version }}_ + {{- if eq .Os "Linux" }}linux_ + {{- else if eq .Os "Darwin" }}macos_ + {{- else }}{{ .Os }}{{ end }} + {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end -}}