diff --git a/.goreleaser.yml b/.goreleaser.yml index c2862bd..23a1c88 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,13 +28,14 @@ builds: # {{.CommitDate}} is the date of the commit to make builds reproducible. - -X main.version={{.Version}} -X main.commit={{.FullCommit}} -X main.date={{.CommitDate}} -X main.goArch={{.Runtime.Goarch}} archives: - - replacements: - linux: Linux - darwin: Darwin - amd64: x86_64 - format_overrides: - - goos: windows - format: zip + - id: archives + 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: