Merge pull request #2 from glours/fix_macosx_protobuff_setup

Fix install-protobuf script for macosx install
This commit is contained in:
Michael Crosby 2020-04-06 11:23:36 -04:00 committed by GitHub
commit be8e73292c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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" wget -O $PROTOBUF_DIR/protobuf "https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-win32.zip"
elif [ "$GOOS" = linux ]; then 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" 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 fi
unzip $PROTOBUF_DIR/protobuf -d /usr/local unzip $PROTOBUF_DIR/protobuf -d /usr/local
;; ;;

View File

@ -25,6 +25,6 @@
# ARISING FROM, OUT OF OR IN CONNECTION WITH # ARISING FROM, OUT OF OR IN CONNECTION WITH
# THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # 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 go get github.com/stevvooe/protobuild