mirror of
https://github.com/langhuihui/monibuca.git
synced 2026-04-23 01:07:03 +08:00
feat: add sei plugin
This commit is contained in:
+20
-2
@@ -1,4 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
protoc -I. --go_out=. --go_opt=paths=source_relative --go-grpc_out=. \
|
||||
--go-grpc_opt=paths=source_relative --grpc-gateway_out=. --grpc-gateway_opt=paths=source_relative ${1}.proto
|
||||
name=$(basename $(pwd))
|
||||
cd pb
|
||||
# Run the protoc command
|
||||
protoc -I. \
|
||||
-I"../../../pb" \
|
||||
--go_out=. \
|
||||
--go_opt=paths=source_relative \
|
||||
--go-grpc_out=. \
|
||||
--go-grpc_opt=paths=source_relative \
|
||||
--grpc-gateway_out=. \
|
||||
--grpc-gateway_opt=paths=source_relative \
|
||||
"${name}.proto"
|
||||
|
||||
# Check if the command was successful
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Proto files for ${name} built successfully"
|
||||
else
|
||||
echo "Error building proto files for ${name}"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user