From 090a28dfcbb1df6f39734a24b928e35766cc0162 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Thu, 2 Nov 2023 17:52:52 +0100 Subject: [PATCH] remove deprecated property from goreleaser configuration --- .goreleaser.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 8249848..762d903 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 1 release: github: owner: paskal @@ -21,10 +22,15 @@ builds: archives: - format: tar.gz - replacements: - 386: i386 - amd64: x86_64 - darwin: macos + name_template: >- + {{- .ProjectName }}_ + {{.Version}}_ + {{- if eq .Os "darwin" }}macos + {{- else }}{{ title .Os }}{{ end }} + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} format_overrides: - goos: windows format: zip