Skip to content

Commit

Permalink
Replace GoReleaser deprecated archives.replacements with name templates
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez committed Nov 17, 2023
1 parent 6ec1fb6 commit 642b0af
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ builds:
- goos: freebsd
goarch: arm64
archives:
-
replacements:
386: i386
amd64: x86_64
-
name_template: >-
{{ .ProjectName }}_
{{ .Version }}_
{{ .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
Expand Down

0 comments on commit 642b0af

Please sign in to comment.