Skip to content

Instantly share code, notes, and snippets.

@chenshaoju
Created April 20, 2020 04:58
Show Gist options
  • Save chenshaoju/33627b55ce5f9c32becd3b57141bec29 to your computer and use it in GitHub Desktop.
Save chenshaoju/33627b55ce5f9c32becd3b57141bec29 to your computer and use it in GitHub Desktop.
cloak build script for myself
#!/bin/sh
#
echo "Remove old Cloak..."
rm -rf github.com/cbeuw/Cloak
echo "Setting proxy to laptop..."
export http_proxy=http://192.168.1.103:10801
export https_proxy=http://192.168.1.103:10801
echo "Get new version Cloak..."
go get github.com/cbeuw/Cloak
echo "Going to working directory..."
cd github.com/cbeuw/Cloak
echo "Building Linux server side..."
make server
echo "Building Linux client side..."
make client
echo "Setting for Windows client build..."
export CGO_ENABLED=0 GOOS=windows GOARCH=amd64
echo "Building Windows client side..."
make client
echo "Cleaning evironment variable... "
export http_proxy=""
export https_proxy=""
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment