Update scripts
This commit is contained in:
		
							parent
							
								
									2d75620457
								
							
						
					
					
						commit
						0c405e4b51
					
				@ -1,4 +1,5 @@
 | 
				
			|||||||
@echo off
 | 
					@echo off
 | 
				
			||||||
 | 
					cd /d "%~dp0"
 | 
				
			||||||
set dir=.\gen\go
 | 
					set dir=.\gen\go
 | 
				
			||||||
set exe=protoc
 | 
					set exe=protoc
 | 
				
			||||||
set gen=protoc-gen-go
 | 
					set gen=protoc-gen-go
 | 
				
			||||||
@ -11,8 +12,8 @@ where /q %gen% || echo missing %gen% && exit /B
 | 
				
			|||||||
if not exist %dir% mkdir %dir%
 | 
					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/common.proto
 | 
				
			||||||
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/error_details.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/ledger.proto
 | 
				
			||||||
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/query.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
 | 
					echo all done
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										14
									
								
								gen-go.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								gen-go.sh
									
									
									
									
									
								
							@ -1,7 +1,9 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
mkdir -p gen/go
 | 
					cd "${0%/*}"
 | 
				
			||||||
protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/common.proto
 | 
					dir=gen/go
 | 
				
			||||||
protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/error_details.proto
 | 
					mkdir -p $dir
 | 
				
			||||||
protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/ledger.proto
 | 
					protoc -I . --go_out=plugins=grpc:$dir bdledger/api/common.proto
 | 
				
			||||||
protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/query.proto
 | 
					protoc -I . --go_out=plugins=grpc:$dir bdledger/api/error_details.proto
 | 
				
			||||||
protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/node.proto
 | 
					protoc -I . --go_out=plugins=grpc:$dir bdledger/api/node.proto
 | 
				
			||||||
 | 
					protoc -I . --go_out=plugins=grpc:$dir bdledger/api/ledger.proto
 | 
				
			||||||
 | 
					protoc -I . --go_out=plugins=grpc:$dir bdledger/api/query.proto
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,5 @@
 | 
				
			|||||||
@echo off
 | 
					@echo off
 | 
				
			||||||
 | 
					cd /d "%~dp0"
 | 
				
			||||||
set dir=.\gen\web
 | 
					set dir=.\gen\web
 | 
				
			||||||
set exe=protoc
 | 
					set exe=protoc
 | 
				
			||||||
set gen=protoc-protoc-gen-grpc-web
 | 
					set gen=protoc-protoc-gen-grpc-web
 | 
				
			||||||
@ -9,8 +10,8 @@ where /q %gen% || echo missing %gen% && exit /B
 | 
				
			|||||||
if not exist %dir% mkdir %dir%
 | 
					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/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/error_details.proto
 | 
				
			||||||
 | 
					%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/node.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/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/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
 | 
					echo all done
 | 
				
			||||||
 | 
				
			|||||||
@ -1,8 +1,9 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					cd "${0%/*}"
 | 
				
			||||||
dir=gen/web
 | 
					dir=gen/web
 | 
				
			||||||
mkdir -p $dir
 | 
					mkdir -p $dir
 | 
				
			||||||
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/common.proto
 | 
					protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/common.proto
 | 
				
			||||||
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/error_details.proto
 | 
					protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/error_details.proto
 | 
				
			||||||
 | 
					protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/node.proto
 | 
				
			||||||
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/ledger.proto
 | 
					protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/ledger.proto
 | 
				
			||||||
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/query.proto
 | 
					protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/query.proto
 | 
				
			||||||
protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/node.proto
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user