Files
port-forward/build.bat
T
2017-05-31 17:28:10 +08:00

26 lines
450 B
Batchfile

set GoDevWork="E:\Taven\MyHobbyWork\PortForward\"
echo "Build For Linux..."
set GOOS=linux
set GOARCH=amd64
set GOPATH=%GoDevWork%;%GOPATH%
go build -o port-forward
echo "--------- Build For Linux Success!"
echo "Build For Win..."
:: set GOOS=windows
:: set GOARCH=386
:: go build -o port-forward.exe
set GOOS=windows
set GOARCH=amd64
set GOPATH=%GoDevWork%;%GOPATH%
go build -o port-forward.exe
echo "--------- Build For Win Success!"
pause