teldrive/.goreleaser.yaml

39 lines
871 B
YAML
Raw Normal View History

2023-08-21 06:22:20 +08:00
project_name: teldrive
env:
- GO111MODULE=on
2023-09-08 18:59:19 +08:00
before:
hooks:
- make pre-ui
- make ui
2023-08-21 06:22:20 +08:00
builds:
- env:
- CGO_ENABLED=0
2023-12-03 15:15:56 +08:00
main: cmd/teldrive/main.go
2023-08-21 06:22:20 +08:00
flags:
- -trimpath
ldflags:
2023-08-26 01:36:48 +08:00
- -s -w -extldflags "-static"
2023-08-21 06:22:20 +08:00
- -X {{ .ModulePath }}/pkg/consts.Version={{ .Version }}
- -X {{ .ModulePath }}/pkg/consts.Commit={{ .ShortCommit }}
- -X {{ .ModulePath }}/pkg/consts.CommitDate={{ .CommitDate }}
2023-08-21 06:29:34 +08:00
mod_timestamp: "{{ .CommitTimestamp }}"
2023-08-21 06:22:20 +08:00
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
checksum:
2023-08-21 06:29:34 +08:00
name_template: "{{ .ProjectName }}_checksums.txt"
2023-08-21 06:22:20 +08:00
archives:
2023-08-21 06:29:34 +08:00
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
2023-08-21 06:22:20 +08:00
format_overrides:
- goos: windows
format: zip
files:
- README*.md
2023-08-21 06:42:29 +08:00
- LICENSE