Skip to content

Instantly share code, notes, and snippets.

@jn7163
Forked from chenshaoju/run.sh
Created April 20, 2020 09:52
Show Gist options
  • Save jn7163/7a74cb57798fbb0a90e79da829d708bf to your computer and use it in GitHub Desktop.
Save jn7163/7a74cb57798fbb0a90e79da829d708bf 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