Skip to content

Commit

Permalink
Fix .goreleaser.yaml > archives.replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepla committed Dec 31, 2022
1 parent c838d27 commit 61ae460
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,21 @@ before:
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
- CGO_ENABLED=1
goos:
- linux
- windows
- darwin
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:
Expand Down

0 comments on commit 61ae460

Please sign in to comment.