编译gost2.5版本

编译gost2.5版本

yum install git go -y
git clone https://github.com/ginuerzh/gost.git /root/go/src/github.com/ginuerzh/gost
git clone https://github.com/go-log/log.git /root/go/src/go-log/log
mkdir /root/dist/
cd /root/go/src/github.com/ginuerzh/gost/cmd/gost/

env GOOS=darwin GOARCH=386 go build
tar -zcf /root/dist/gost_2.5_darwin_386.tar.gz gost --remove-files

env GOOS=darwin GOARCH=amd64 go build
tar -zcf /root/dist/gost_2.5_darwin_amd64.tar.gz gost --remove-files

env GOOS=linux GOARCH=386 go build
tar -zcf /root/dist/gost_2.5_linux_386.tar.gz gost --remove-files

env GOOS=linux GOARCH=amd64 go build
tar -zcf /root/dist/gost_2.5_linux_amd64.tar.gz gost --remove-files

env GOOS=linux GOARCH=arm go build
tar -zcf /root/dist/gost_2.5_linux_amd64.tar.gz gost --remove-files

env GOOS=windows GOARCH=386 go build
tar -zcf /root/dist/gost_2.5_windows_386.tar.gz gost.exe --remove-files

env GOOS=windows GOARCH=amd64 go build
tar -zcf /root/dist/gost_2.5_windows_amd64.tar.gz gost.exe --remove-files

rm -rf /root/go

猜你喜欢

转载自blog.csdn.net/bwlab/article/details/78791193