Skip to content

Commit

Permalink
build(goreleaser): configuration changes
Browse files Browse the repository at this point in the history
Add support for FreeBSD, reproducible builds and version command
  • Loading branch information
MrMarble committed Apr 7, 2022
1 parent 5d8bc75 commit 86feee6
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions goreleaser.yml → .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,34 @@ builds:
goos:
- linux
- darwin
- freebsd
goarch:
- amd64
- arm64
- arm
- 386
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386
- goos: freebsd
goarch: arm64
flags:
- -trimpath
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.CommitDate}}

mod_timestamp: '{{ .CommitTimestamp }}'
main: ./cmd/termsvg

archives:
- format: tar.gz
wrap_in_directory: true
format_overrides:
- goos: windows
- goos: darwin
format: zip
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}'
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- LICENSE
- README.md
Expand Down

0 comments on commit 86feee6

Please sign in to comment.