diff --git a/.goreleaser.yml b/.goreleaser.yml index 5e89f82e..ead2c772 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 }}_ + {{- 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 }}_ + {{- 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: ./