mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-10 17:14:03 +08:00
37 lines
No EOL
835 B
YAML
37 lines
No EOL
835 B
YAML
project_name: teldrive
|
|
env:
|
|
- GO111MODULE=on
|
|
|
|
before:
|
|
hooks:
|
|
- make pre-ui
|
|
- make ui
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=0
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w -extldflags "-static"
|
|
- -X {{ .ModulePath }}/pkg/consts.Version={{ .Version }}
|
|
- -X {{ .ModulePath }}/pkg/consts.Commit={{ .ShortCommit }}
|
|
- -X {{ .ModulePath }}/pkg/consts.CommitDate={{ .CommitDate }}
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm
|
|
- arm64
|
|
checksum:
|
|
name_template: "{{ .ProjectName }}_checksums.txt"
|
|
archives:
|
|
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
files:
|
|
- README*.md
|
|
- LICENSE |