mirror of
https://github.com/tavenli/port-forward.git
synced 2026-10-20 08:17:56 +00:00
26 lines
450 B
Batchfile
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
|
|
|