diff --git a/gen-grpc-unity.ps1 b/gen-grpc-unity.ps1 new file mode 100644 index 0000000..2388bed --- /dev/null +++ b/gen-grpc-unity.ps1 @@ -0,0 +1 @@ +unity/Packages/Grpc.Tools.2.33.1/tools/windows_x64/protoc.exe -I protobuf --csharp_out=unity/Assets/Scripts/grpc --grpc_out=unity/Assets/Scripts/grpc --plugin=protoc-gen-grpc=unity/Packages/Grpc.Tools.2.33.1/tools/windows_x64/grpc_csharp_plugin.exe $(ls | grep *.proto) \ No newline at end of file diff --git a/gen-grpc-unity.sh b/gen-grpc-unity.sh index 4b7961f..0aed2e7 100755 --- a/gen-grpc-unity.sh +++ b/gen-grpc-unity.sh @@ -1,4 +1,4 @@ #!/bin/bash chmod +x unity/Packages/Grpc.Tools.2.33.1/tools/linux_x64/protoc chmod +x unity/Packages/Grpc.Tools.2.33.1/tools/linux_x64/grpc_csharp_plugin -unity/Packages/Grpc.Tools.2.33.1/tools/linux_x64/protoc -I protobuf --csharp_out=unity/Assets/Scripts/grpc --grpc_out=unity/Assets/Scripts/grpc --plugin=protoc-gen-grpc=unity/Packages/Grpc.Tools.2.33.1/tools/linux_x64/grpc_csharp_plugin route_guide.proto \ No newline at end of file +unity/Packages/Grpc.Tools.2.33.1/tools/linux_x64/protoc -I protobuf --csharp_out=unity/Assets/Scripts/grpc --grpc_out=unity/Assets/Scripts/grpc --plugin=protoc-gen-grpc=unity/Packages/Grpc.Tools.2.33.1/tools/linux_x64/grpc_csharp_plugin $(ls protobuf | grep .proto) \ No newline at end of file