Skip to content

Commit bb5dec0

Browse files
authored
Merge pull request #79 from mittwald/fix/archive-name-gen
recreate original name templating for releases
2 parents 7617bd3 + 47ace1d commit bb5dec0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.goreleaser.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ builds:
2525
archives:
2626
- name_template: >-
2727
{{- .ProjectName }}_
28-
{{- title .Os }}_
29-
{{- if eq .Arch "amd64" }}x86_64
28+
{{- .Version }}_
29+
{{- if eq .Os "Linux" }}linux_
30+
{{- else if eq .Os "Darwin" }}macos_
31+
{{- else }}{{ .Os }}{{ end }}
32+
{{- if eq .Arch "amd64" }}x86_64
3033
{{- else if eq .Arch "386" }}i386
3134
{{- else }}{{ .Arch }}{{ end }}
3235
{{- if .Arm }}v{{ .Arm }}{{ end -}}

0 commit comments

Comments
 (0)