Skip to content

Commit

Permalink
💚 Simplify archive name template in goreleaser configuration
Browse files Browse the repository at this point in the history
The archive name template in the goreleaser configuration has been simplified. The previous complex template has been replaced with a more straightforward one, which only includes the binary name, operating system, and architecture. This change is aimed at streamlining the naming process across different architectures.
  • Loading branch information
anxuanzi committed May 6, 2024
1 parent d993abb commit 3b10eb9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ builds:
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}'
format_overrides:
- goos: windows
format: zip
Expand Down

0 comments on commit 3b10eb9

Please sign in to comment.