Skip to content

Commit

Permalink
Merge pull request #174 from gametimesf/adjust_release_name_template
Browse files Browse the repository at this point in the history
build: adjust name template for releases
  • Loading branch information
particledecay authored Apr 10, 2024
2 parents d865eab + c3637d7 commit 9c51752
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,15 @@ builds:
- darwin

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
- format: zip
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{ .ProjectName }}-
{{ .Tag }}-
{{- tolower .Os }}-
{{- if eq .Arch "x86_64" }}amd64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
changelog:
sort: asc
Expand Down

0 comments on commit 9c51752

Please sign in to comment.