plug-sdk/scripts
2024-08-26 16:50:25 +02:00
..
generate_grpc_files.ps1 fix: wrong user 2024-08-26 16:50:25 +02:00
generate_grpc_files.sh fix: wrong user 2024-08-26 16:50:25 +02:00
README.md fix: wrong user 2024-08-26 16:50:25 +02:00

Generate the gRPC files

To generate the gRPC files you need to do the following:

Prerequisites:

  1. You need to install the gRPC Compiler
  2. Install the Golang Plugin for the compiler
    go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
    go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2 
    

Generate:

  1. Download the Git submodules (if you didn't clone this repo with git clone --recurse-submodules)

    git submodule init
    git submodule update
    
  2. Edit the scripts, find the variable plugName and set its value to the name of the plug.

  3. Depending on what OS you are running execute one of the following scripts:

    scripts/generate_grpc_files.sh
    scripts/generate_grpc_files.ps1