From f7acf0c5922fe77e085812be150121001ab32cd4 Mon Sep 17 00:00:00 2001 From: Suvarna Rokade Date: Thu, 27 Jul 2023 22:13:06 +0530 Subject: [PATCH] Releaser fixes for archives. (#1595) * releaser fixes --------- Co-authored-by: Suvarna Rokade --- .goreleaser.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index dd17109cc..d3334f997 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -18,18 +18,23 @@ builds: - goos: windows goarch: arm64 archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - # for windows it is good to have zip along with tar.gz + - id: format_all_build_names + name_template: >- + {{ .Binary }}_ + {{- trimprefix .Version "." }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + # for windows it is good to have zip along with tar.gz - id: win_zip - replacements: - windows: Windows - 386: i386 - amd64: x86_64 + name_template: >- + {{ .Binary }}_ + {{- trimprefix .Version "." }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} format_overrides: - goos: windows format: zip