1 Star 0 Fork 0

fabsnail / dog-tunnel

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
release.sh 1.05 KB
Copy Edit Web IDE Raw Blame History
unknown authored 2017-02-17 12:44 . add mips support,need go 1.8
#!/bin/bash
version=$1
if [ $# -eq 0 ]
then
echo "Please input version, like \"./release.sh 0.60\""
exit
fi
rm -f dtunnel_*$1.tgz
echo "Build ReleaseFile for version $version"
echo "build linux_amd64"
GOOS=linux GOARCH=amd64 make
tar zcvf dtunnel_linux_x64_$1.tgz dtunnel dtunnel_s
echo "build linux_386"
GOOS=linux GOARCH=386 make
tar zcvf dtunnel_linux_x86_$1.tgz dtunnel dtunnel_s
echo "build mac_x64"
GOOS=darwin GOARCH=amd64 make
tar zcvf dtunnel_mac_x64_$1.tgz dtunnel dtunnel_s
echo "build win32"
GOOS=windows GOARCH=386 make && mv dtunnel dtunnel.exe && mv dtunnel_s dtunnel_s.exe
tar zcvf dtunnel_win32_$1.tgz dtunnel.exe dtunnel_s.exe
echo "build linux_arm"
GOOS=linux GOARCH=arm make
tar zcvf dtunnel_linux_arm_$1.tgz dtunnel dtunnel_s
echo "build linux_mips"
GOOS=linux GOARCH=mips make
tar zcvf dtunnel_linux_mips_$1.tgz dtunnel dtunnel_s
echo "build linux_mipsle"
GOOS=linux GOARCH=mipsle make
tar zcvf dtunnel_linux_mipsle_$1.tgz dtunnel dtunnel_s
rm -f dtunnel dtunnel.exe dtunnel_s dtunnel_s.exe
echo "Build Over"
ls -l dtunnel_*$1.tgz

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/fabsnail/dog-tunnel.git
git@gitee.com:fabsnail/dog-tunnel.git
fabsnail
dog-tunnel
dog-tunnel
master

Search