build.sh 346 B

1234567891011
  1. export GOBIN=$(go env GOPATH)/bin
  2. export PATH=$PATH:$GOBIN
  3. go install google.golang.org/protobuf/compiler/protogen
  4. export SNAKE_RPC_PATH=$PWD/snakesimulator
  5. mkdir -p $SNAKE_RPC_PATH
  6. rm -f $SNAKE_RPC_PATH/*.pb.go
  7. protoc -I$SNAKE_RPC_PATH --go_out=plugins=grpc:$SNAKE_RPC_PATH $SNAKE_RPC_PATH/snakesimulator.proto
  8. go build -o bin/snakesimulator