From 2a0832a379bd428955f5c02e6cd6a6b2d92156db Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 3 Mar 2024 13:32:46 +0100 Subject: [PATCH] Ugly goreleaser fix. --- .goreleaser.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 5e89f82e..fb73d956 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -56,11 +56,14 @@ builds: archives: - builds: - binary - replacements: - darwin: Darwin - linux: Linux - 386: x86 - amd64: x86_64 + name_template: >- + {{- .ProjectName }}_{{ .Id }}_ + {{- if eq .Os "darwin" }}Darwin + {{- else if eq .Os "linux" }}Linux + {{- else }}{{ .Os }}{{ end }}_ + {{- if eq .Arch "386" }}x86 + {{- else if eq .Arch "amd64" }}x86_64 + {{- else }}{{ .Arch }}{{ end }} format_overrides: - goos: windows format: zip @@ -68,10 +71,13 @@ archives: - win_binary id: win_binary format: zip - replacements: - windows: Windows - 386: x86 - amd64: x86_64 + name_template: >- + {{- .ProjectName }}_{{ .Id }}_ + {{- if eq .Os "windows" }}Windows + {{- else }}{{ .Os }}{{ end }}_ + {{- if eq .Arch "386" }}x86 + {{- else if eq .Arch "amd64" }}x86_64 + {{- else }}{{ .Arch }}{{ end }} files: - src: scripts/regolith-update.ps1 dst: ./