From 554770d819cb87b594780f64ec45a8323833b27e Mon Sep 17 00:00:00 2001 From: Ivan Fernandez Calvo Date: Thu, 18 Jul 2024 11:04:20 +0200 Subject: [PATCH] fix: goreleaser --- .goreleaser.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ad0a24fbc3..a4d1e18850 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -19,12 +19,14 @@ builds: main: ./cli/main.go binary: op archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - id: rename_arch + name_template: >- + {{- .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} checksum: name_template: 'checksums.txt' snapshot: