Skip to content

Commit

Permalink
Fix file_name_template to produce the same binary names (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
agners authored Mar 16, 2023
1 parent b8acc8a commit 2d773f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ nfpms:
dependencies:
- udisks2
file_name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{ .PackageName }}_{{ .Version }}_{{ .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
{{- else }}
{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}
{{ with .Mips }}_{{ . }}{{ end }}
{{ end }}
contents:
- src: contrib/haos-agent.service
dst: /usr/lib/systemd/system/haos-agent.service
Expand Down

0 comments on commit 2d773f5

Please sign in to comment.