Skip to content

Commit

Permalink
Releaser fixes for archives. (tenable#1595)
Browse files Browse the repository at this point in the history
* releaser fixes

---------

Co-authored-by: Suvarna Rokade <srokade@tenable.com>
  • Loading branch information
Rchanger and srokade-tenable authored Jul 27, 2023
1 parent 94dfb5d commit f7acf0c
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,23 @@ builds:
- goos: windows
goarch: arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
# for windows it is good to have zip along with tar.gz
- id: format_all_build_names
name_template: >-
{{ .Binary }}_
{{- trimprefix .Version "." }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
# for windows it is good to have zip along with tar.gz
- id: win_zip
replacements:
windows: Windows
386: i386
amd64: x86_64
name_template: >-
{{ .Binary }}_
{{- trimprefix .Version "." }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
Expand Down

0 comments on commit f7acf0c

Please sign in to comment.