Files
EdgeCommon/build/build.sh

28 lines
561 B
Bash
Raw Permalink Normal View History

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