generate-protos.sh 640 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env bash
  2. (
  3. cd tools/
  4. ./build.sh
  5. )
  6. (
  7. cd third_party/
  8. [[ ! -d googleapis ]] && git clone https://github.com/googleapis/googleapis
  9. cd googleapis
  10. git checkout 24fb9e5d1f37110bfa198189c34324aa3fdb0896
  11. )
  12. tools/bin/buf protoc \
  13. -Iproto \
  14. -Ithird_party/googleapis \
  15. --plugin tools/bin/protoc-gen-go \
  16. --go_opt=module=github.com/certusone/wormhole/bridge/pkg \
  17. --go_out=bridge/pkg/ proto/**/**/**
  18. tools/bin/buf protoc \
  19. -Iproto \
  20. -Ithird_party/googleapis \
  21. --plugin tools/bin/protoc-gen-go-grpc \
  22. --go-grpc_opt=module=github.com/certusone/wormhole/bridge/pkg \
  23. --go-grpc_out=bridge/pkg/ proto/**/**/**