Skip to content

Commit

Permalink
goreleaser: update to version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlindhe committed Oct 21, 2024
1 parent 5c74fd3 commit 404f50b
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
# Build customization
version: 2

env:
- CGO_ENABLED=0

builds:
-
- id: subber
main: ./cmd/subber/subber.go
binary: subber
goos:
- windows
- linux
- darwin
- windows
goarch:
- 386
- amd64
ignore:
- goos: darwin
goarch: 386
# Archive customization

archives:
- id: tgz
format: tar.gz
- id: all
format_overrides:
- goos: windows
format: zip
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
files:
- README.md
- LICENSE
name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc

0 comments on commit 404f50b

Please sign in to comment.