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 #- darwin #- linux 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