Skip to content

Commit e96746d

Browse files
committed
Fix goreleaser for latest versions
1 parent 331e8f0 commit e96746d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.goreleaser.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,13 @@ builds:
7676
- amd64
7777
- 386
7878
archives:
79-
- replacements:
80-
darwin: mac-os
81-
linux: linux
82-
windows: windows
83-
386: i386
84-
amd64: x86_64
79+
- name_template: >-
80+
{{- .ProjectName }}_
81+
{{- if eq .Arch "amd64" }}x86_64
82+
{{- else if eq .Arch "386" }}i386
83+
{{- else if eq .Arch "darwin" }}macos
84+
{{- else }}{{ .Arch }}{{ end }}
85+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
8586
format_overrides:
8687
- goos: windows
8788
format: zip

0 commit comments

Comments
 (0)