From eb73d2f91cd16651bed8c1527500194ffa080607 Mon Sep 17 00:00:00 2001 From: rkehl821 Date: Tue, 24 Oct 2023 10:45:43 -0500 Subject: [PATCH] Added support for darwin-arm64 in goreleaser and updated archive naming. --- .goreleaser.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index bda135a..a47c058 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -17,8 +17,6 @@ builds: ignore: - goos: windows goarch: arm64 - - goos: darwin - goarch: arm64 - main: cmd/plaxrun/main.go id: plaxrun binary: plaxrun @@ -29,8 +27,6 @@ builds: ignore: - goos: windows goarch: arm64 - - goos: darwin - goarch: arm64 - main: cmd/plaxrun/plugins/report/stdout/main.go id: plaxrun_report_stdout binary: plaxrun_report_stdout @@ -41,8 +37,6 @@ builds: ignore: - goos: windows goarch: arm64 - - goos: darwin - goarch: arm64 - main: cmd/plaxrun/plugins/report/octane/main.go id: plaxrun_report_octane binary: plaxrun_report_octane @@ -53,8 +47,6 @@ builds: ignore: - goos: windows goarch: arm64 - - goos: darwin - goarch: arm64 - main: cmd/plaxrun/plugins/report/rp/main.go id: plaxrun_report_rp binary: plaxrun_report_rp @@ -65,8 +57,6 @@ builds: ignore: - goos: windows goarch: arm64 - - goos: darwin - goarch: arm64 - main: cmd/yamlincl/main.go id: yamlincl binary: yamlincl @@ -77,15 +67,15 @@ builds: ignore: - goos: windows goarch: arm64 - - goos: darwin - goarch: arm64 archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - name_template: >- + {{- .ProjectName }}_ + {{- .Version }}_ + {{- title .Os }}_ + {{- 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