plug-sdk/scripts/generate_grpc_files.sh
SoXX adae7695c4
All checks were successful
Gitea Build Check / Build (pull_request) Successful in 40s
fix: wrong user
2024-08-26 16:50:25 +02:00

15 lines
297 B
Bash

#!/bin/bash
export PATH="$PATH:$(go env GOPATH)/bin"
mkdir -p "pkg/grpc"
protoc \
--proto_path=third_party/grpc-proto \
--go_out=pkg/grpc \
--go_opt=paths=source_relative \
--go-grpc_out=pkg/grpc \
--go-grpc_opt=paths=source_relative \
third_party/grpc-proto/*.proto