代码拉取完成,页面将自动刷新
# .goreleaser.yml
builds:
- id: apinto
goos:
- linux
- darwin
goarch:
- amd64
- arm64
goarm:
- "6"
gomips:
- hardfloat
goamd64:
- v2
- v3
targets:
- linux_arm64
- linux_amd64
- darwin_arm64
- darwin_amd64
dir: ./app/apinto
main: .
binary: apinto
builder: go
gobinary: go
# ldflags:
# - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
# -
ldflags:
- -s -w
- -X "github.com/eolinker/apinto/utils/version.Version={{.Version}}"
- -X "github.com/eolinker/apinto/utils/version.gitCommit={{.Commit}}"
- -X "github.com/eolinker/apinto/utils/version.buildTime={{.Date}}"
- -X "github.com/eolinker/apinto/utils/version.buildUser=goreleaser"
- -X "github.com/eolinker/apinto/utils/version.goVersion={{.Env.GOVERSION}}"
- -X "github.com/eolinker/apinto/utils/version.eoscVersion={{.Env.EoscVersion}}"
env:
- CGO_ENABLED=0
archives:
- id: default
format: tar.gz
wrap_in_directory: apinto
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}"
files:
- src: 'build/resources/*'
dst: /
strip_parent: true
release:
name_template: "{{ .Tag }}"
mode: append
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。