From 3b10eb9840ddfe6c67c24201b6c8b7683992637f Mon Sep 17 00:00:00 2001 From: Tony An Date: Mon, 6 May 2024 16:42:41 -0500 Subject: [PATCH] :green_heart: Simplify archive name template in goreleaser configuration The archive name template in the goreleaser configuration has been simplified. The previous complex template has been replaced with a more straightforward one, which only includes the binary name, operating system, and architecture. This change is aimed at streamlining the naming process across different architectures. --- .goreleaser.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3a53132..50cdb48 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -34,14 +34,7 @@ builds: archives: - format: tar.gz # this name template makes the OS and Arch compatible with the results of `uname`. - 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 }} - # use zip for windows archives + name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}' format_overrides: - goos: windows format: zip