vvin/.goreleaser.yml

39 lines
778 B
YAML
Raw Normal View History

2020-11-11 07:33:36 -05:00
project_name: vvin
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- binary: vvin
flags:
- -trimpath
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- windows
2020-11-11 07:36:04 -05:00
#- darwin
#- linux
2020-11-11 07:33:36 -05:00
goarch:
- amd64
- 386
hooks:
post: upx --lzma '{{ .Path }}'
archives:
- name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: darwin
linux: linux
windows: windows
386: 386
amd64: amd64
format_overrides:
- goos: windows
format: zip
release:
prerelease: auto