9 Star 22 Fork 6

Eolink/apinto

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.goreleaser.yaml 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
choosy 提交于 2023-02-17 18:58 . 修改goreleaser脚本
# .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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/eolink_admin/apinto.git
[email protected]:eolink_admin/apinto.git
eolink_admin
apinto
apinto
main

搜索帮助