From 3c08f31e077a8fc33f5760b6ea593b72baee730b Mon Sep 17 00:00:00 2001 From: LinkinStars Date: Wed, 2 Aug 2023 19:32:54 +0800 Subject: [PATCH] fix(goreleaser): update archives name_template --- .goreleaser.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index cf61b678..7daa1c71 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -37,11 +37,12 @@ builds: archives: - - replacements: - darwin: macOS - amd64: x86_64 - linux: Linux - windows: Windows + - name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} checksum: name_template: 'checksums.txt' snapshot: