From f5a1b1cdbd6692407573c0a3ccddea114301fde2 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Wed, 24 Jan 2024 19:09:59 +0400 Subject: [PATCH] Goreleaser Fix (#30) * Goreleaser Bug Theoretically this config should work but it doesn't * Specify `goamd64` --- .gitignore | 2 ++ .goreleaser.yml | 25 +++++-------------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index ea8c4bf..8f17eaf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +/.idea +/dist /target diff --git a/.goreleaser.yml b/.goreleaser.yml index f64f2cf..015046f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,31 +1,19 @@ project_name: softnet builds: - - id: softnet-arm64 + - id: softnet builder: prebuilt + goamd64: [v1] goos: - darwin goarch: - arm64 - prebuilt: - path: "target/aarch64-apple-darwin/release-with-debug/softnet" - - id: softnet-x86 - builder: prebuilt - goos: - - darwin - goarch: - amd64 prebuilt: - path: "target/x86_64-apple-darwin/release-with-debug/softnet" + path: 'target/{{- if eq .Arch "arm64" }}aarch64{{- else }}x86_64{{ end }}-apple-darwin/release-with-debug/softnet' archives: - - id: regular-arm64 - builds: - - softnet-arm64 - name_template: "{{ .ProjectName }}-{{ .Arch }}" - - id: regular-x86 - builds: - - softnet-x86 + - id: regular name_template: "{{ .ProjectName }}-{{ .Arch }}" release: @@ -33,10 +21,7 @@ release: brews: - name: softnet - ids: - - regular-arm64 - - regular-x86 - tap: + repository: owner: cirruslabs name: homebrew-cli caveats: See the Github repository for more information