1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

update .goreleaser.yml

(cherry picked from commit eb8a65c6825f025b1e6406767e5d64c3db604d7c)

add maintainer
(cherry picked from commit a5947ece10ba60795f349c4a0a6f6f08fbea0a33)
This commit is contained in:
Ink33 2021-03-27 17:17:05 +08:00 committed by wdvxdr
parent f6280baa0c
commit 4526e00d79
No known key found for this signature in database
GPG Key ID: 55FF1414A69CEBA6

View File

@ -4,13 +4,13 @@ before:
hooks: hooks:
- go mod tidy - go mod tidy
builds: builds:
- env: - id: nowin
env:
- CGO_ENABLED=0 - CGO_ENABLED=0
- GO111MODULE=on - GO111MODULE=on
goos: goos:
- linux - linux
- darwin - darwin
- windows
goarch: goarch:
- 386 - 386
- amd64 - amd64
@ -21,22 +21,37 @@ builds:
goarch: arm goarch: arm
- goos: darwin - goos: darwin
goarch: 386 goarch: 386
- goos: windows mod_timestamp: "{{ .CommitTimestamp }}"
goarch: arm64 flags:
mod_timestamp: '{{ .CommitTimestamp }}' - -trimpath
ldflags:
- -s -w -X github.com/Mrs4s/go-cqhttp/coolq.Version=v{{.Version}}
- id: win
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- windows
goarch:
- 386
- amd64
- arm
goarm:
- 7
mod_timestamp: "{{ .CommitTimestamp }}"
flags: flags:
- -trimpath - -trimpath
ldflags: ldflags:
- -s -w -X github.com/Mrs4s/go-cqhttp/coolq.Version=v{{.Version}} - -s -w -X github.com/Mrs4s/go-cqhttp/coolq.Version=v{{.Version}}
checksum: checksum:
name_template: '{{ .ProjectName }}_checksums.txt' name_template: "{{ .ProjectName }}_checksums.txt"
changelog: changelog:
sort: asc sort: asc
filters: filters:
exclude: exclude:
- '^docs:' - "^docs:"
- '^test:' - "^test:"
- fix typo - fix typo
- Merge pull request - Merge pull request
- Merge branch - Merge branch
@ -44,7 +59,18 @@ changelog:
- go mod tidy - go mod tidy
archives: archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - id: binary
builds:
- win
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: binary
- id: nowin
builds:
- nowin
- win
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip
@ -52,7 +78,8 @@ archives:
nfpms: nfpms:
- license: AGPL 3.0 - license: AGPL 3.0
homepage: https://go-cqhttp.org homepage: https://go-cqhttp.org
file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
formats: formats:
- deb - deb
- rpm - rpm
maintainer: Mrs4s