1 Star 0 Fork 5

sen/vdns

forked from gngpp/vdns 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 2.63 KB
一键复制 编辑 原始数据 按行查看 历史
sudo-chenjiaqi 提交于 2022-04-02 11:45 . Update build.sh
#!/bin/sh
export GOPROXY=direct
sudo apt-get update
sudo apt-get install gcc-mingw-w64-i686 gcc-multilib -y
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o linux_amd64_vdns ./main.go
tar -czvf linux_amd64_vdns.tar.gz ./linux_amd64_vdns
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w" -o linux_386_vdns ./main.go
tar -czvf linux_386_vdns.tar.gz ./linux_386_vdns
CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags="-s -w" -o freebsd_386_vdns ./main.go
tar -czvf freebsd_386_vdns.tar.gz ./freebsd_386_vdns
CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w" -o freebsd_amd64_vdns ./main.go
tar -czvf freebsd_amd64_vdns.tar.gz ./freebsd_amd64_vdns
CGO_ENABLED=0 GOOS=freebsd GOARCH=arm go build -ldflags="-s -w" -o freebsd_arm64_vdns ./main.go
tar -czvf freebsd_arm64_vdns.tar.gz ./freebsd_arm64_vdns
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w" -o linux_armv7_vdns ./main.go
tar -czvf linux_armv7_vdns.tar.gz ./linux_armv7_vdns
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w" -o linux_armv6_vdns ./main.go
tar -czvf linux_armv6_vdns.tar.gz ./linux_armv6_vdns
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w" -o linux_armv5_vdns ./main.go
tar -czvf linux_armv5_vdns.tar.gz ./linux_armv5_vdns
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o linux_arm64_vdns ./main.go
tar -czvf linux_arm64_vdns.tar.gz ./linux_arm64_vdns
CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags="-s -w" -o linux_mips64_vdns ./main.go
tar -czvf linux_mips64_vdns.tar.gz ./linux_mips64_vdns
CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags="-s -w" -o linux_mips64le_vdns ./main.go
tar -czvf linux_mips64le_vdns.tar.gz ./linux_mips64le_vdns
CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags="-s -w" -o linux_mipsle_vdns ./main.go
tar -czvf linux_mipsle_vdns.tar.gz ./linux_mipsle_vdns
CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags="-s -w" -o linux_mips_vdns ./main.go
tar -czvf linux_mips_vdns.tar.gz ./linux_mips_vdns
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="-s -w" -o windows_386_vdns.exe ./main.go
tar -czvf windows_386_vdns.tar.gz ./windows_386_vdns.exe
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o windows_amd64_vdns.exe ./main.go
tar -czvf windows_amd64_vdns.tar.gz ./windows_amd64_vdns.exe
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o darwin_amd64_vdns ./main.go
tar -czvf darwin_amd64_vdns.tar.gz ./darwin_amd64_vdns
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o darwin_arm64_vdns ./main.go
tar -czvf darwin_arm64_vdns.tar.gz ./darwin_arm64_vdns
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/git-w/vdns.git
git@gitee.com:git-w/vdns.git
git-w
vdns
vdns
main

搜索帮助