From 2ddab8e424977e2907eaeff9ef22c1ed7b259093 Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Mon, 6 Apr 2020 17:19:16 +0200 Subject: [PATCH] Fix install-protobuf script for macosx install Signed-off-by: Guillaume Lours --- scripts/setup/install-protobuf | 2 ++ setup-dev.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/setup/install-protobuf b/scripts/setup/install-protobuf index 88a9c983..0ac7de5c 100755 --- a/scripts/setup/install-protobuf +++ b/scripts/setup/install-protobuf @@ -37,6 +37,8 @@ amd64|386) wget -O $PROTOBUF_DIR/protobuf "https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-win32.zip" elif [ "$GOOS" = linux ]; then wget -O $PROTOBUF_DIR/protobuf "https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-linux-x86_64.zip" + elif [ "$GOOS" = darwin ]; then + wget -O $PROTOBUF_DIR/protobuf "https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-osx-x86_64.zip" fi unzip $PROTOBUF_DIR/protobuf -d /usr/local ;; diff --git a/setup-dev.sh b/setup-dev.sh index 1e78ca6e..cb0e8a1b 100755 --- a/setup-dev.sh +++ b/setup-dev.sh @@ -25,6 +25,6 @@ # ARISING FROM, OUT OF OR IN CONNECTION WITH # THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -./scripts/setup/install-protobufs +./scripts/setup/install-protobuf go get github.com/stevvooe/protobuild