Skip to content

Commit

Permalink
refactor: update gen script
Browse files Browse the repository at this point in the history
 * Use new repo url camunda/camunda
 * Make use of different path (zeebe subfolder) in mono-repo
 * simplify script
  • Loading branch information
ChrisKujawa committed May 27, 2024
1 parent 6c7940c commit 46e702b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions generate-grpc/gen-grpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
set -euxo pipefail

os=linux_x64
grpcVersion=2.51.0
grpcVersion=2.64.0
packagePath=~/.nuget/packages/grpc.tools/${grpcVersion}/tools/${os}/
zeebeVersion='8.4.1'
zeebeVersion='8.5.1'
protoFile=gateway.proto
gwProtoPath=./
genPath=Client/Impl/proto

url="https://raw.githubusercontent.com/camunda/camunda/${zeebeVersion}/zeebe/gateway-protocol/src/main/proto/${protoFile}"


DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR
Expand All @@ -22,8 +24,8 @@ echo -e "nuget restore Zeebe.sln\n"
dotnet restore Zeebe.sln

# get gatway proto file
echo -e "curl -X GET https://raw.githubusercontent.com/zeebe-io/zeebe/${zeebeVersion}/gateway-protocol/src/main/proto/gateway.proto > ${protoFile}\n"
curl -X GET https://raw.githubusercontent.com/zeebe-io/zeebe/${zeebeVersion}/gateway-protocol/src/main/proto/${protoFile} > ${protoFile}
echo -e "curl -X GET $url > ${protoFile}\n"
curl -X GET "$url" > ${protoFile}


# generate gRPC
Expand Down

0 comments on commit 46e702b

Please sign in to comment.