18 lines
436 B
Batchfile
18 lines
436 B
Batchfile
@echo off
|
|
set work_path=%cd%
|
|
set protoc=%work_path%\bin\protoc-3.19.4-win64\bin\protoc.exe
|
|
set protoc-gen-go-plugin-path="%work_path%\bin\protoc-gen-go.exe"
|
|
|
|
cd %work_path%/tools/xlsx2proto
|
|
go build
|
|
xlsx2proto.exe
|
|
|
|
cd ../../protocol/server
|
|
%protoc% --proto_path=%GOPATH%\src --proto_path=. --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=%GOPATH%\src pbdata.proto
|
|
|
|
cd ../../tools/xlsx2binary
|
|
go build
|
|
xlsx2binary.exe
|
|
|
|
pause
|