build.sh 380 B

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