build.sh 325 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. mkdir -p $RPC_PATH
  7. rm -f $RPC_PATH/*.pb.go
  8. protoc -I$RPC_PATH --go_out=plugins=grpc:$RPC_PATH $RPC_PATH/visualization.proto
  9. go build -o $GOBIN/neuralnetwork