github.com/filecoin-project/lassie@v0.23.0/.goreleaser.yaml (about) 1 builds: 2 - main: ./cmd/lassie 3 binary: lassie 4 ldflags: 5 # Sets the version variable in the build package to the build version prefixed with a 'v' 6 # Sets the main.date to a static date for checksum verification. See https://goreleaser.com/customization/builds/#reproducible-builds. 7 - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser -X github.com/filecoin-project/lassie/pkg/build.version=v{{.Version}} 8 goos: 9 - linux 10 - windows 11 - darwin 12 goarch: 13 - 'amd64' 14 - 'arm64' 15 # Change to a static date for checksum verification. See https://goreleaser.com/customization/builds/#reproducible-builds. 16 mod_timestamp: '{{.CommitTimestamp}}' 17 env: 18 - CGO_ENABLED=0 19 universal_binaries: 20 - replace: true 21 archives: 22 - format_overrides: 23 - goos: windows 24 format: zip 25 - goos: darwin 26 format: zip 27 name_template: >- 28 {{ .ProjectName }}_{{ .Version }}_ 29 {{- if eq .Os "darwin" }}mac_os 30 {{- else }}{{ .Os }}{{ end }}_{{ .Arch }} 31 release: 32 mode: keep-existing 33 changelog: 34 skip: true