build.sh 364 B

123456789101112
  1. export PATH=$PATH:$PWD/bin
  2. export GOBIN=$PWD/bin
  3. export GO111MODULES=on
  4. go get -u github.com/golang/protobuf/protoc-gen-go@v1.3.3
  5. export SNAKE_RPC_PATH=$PWD/snakesimulator
  6. mkdir -p $SNAKE_RPC_PATH
  7. rm -f $SNAKE_RPC_PATH/*.pb.go
  8. protoc -I$SNAKE_RPC_PATH --go_out=plugins=grpc:$SNAKE_RPC_PATH $SNAKE_RPC_PATH/snakesimulator.proto
  9. go build -o $GOBIN/snakesimulator