public/gen_data.bat

20 lines
405 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%/xlsx2proto
if not exist xlsx2proto.exe (
go build
)
xlsx2proto.exe
cd ../protocol/server
%protoc% --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=. pbdata.proto
cd ../../xlsx2binary
go build
xlsx2binary.exe
pause