diff --git a/.goreleaser.yml b/.goreleaser.yml index a99469d..f6c6e97 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -33,20 +33,23 @@ archives: - id: non-windows-archive builds: - non-windows-build - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - replacements: - darwin: Darwin - linux: Linux - 386: i386 - amd64: x86_64 + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} - id: windows-archive builds: - windows-build - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - replacements: - 386: i386 - amd64: x86_64 - windows: Windows + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} checksum: name_template: '{{ .ProjectName }}_checksums.txt'