Goreleaser Fix (#30)

* Goreleaser Bug

Theoretically this config should work but it doesn't

* Specify `goamd64`
This commit is contained in:
Fedor Korotkov 2024-01-24 19:09:59 +04:00 committed by GitHub
parent 817dbb6e32
commit f5a1b1cdbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 20 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
/.idea
/dist
/target

View File

@ -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