24 lines
411 B
Batchfile
24 lines
411 B
Batchfile
@ECHO OFF
|
|
|
|
SET CGO_ENABLED=0
|
|
|
|
SET GOOS=linux
|
|
|
|
SET GOARCH=amd64
|
|
|
|
SET GO111MODULE=on
|
|
|
|
SET GOROOT=D:\Users\Snake\Downloads\Tools\go1.21.7.windows-amd64
|
|
|
|
SET GOPATH=D:\Users\Snake\Downloads\Repositories\go
|
|
|
|
SET OUT_DIR=./build/tools
|
|
|
|
SET Path=%Path%;%GOROOT%/bin
|
|
|
|
FOR %%i IN (exporter hash-calc querier) DO (
|
|
@ECHO go build -o %OUT_DIR%/%%i/%%i ./tools/%%i
|
|
go build -o %OUT_DIR%/%%i/%%i ./tools/%%i
|
|
)
|
|
|
|
PAUSE |