game_sync/gen_data.bat

22 lines
403 B
Batchfile

@echo off
echo "excel to proto and binary"
set protoc=.\bin\protoc-3.19.4-win64\bin\protoc.exe
set protoc-gen-go-plugin-path=".\bin\protoc-gen-go.exe"
cd ./tools/xlsx2proto
go build
xlsx2proto.exe
cd ../../
%protoc% --proto_path=. --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=../../ protocol/server/pbdata.proto
cd ./tools/xlsx2binary
go build
xlsx2binary.exe
echo "success"
pause