central-api/src/main/proto/build
crusader 49f54ef0e3 ing
2018-04-25 18:35:38 +09:00

21 lines
535 B
Plaintext
Executable File

# https://github.com/google/protobuf/releases
# Unzip
#unzip protoc-3.3.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
#sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
#sudo mv protoc3/include/* /usr/local/include/
# For go
#go get -u github.com/golang/protobuf/protoc-gen-go
# Optional: change owner
#sudo chown $USER /usr/local/bin/protoc
#sudo chown -R $USER /usr/local/include/google
protoc -I src/main/proto/ src/main/proto/central-api.proto --go_out=plugins=grpc:golang