加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.bat 982 Bytes
一键复制 编辑 原始数据 按行查看 历史
fuzhe 提交于 2021-10-29 23:26 . add build.sh & setup.sh
@echo off
color 0d
echo =================================
echo ==========Build Linux ======
echo =================================
SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64
echo now the CGO_ENABLED:
go env CGO_ENABLED
echo now the GOOS:
go env GOOS
echo now the GOARCH:
go env GOARCH
go build -o bin/gatekeeper_linux main.go
echo =================================
echo ==========Build Mac ======
echo =================================
SET CGO_ENABLED=0
SET GOOS=darwin
SET GOARCH=amd64
echo now the CGO_ENABLED:
go env CGO_ENABLED
echo now the GOOS:
go env GOOS
echo now the GOARCH:
go env GOARCH
go build -o bin/gatekeeper_mac main.go
echo =================================
echo ==========Build Windows ======
echo =================================
SET CGO_ENABLED=1
SET GOOS=windows
SET GOARCH=amd64
echo now the CGO_ENABLED:
go env CGO_ENABLED
echo now the GOOS:
go env GOOS
echo now the GOARCH:
go env GOARCH
go build -o bin/gatekeeper_windows.exe main.go
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化