2023-05-23 17:57:24 +08:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
set "PROTOC_EXE=%cd%\protoc.exe"
|
|
|
|
set "WORK_DIR=%cd%\proto"
|
2023-05-24 18:31:11 +08:00
|
|
|
set "CS_OUT_PATH=%cd%\out"
|
2023-05-23 17:57:24 +08:00
|
|
|
|
|
|
|
echo "==>>buildStart"
|
|
|
|
for /f "delims=" %%i in ('dir /b proto "proto/*.proto"') do (
|
|
|
|
echo build file:%%%i
|
|
|
|
%PROTOC_EXE% --proto_path="%WORK_DIR%" --csharp_out="%CS_OUT_PATH%" "%WORK_DIR%\%%i"
|
|
|
|
)
|
|
|
|
echo "==>>build finish"
|
|
|
|
echo "==>>copy cs"
|
|
|
|
|
2023-05-24 18:31:11 +08:00
|
|
|
copy %CS_OUT_PATH% ..\Protobuf\
|
2023-05-23 17:57:24 +08:00
|
|
|
|
|
|
|
pause
|