This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
plug-sdk/scripts
2024-02-20 21:12:49 +01:00
..
generate_grpc_files.ps1 feat: restructure to be a SDK 2024-02-20 19:11:34 +01:00
generate_grpc_files.sh feat: working implementation of base features 2024-02-20 21:12:49 +01:00
README.md doc: updated readme to include all steps 2024-02-20 10:59:34 +01: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@latest
    

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