Skip to content

Commit

Permalink
Fix goreleaser archive config
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Oct 10, 2023
1 parent bfb15cb commit d5fd94d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
archives:
- id: archive
name_template: '{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
name_template: >-
{{- .Binary }}-
{{- .Tag }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x64
{{- else }}{{ .Arch }}{{ end }}
wrap_in_directory: esc{{ if eq .Os "windows" }}/bin{{ end }}
format_overrides:
- goos: windows
format: zip
replacements:
amd64: x64
files:
# OS specific scripts, not compiled
- src: bin/{{ .Os }}/*
Expand Down

0 comments on commit d5fd94d

Please sign in to comment.