Skip to content

Commit a91997c

Browse files
committed
Removed deprecated replacements field from goreleaser
1 parent 06bb2d7 commit a91997c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.goreleaser.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ builds:
1515
env:
1616
- CGO_ENABLED=0
1717
archives:
18-
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
19-
replacements:
20-
darwin: darwin
21-
linux: linux
22-
windows: windows
23-
386: i386
24-
amd64: x86_64
18+
- name_template: >-
19+
{{- .ProjectName }}_
20+
{{- title .Os }}_
21+
{{- if eq .Arch "amd64" }}x86_64
22+
{{- else if eq .Arch "386" }}i386
23+
{{- else }}{{ .Arch }}{{ end }}
24+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
2525
format_overrides:
2626
- goos: windows
2727
format: zip

0 commit comments

Comments
 (0)