From ba9d9cfcae90f425e76484bdbc80673f5b4c03ef Mon Sep 17 00:00:00 2001 From: ThePerkinrex Date: Tue, 3 Nov 2020 22:33:14 +0100 Subject: [PATCH] Add scripts --- gen-grpc-unity.ps1 | 1 + gen-grpc-unity.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 gen-grpc-unity.ps1 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