Files
EdgeCommon/build/build.sh

23 lines
462 B
Bash
Raw Normal View History

2020-09-13 19:27:47 +08:00
#!/usr/bin/env bash
echo "starting ..."
2020-10-10 11:49:30 +08:00
#rm -f ../pkg/rpc/pb/*.pb.go
protoc --go-grpc_out=../pkg/rpc --go-grpc_opt=require_unimplemented_servers=false --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/*.proto
RESULT=$?
if [ "${RESULT}" != "0" ]; then
exit
fi
protoc --go_out=../pkg/rpc --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/models/*.proto
RESULT=$?
if [ "${RESULT}" != "0" ]; then
exit
fi
# generate rpc.json
./proto-json.sh --quiet
echo "ok"