ing
This commit is contained in:
parent
a883fc80cc
commit
1b34e7cbb3
11
build.bat
11
build.bat
|
@ -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
|
Loading…
Reference in New Issue
Block a user