Update scripts

This commit is contained in:
Nex
2020-03-07 13:53:11 +08:00
parent 2d75620457
commit 0c405e4b51
4 changed files with 14 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
@echo off
cd /d "%~dp0"
set dir=.\gen\go
set exe=protoc
set gen=protoc-gen-go
@@ -11,8 +12,8 @@ where /q %gen% || echo missing %gen% && exit /B
if not exist %dir% mkdir %dir%
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/common.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/error_details.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/node.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/ledger.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/query.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/node.proto
echo all done