diff --git a/.goreleaser.yml b/.goreleaser.yml index 7bd4ce08..ba3db26e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -23,12 +23,15 @@ builds: goarch: [amd64, 386] archives: - - replacements: - darwin: macos - linux: linux - windows: windows - 386: i386 - amd64: x86_64 + - name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else if eq .Arch "windows" }}windows + {{- else if eq .Arch "linux" }}linux + {{- else if eq .Arch "darwin" }}macos + {{- else }}{{ .Arch }}{{ end }} format_overrides: - goos: windows format: zip