加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
编译全部.bat 2.92 KB
一键复制 编辑 原始数据 按行查看 历史
LingMax 提交于 2022-07-07 23:37 . init
set bin_path="./bin/"
set bin_name=LingMaxDns
set code_file="main.go"
mkdir %bin_path%
set CGO_ENABLED=0
set GOPROXY="https://goproxy.io,direct"
set GOOS=windows
set GOARCH=386
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH%.exe %code_file%
set GOOS=windows
set GOARCH=amd64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH%.exe %code_file%
set GOOS=android
set GOARCH=arm
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=darwin
set GOARCH=386
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=darwin
set GOARCH=amd64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=darwin
set GOARCH=arm
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=darwin
set GOARCH=arm64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=dragonfly
set GOARCH=amd64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=freebsd
set GOARCH=386
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=freebsd
set GOARCH=amd64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=freebsd
set GOARCH=arm
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=386
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=amd64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=arm
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=arm64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=ppc64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=ppc64le
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=mips
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=mipsle
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=mips64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=linux
set GOARCH=mips64le
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=netbsd
set GOARCH=386
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=netbsd
set GOARCH=amd64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=netbsd
set GOARCH=arm
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=openbsd
set GOARCH=386
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=openbsd
set GOARCH=amd64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=openbsd
set GOARCH=arm
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=plan9
set GOARCH=386
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=plan9
set GOARCH=amd64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
set GOOS=solaris
set GOARCH=amd64
go build -o %bin_path%%bin_name%_%GOOS%_%GOARCH% %code_file%
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化