08f427899c
Summary: change go_package path Test Plan: none Reviewers: nex, wuyi Reviewed By: nex Differential Revision: https://phabricator.internetapi.cn/D29
17 lines
896 B
Batchfile
17 lines
896 B
Batchfile
@echo off
|
|
set dir=.\gen\web
|
|
set exe=protoc
|
|
set gen=protoc-protoc-gen-grpc-web
|
|
|
|
where /q %exe% || echo missing %exe% && exit /B
|
|
where /q %gen% || echo missing %gen% && exit /B
|
|
|
|
if not exist %dir% mkdir %dir%
|
|
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/common.proto
|
|
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/error_details.proto
|
|
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/ledger.proto
|
|
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/query.proto
|
|
%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/node.proto
|
|
|
|
echo all done
|