diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2826e67..8e09197 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -8,7 +8,7 @@ before: - go generate ./... builds: - env: - - CGO_ENABLED=0 + - CGO_ENABLED=1 goos: - linux - windows @@ -16,15 +16,13 @@ builds: ldflags: - -w -s -X main.appVersion={{.Version}} -X main.appRevision={{.Commit}} archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - format_overrides: - - goos: windows - format: zip + - id: foo + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} checksum: name_template: 'checksums.txt' snapshot: