Skip to content

Instantly share code, notes, and snippets.

@vitalbh
Last active July 15, 2021 20:34
Show Gist options
  • Save vitalbh/259ba0cec1a4afa34881bdb23a62ad82 to your computer and use it in GitHub Desktop.
Save vitalbh/259ba0cec1a4afa34881bdb23a62ad82 to your computer and use it in GitHub Desktop.
#!/bin/bash
PROTOC_ZIP=protoc-3.17.3-osx-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
# checks
which protoc
protoc --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment