2025-06-07 18:57:50 +08:00

16 lines
325 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
setlocal enabledelayedexpansion
echo P_Common作为基础公共类必须最先编译
%~dps0protoc -o .\pb\P_Common.pb .\proto\P_Common.proto
echo 编译csproto完成
for /f %%i in ('dir /b .\proto\*.proto') do (
set p=%%i & echo !p:~-0,-7!
%~dps0protoc -o .\pb\!p:~-0,-7!.pb .\proto\!p:~-0,-7!.proto
)
echo 编译pb完成