mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
76 lines
1.3 KiB
YAML
76 lines
1.3 KiB
YAML
project_name: zbp
|
|
env:
|
|
- GO111MODULE=on
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
- go generate ./...
|
|
- go install github.com/tc-hib/go-winres@latest
|
|
- go-winres make
|
|
builds:
|
|
- id: nowin
|
|
env:
|
|
- CGO_ENABLED=0
|
|
- GO111MODULE=on
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- 386
|
|
- amd64
|
|
- arm
|
|
- arm64
|
|
goarm:
|
|
- 6
|
|
- 7
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w
|
|
- id: win
|
|
env:
|
|
- CGO_ENABLED=0
|
|
- GO111MODULE=on
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w
|
|
|
|
checksum:
|
|
name_template: "zbp_checksums.txt"
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- fix typo
|
|
- Merge pull request
|
|
- Merge branch
|
|
- Merge remote-tracking
|
|
- go mod tidy
|
|
|
|
archives:
|
|
- id: nowin
|
|
builds:
|
|
- nowin
|
|
- win
|
|
name_template: "zbp_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: zip
|
|
|
|
nfpms:
|
|
- license: AGPL 3.0
|
|
homepage: https://github.com/FloatTech/ZeroBot-Plugin
|
|
file_name_template: "zbp_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
|
formats:
|
|
- deb
|
|
- rpm
|
|
maintainer: FloatTech
|