mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-13 14:18:47 +01:00
18 lines
411 B
Bash
18 lines
411 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
if ! which realpath > /dev/null 2>&1
|
||
|
then
|
||
|
echo realpath is not installed
|
||
|
echo run: brew install coreutils
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
old_pwd=$(pwd)
|
||
|
script_path=$(dirname $(realpath "$0"))
|
||
|
cd "$script_path"
|
||
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
|
||
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
|
||
|
protoc -I ./ ./flow.proto --go_out=../ --go-grpc_out=../
|
||
|
cd "$old_pwd"
|