Skip to content

Commit

Permalink
Update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2brain committed Apr 23, 2024
1 parent a12a3a0 commit 0565bf3
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ builds:
main: ./cmd/unarr/unarr.go
env:
- CGO_ENABLED=1
- CC=x86_64-apple-darwin21.1-clang
- CC=x86_64-apple-darwin21.4-clang
flags: *flags
ldflags:
- "-s -w"
Expand All @@ -54,7 +54,7 @@ builds:
main: ./cmd/unarr/unarr.go
env:
- CGO_ENABLED=1
- CC=aarch64-apple-darwin21.1-clang
- CC=aarch64-apple-darwin21.4-clang
flags: *flags
ldflags:
- "-s -w"
Expand All @@ -65,13 +65,22 @@ builds:

archives:
- id: archive
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
arm64: aarch64
wrap_in_directory: "{{ .ProjectName }}-{{ .Version }}"
name_template: >-
{{- .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
files:
- README.md
- LICENSE

checksum:
name_template: 'checksums.txt'
Expand Down

0 comments on commit 0565bf3

Please sign in to comment.