From 42f785db66e9a2ed134c3141e2444c77fa01915b Mon Sep 17 00:00:00 2001 From: "WIN-20240218AEU\\Administrator" <123456@qq.com> Date: Tue, 16 Apr 2024 16:22:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- close.bat | 9 +++++++++ gen_goWebProto.bat | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 close.bat create mode 100644 gen_goWebProto.bat diff --git a/close.bat b/close.bat new file mode 100644 index 0000000..7472d30 --- /dev/null +++ b/close.bat @@ -0,0 +1,9 @@ +TASKKILL /F /IM gatesrv.exe +TASKKILL /F /IM mgrsrv.exe +TASKKILL /F /IM worldsrv.exe +TASKKILL /F /IM gamesrv.exe +TASKKILL /F /IM robot.exe +TASKKILL /F /IM minigame.exe +TASKKILL /F /IM dbproxy.exe +TASKKILL /F /IM ranksrv.exe +clrlogs.bat \ No newline at end of file diff --git a/gen_goWebProto.bat b/gen_goWebProto.bat new file mode 100644 index 0000000..035d7d6 --- /dev/null +++ b/gen_goWebProto.bat @@ -0,0 +1,21 @@ + +copy +@echo off +set work_path=%cd% +set proto_path=%work_path%\protocol +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" + +echo %protoc3% +cd %proto_path% +for /d %%s in (,*) do ( + rem if %%s NEQ webapi ( + cd %%s + for %%b in (,*.proto) do ( + echo %%b + %protoc% --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=. %%b + ) + cd .. + rem ) +) +pause \ No newline at end of file