diff --git a/.goreleaser.yml b/.goreleaser.yml index dbbdc58..1c910b8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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