Switch back from betterproto to official protobuf library

This commit is contained in:
AuroraWright
2025-12-09 02:53:00 +01:00
parent 6580602818
commit eab954582d
43 changed files with 1682 additions and 1652 deletions

View File

@@ -7,7 +7,6 @@ fi
PROTO_PATH="$1"
mkdir tmp
protoc "--proto_path=$PROTO_PATH" --python_betterproto_out=tmp $PROTO_PATH/*.proto
mv tmp/lens/__init__.py owocr/lens_betterproto.py
rm -rf tmp
mkdir -p owocr/py_lens
protoc "--proto_path=$PROTO_PATH" --python_out=owocr/py_lens $PROTO_PATH/*.proto
sed -i '' "s/import lens_overlay/import owocr.py_lens.lens_overlay/" owocr/py_lens/*