From 2a38b10814db415253a7c23c7cd398b28a840cd0 Mon Sep 17 00:00:00 2001 From: Suvarna Rokade Date: Thu, 27 Jul 2023 11:47:40 +0530 Subject: [PATCH] releaser fixes --- .goreleaser.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 36c6e7279..a425cb1b4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -18,21 +18,16 @@ builds: - goos: windows goarch: arm64 archives: - - id: darwin - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - id: format_all_build_names + name_template: >- + {{ .Binary }}_ + {{ .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 - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' - replacements: - windows: Windows - 386: i386 - amd64: x86_64 format_overrides: - goos: windows format: zip