Skip to content

Commit e01127b

Browse files
committed
chore: update goreleaser config to replace deprecated archives.replacements
1 parent e700ee4 commit e01127b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Diff for: .goreleaser.yaml

+8-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ builds:
1010
- amd64
1111
- arm
1212
archives:
13-
- replacements:
14-
darwin: Darwin
15-
linux: Linux
16-
windows: Windows
17-
386: i386
18-
amd64: x86_64
19-
arm64: arm64
13+
- name_template: >-
14+
{{- .ProjectName }}_
15+
{{- .Version }}_
16+
{{- title .Os }}_
17+
{{- if eq .Arch "amd64" }}x86_64
18+
{{- else if eq .Arch "386" }}i386
19+
{{- else }}{{ .Arch }}{{ end }}
20+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
2021
format_overrides:
2122
- goos: windows
2223
format: zip

0 commit comments

Comments
 (0)