diff --git a/.goreleaser.yml b/.goreleaser.yml index 04338f5..bcea992 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -32,6 +32,13 @@ builds: - goos: windows goarch: arm64 +universal_binaries: + - id: cpm-universal + ids: + - cpm + replace: true + name_template: cpm + archives: - id: default formats: @@ -40,7 +47,10 @@ archives: - goos: windows formats: - zip - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + name_template: >- + {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_ + {{- if eq .Arch "all" }}universal + {{- else }}{{ .Arch }}{{ end }} files: - LICENSE - README.md