From 3744ec33a7287ee3d68e33c907e3cf32e1debb3b Mon Sep 17 00:00:00 2001 From: zhaocy Date: Tue, 31 May 2022 18:52:06 +0800 Subject: [PATCH] gitignore --- .gitignore | 3 ++- scripts/pb.bat | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 scripts/pb.bat diff --git a/.gitignore b/.gitignore index 96475ea72..1356975a7 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,9 @@ *.out *.log +bin/conf -.vscode +.vscode/ ./bin/log ~$*.xlsx cmd/luban/ \ No newline at end of file diff --git a/scripts/pb.bat b/scripts/pb.bat new file mode 100644 index 000000000..5fe3c22b6 --- /dev/null +++ b/scripts/pb.bat @@ -0,0 +1,16 @@ +@echo off + +set PROJECT_ROOT=E:/projects/workspace/go_dreamfactory + +set SRC_CLIENT=%PROJECT_ROOT%\proto\client +set TAR_CLIENT=%PROJECT_ROOT%\pb\client + +set SRC_SERVER=%PROJECT_ROOT%\proto\server +set TAR_SERVER=%PROJECT_ROOT%\pb\server + +::protoc -I %SRC_CLIENT% --go_out=%TAR_CLIENT% %SRC_CLIENT%/*.proto +protoc --proto_path=%SRC_CLIENT% --go_out=%TAR_CLIENT% --go_opt=paths=source_relative %SRC_CLIENT%\*.proto + +protoc --proto_path=%SRC_SERVER% --go_out=%TAR_SERVER% --go_opt=paths=source_relative %SRC_SERVER%\*.proto + +pause \ No newline at end of file