@ -12,6 +12,7 @@ builds:
binary : cursor-id-modifier
binary : cursor-id-modifier
env:
env:
- CGO_ENABLED=0
- CGO_ENABLED=0
- GO111MODULE=on
goos:
goos:
- linux
- linux
- windows
- windows
@ -26,32 +27,13 @@ builds:
ldflags:
ldflags:
- -s -w
- -s -w
- -X 'main.version={{.Version}}'
- -X 'main.version={{.Version}}'
- -X 'main.commit={{.Commit}}'
- -X 'main.date={{.Date}}'
- -X 'main.commit={{.ShortCommit}}'
- -X 'main.date={{.CommitDate}}'
- -X 'main.builtBy=goreleaser'
flags:
flags:
- -trimpath
- -trimpath
mod_timestamp : '{{ .CommitTimestamp }}'
mod_timestamp : '{{ .CommitTimestamp }}'
# 添加构建时的项目设置
project_name : cursor-id-modifier
# 添加构建验证
builds_verify:
- skip : false
cmd : "{{.Binary}} --version"
# 改进发布配置
release:
draft : true
prerelease : auto
mode : replace
header : |
## Release {{.Tag}} ({{.Date}})
See [CHANGELOG.md](CHANGELOG.md) for details.
footer : |
**Full Changelog** : https://github.com/owner/repo/compare/{{ .PreviousTag }}...{{ .Tag }}
archives:
archives:
- id : binary
- id : binary
format : binary
format : binary
@ -61,11 +43,50 @@ archives:
{{- if eq .Arch "amd64" }}x64{{ end }}
{{- if eq .Arch "amd64" }}x64{{ end }}
{{- if eq .Arch "386" }}x86{{ end }}
{{- if eq .Arch "386" }}x86{{ end }}
{{- if eq .Arch "arm64" }}arm64{{ end }}
{{- if eq .Arch "arm64" }}arm64{{ end }}
replacements:
darwin : Darwin
linux : Linux
windows : Windows
386 : i386
amd64 : x86_64
checksum:
checksum:
name_template : 'checksums.txt'
name_template : 'checksums.txt'
algorithm : sha256
algorithm : sha256
release:
draft : true
prerelease : auto
mode : replace
header : |
## Release {{.Tag}} ({{.Date}})
See [CHANGELOG.md](CHANGELOG.md) for details.
footer : |
**Full Changelog** : https://github.com/owner/repo/compare/{{ .PreviousTag }}...{{ .Tag }}
extra_files:
- glob : 'LICENSE*'
- glob : 'README*'
- glob : 'CHANGELOG*'
changelog:
changelog:
sort : asc
sort : asc
use : github
use : github
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- Merge pull request
- Merge branch
groups:
- title : Features
regexp : "^.*feat[(\\w)]*:+.*$"
order : 0
- title : 'Bug fixes'
regexp : "^.*fix[(\\w)]*:+.*$"
order : 1
- title : Others
order : 999
project_name : cursor-id-modifier