From b74ce4873b032954b1ff1e0b7a6da8319cdc4134 Mon Sep 17 00:00:00 2001 From: Marcus Weiner Date: Sun, 28 Apr 2024 21:49:10 +0200 Subject: [PATCH] Fix template --- .goreleaser.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6fe8e48..38a5da9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -21,17 +21,17 @@ archives: format: binary name_template: >- {{ .Binary }}_{{ .Os }}- - {{ if eq .Os "linux" -}} - {{ if eq .Arch "arm64" -}} + {{- if eq .Arch "arm64" -}} + {{- if eq .Os "linux" -}} aarch64 - {{ else -}} - {{ if eq .Arch "amd64" -}} - x86_64 - {{ else -}} - {{ .Arch -}} - {{ endif -}} - {{ endif -}} - {{ endif }} + {{- else -}} + {{ .Arch }} + {{- end -}} + {{- else if eq .Arch "amd64" -}} + x86_64 + {{- else -}} + {{ .Arch }} + {{- end }} checksum: name_template: "checksums.txt"