Skip to content

Commit 2d773f5

Browse files
authored
Fix file_name_template to produce the same binary names (#136)
1 parent b8acc8a commit 2d773f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.goreleaser.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ nfpms:
4343
dependencies:
4444
- udisks2
4545
file_name_template: >-
46-
{{ .ProjectName }}_
47-
{{- title .Os }}_
46+
{{ .PackageName }}_{{ .Version }}_{{ .Os }}_
4847
{{- if eq .Arch "amd64" }}x86_64
4948
{{- else if eq .Arch "386" }}i386
5049
{{- else if eq .Arch "arm64" }}aarch64
51-
{{- else }}{{ .Arch }}{{ end }}
50+
{{- else }}
51+
{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}
52+
{{ with .Mips }}_{{ . }}{{ end }}
53+
{{ end }}
5254
contents:
5355
- src: contrib/haos-agent.service
5456
dst: /usr/lib/systemd/system/haos-agent.service

0 commit comments

Comments
 (0)