mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 08:29:33 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			335 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			335 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| source ./proto_dir.cfg
 | |
| 
 | |
| for ((i = 0; i < ${#all_proto[*]}; i++)); do
 | |
|   proto=${all_proto[$i]}
 | |
|   protoc --go_out=plugins=grpc:. $proto
 | |
|   s=`echo $proto | sed 's/ //g'`
 | |
|   v=${s//proto/pb.go}
 | |
|   protoc-go-inject-tag -input=./$v
 | |
|   echo "protoc --go_out=plugins=grpc:." $proto
 | |
| done
 | |
| echo "proto file generate success..."
 |