Files
grpc-web/install-protoc.sh
Johan Brandhorst-SatzkornandGitHub 313febfc6d Replace prototool with buf (#847)
* Replace prototool with buf

* Remove dep tooling references

* Update protoc and buf versions

* Add CI test to ensure files are consistently generated

* Update Go version to 1.16

* Remove dependencies added by tool installs in CI

* Update module file
2021-03-17 10:39:01 +00:00

22 lines
523 B
Bash
Executable File

#!/bin/bash
# Installs protoc; used for generating JS protobuf stubs.
# This script is intended to be run by CI
set -ex
if [[ -z "$PROTOC_VER" ]]; then
echo "PROTOC_VER environment variable not set"
exit 1
fi
curl -sSL \
https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-$(uname -m).zip \
-o protoc.zip
rm -rf protoc
mkdir -p protoc
unzip protoc.zip -d protoc
rm protoc.zip
chmod +x ./protoc/bin/protoc
echo 'export PATH=$PATH:$PWD/protoc/bin' >> $BASH_ENV