Skip to content

Commit

Permalink
replace deprecated archives.replacements with name_template abuse
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Tappe committed Jun 26, 2024
1 parent b0085b2 commit cf40112
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ builds:
binary: mittnitectl
main: ./cmd/mittnitectl
archives:
- replacements:
darwin: macos
linux: linux
windows: windows
386: i386
amd64: x86_64
- 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 -}}
files:
- LICENSE
nfpms:
Expand Down

0 comments on commit cf40112

Please sign in to comment.