Skip to content

Commit 3c08f31

Browse files
committed
fix(goreleaser): update archives name_template
1 parent 6cc4a2b commit 3c08f31

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: .goreleaser.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ builds:
3737

3838

3939
archives:
40-
- replacements:
41-
darwin: macOS
42-
amd64: x86_64
43-
linux: Linux
44-
windows: Windows
40+
- name_template: >-
41+
{{ .ProjectName }}_
42+
{{- title .Os }}_
43+
{{- if eq .Arch "amd64" }}x86_64
44+
{{- else if eq .Arch "386" }}i386
45+
{{- else }}{{ .Arch }}{{ end }}
4546
checksum:
4647
name_template: 'checksums.txt'
4748
snapshot:

0 commit comments

Comments
 (0)