Skip to content

Commit

Permalink
update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Apr 9, 2024
1 parent b09307b commit 61f6ff1
Show file tree
Hide file tree
Showing 23 changed files with 5,793 additions and 5,685 deletions.
14 changes: 13 additions & 1 deletion build-proto.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
#!/bin/bash

# typescript
npm install @protobuf-ts/plugin
npx protoc --ts_out src/proto \
mkdir -p dist/proto/typescript
npx protoc --ts_out dist/proto/typescript \
--experimental_allow_proto3_optional \
--ts_opt long_type_number,server_generic \
--proto_path proto proto/*.proto
mkdir -p src/proto
cp -Rf dist/proto/typescript/* src/proto/


# python
python3 -m venv tmp/protobuild-venv
. tmp/protobuild-venv/bin/activate
pip install grpcio-tools
mkdir -p dist/proto/python
python -m grpc_tools.protoc -Iproto --python_out=dist/proto/python --pyi_out=dist/proto/python --grpc_python_out=dist/proto/python proto/*.proto
Loading

0 comments on commit 61f6ff1

Please sign in to comment.