mirror of
https://github.com/net-byte/vtun
synced 2024-03-14 10:50:03 +08:00
16 lines
422 B
Bash
16 lines
422 B
Bash
#!bin/bash
|
|
export GO111MODULE=on
|
|
export GOPROXY=https://goproxy.cn
|
|
|
|
UNAME=$(uname)
|
|
|
|
if [ "$UNAME" == "Linux" ] ; then
|
|
GOOS=linux GOARCH=amd64 go build -o ./bin/vtun ./main.go
|
|
elif [ "$UNAME" == "Darwin" ] ; then
|
|
GOOS=darwin GOARCH=amd64 go build -o ./bin/vtun ./main.go
|
|
elif [[ "$UNAME" == CYGWIN* || "$UNAME" == MINGW* ]] ; then
|
|
GOOS=windows GOARCH=amd64 go build -o ./bin/vtun.exe ./main.go
|
|
fi
|
|
|
|
echo "done!"
|