build.sh 437 B

12345678910111213
  1. export PATH=$PATH:$PWD/bin
  2. export GOBIN=$PWD/bin
  3. export RPC_PATH=$PWD/visualization
  4. export GO111MODULE=on
  5. go get -u github.com/golang/protobuf/protoc-gen-go@v1.3.3
  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 build -o $GOBIN/handwriting