mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update gen_pb_code.bat
This commit is contained in:
@@ -1,21 +1,21 @@
|
|||||||
@REM @echo off & setlocal enabledelayedexpansion
|
@echo off & setlocal enabledelayedexpansion
|
||||||
@REM cd %~dp0
|
cd %~dp0
|
||||||
@REM echo =================start gen proto code=================
|
echo =================start gen proto code=================
|
||||||
@REM set pb_path=pb_message
|
set pb_path=pb_schemas
|
||||||
@REM set out_path=..\..\Assets\GameMain\HotFix\Scripts\Proto
|
set out_path=..\..\Assets\GameScripts\HotFix\GameProto\GameProtocol
|
||||||
@REM del /f /s /q %out_path%\*.*
|
del /f /s /q %out_path%\*.*
|
||||||
@REM for /f "delims=" %%i in ('dir /b %pb_path%') do (
|
for /f "delims=" %%i in ('dir /b %pb_path%') do (
|
||||||
@REM echo ------------%%i start gen
|
echo ------------%%i start gen
|
||||||
@REM protoc -I=pb_message --csharp_out=../../Assets/GameMain/HotFix/Scripts/Proto pb_message\%%i
|
protoc -I=pb_schemas --csharp_out=../../Assets/GameScripts/HotFix/GameProto/GameProtocol pb_schemas\%%i
|
||||||
@REM echo ------------%%i gen success
|
echo ------------%%i gen success
|
||||||
@REM )
|
)
|
||||||
@REM echo =================end gen proto code=================
|
echo =================end gen proto code=================
|
||||||
@REM set cur_path=%~dp0
|
set cur_path=%~dp0
|
||||||
@REM set outEventPath=../../Assets\GameMain\HotFix\Scripts\Proto\Definition\Constant
|
set outEventPath=../../Assets\GameScripts\HotFix\GameProto\GameProtocol
|
||||||
@REM call ProtobufResolver.exe %cur_path%pb_message %outEventPath%
|
call ProtobufResolver.exe %cur_path%pb_schemas %outEventPath%
|
||||||
@REM echo =================end gen proto event=================
|
echo =================end gen proto event=================
|
||||||
@REM pause
|
pause
|
||||||
|
|
||||||
protoc -I=pb_schemas --csharp_out=Gen pb_schemas\proto_cs.proto proto_cs_common.proto pb_schemas\proto_cs_player.proto
|
@REM protoc -I=pb_schemas --csharp_out=Gen pb_schemas\proto_cs.proto proto_cs_common.proto pb_schemas\proto_cs_player.proto
|
||||||
|
|
||||||
pause
|
pause
|
Reference in New Issue
Block a user