build.sh 456 B

12345678910111213
  1. export GOPATH=$PWD
  2. export PATH=$PATH:$PWD/bin
  3. export GOBIN=$PWD/bin
  4. go get github.com/golang/protobuf/protoc-gen-go
  5. go install ./src/github.com/golang/protobuf/protoc-gen-go
  6. export HANDWRITING_RPC_PATH=$PWD
  7. mkdir -p $HANDWRITING_RPC_PATH
  8. rm -f $HANDWRITING_RPC_PATH/handwriting/*.pb.go
  9. protoc -I$HANDWRITING_RPC_PATH --go_out=plugins=grpc:$HANDWRITING_RPC_PATH/handwriting $HANDWRITING_RPC_PATH/handwriting.proto
  10. go get -v
  11. go build -o $GOBIN/handwriting