From 31e45b551402a3dc368bb86feeb0f95fdc71ea0e Mon Sep 17 00:00:00 2001 From: Mor Weinberger Date: Mon, 23 Oct 2023 22:41:16 +0300 Subject: [PATCH] Update .goreleaser.yml (#128) --- .goreleaser.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 5a4febc..847a78d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -22,11 +22,22 @@ release: discussion_category_name: Announcements archives: - - replacements: - darwin: macOS - linux: Linux - amd64: 64bit - arm64: ARM64 + - id: archive + name_template: >- + {{ .ProjectName }}_{{ .Version }}_ + {{- if eq .Os "darwin" }}macOS + {{- else if eq .Os "linux" }}Linux + {{- else if eq .Os "openbsd" }}OpenBSD + {{- else if eq .Os "netbsd" }}NetBSD + {{- else if eq .Os "freebsd" }}FreeBSD + {{- else if eq .Os "dragonfly" }}DragonFlyBSD + {{- else}}{{- .Os }}{{ end }}- + {{- if eq .Arch "amd64" }}64bit + {{- else if eq .Arch "386" }}32bit + {{- else if eq .Arch "arm" }}ARM + {{- else if eq .Arch "arm64" }}ARM64 + {{- else if eq .Arch "ppc64le" }}PPC64LE + {{- else }}{{ .Arch }}{{ end }} files: - README.md - LICENSE