Add web platform

This commit is contained in:
Nex
2018-10-31 15:31:46 +08:00
parent e402bf1ef2
commit e94f067e26
5 changed files with 29 additions and 1 deletions

17
gen-go.bat Normal file
View File

@@ -0,0 +1,17 @@
@echo off
set dir=.\gen\go
set exe=protoc
set gen=protoc-gen-go
if defined GOPATH set PATH=%PATH%;%GOPATH%\bin
where /q %exe% || echo missing %exe% && exit /B
where /q %gen% || echo missing %gen% && exit /B
if not exist %dir% mkdir %dir%
%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/common.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/error_details.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/tx_ledger.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdchain/api/ac_chain.proto
echo all done