Skip to content

Commit df6c6c5

Browse files
authored
Merge pull request #228 from prefab-cloud/update-proto-plus-script
Update protos with schema type support.
2 parents 432cd9c + 05b8197 commit df6c6c5

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

compile_protos.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
set -e
44

5+
PROTO_ROOT="${PROTO_ROOT:-..}"
6+
57
gem install grpc-tools
68

79
(
8-
cd ../prefab-cloud
10+
cd "$PROTO_ROOT/prefab-cloud"
911
git pull --rebase
1012
)
1113

12-
grpc_tools_ruby_protoc -I ../prefab-cloud/ --ruby_out=lib --grpc_out=lib prefab.proto
14+
grpc_tools_ruby_protoc -I "$PROTO_ROOT/prefab-cloud/" --ruby_out=lib --grpc_out=lib prefab.proto
1315

1416
gsed -i 's/^module Prefab$/module PrefabProto/g' lib/prefab_pb.rb
1517

0 commit comments

Comments
 (0)