build.sh 308 B

123456789101112
  1. export GOBIN=$(go env GOPATH)/bin
  2. export PATH=$PATH:$GOBIN
  3. export RPC_PATH=$PWD/visualization
  4. go install google.golang.org/protobuf/compiler/protogen
  5. mkdir -p $RPC_PATH
  6. rm -f $RPC_PATH/*.pb.go
  7. protoc -I$RPC_PATH --go_out=plugins=grpc:$RPC_PATH $RPC_PATH/visualization.proto
  8. go build -o bin/neuralnetwork