This commit is contained in:
crusader 2018-10-23 21:38:31 +09:00
parent a883fc80cc
commit 1b34e7cbb3

View File

@ -7,7 +7,6 @@ set a=amd64
:initial
if "%1"=="" goto done
echo %1
set aux=%1
if "%aux:~0,1%"=="-" (
set nome=%aux:~1,250%
@ -19,10 +18,10 @@ shift
goto initial
:done
:: your code here ...
echo OS: %o%
echo ARCH: %a%
del /q dist
goto:eof
SET GOOS=%o%
SET GOARCH=%a%
SET CGO_ENABLED=1
::SET GOOS=%o% SET GOARCH=%a% SET CGO_ENABLED=1 go build -a --installsuffix cgo --ldflags="-s" -o ./dist/probe ./cmd/main.go
go build -a --installsuffix cgo --ldflags="-s" -o ./dist/probe-%o%-%a%.exe ./cmd/main.go