From 24e9c39ccd8ec8288bae7c46704ddfb33e5fe33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Sat, 23 Nov 2024 21:44:03 -0500 Subject: [PATCH] Upgrade goreleaser to version 2 --- .goreleaser.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 631104b..b84876c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -46,7 +46,12 @@ nfpms: - rpm overrides: deb: - file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}" + file_name_template: >- + {{- .ProjectName }}- + {{- .Version }}- + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "arm64" }}aarch64 + {{- else }}{{ .Arch }}{{ end }} scripts: postinstall: ./scripts/nfpm/postinstall.sh rpm: