From 2d773f5a9509513305432982c9e9928e68350f14 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 16 Mar 2023 15:48:54 +0100 Subject: [PATCH] Fix file_name_template to produce the same binary names (#136) --- .goreleaser.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 57cf99f..7a59134 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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