From 2f11b04688d014bc708ca5b31276161c34dd3913 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Wed, 22 Jul 2020 07:27:51 -0500 Subject: [PATCH] Added MacOS support to install.sh --- install.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 7f70abc..97511be 100755 --- a/install.sh +++ b/install.sh @@ -5,9 +5,14 @@ INSTALL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd $INSTALL_DIR && -apt update && -apt install -y wget unzip build-essential cmake autotools-dev git clang golang mingw-w64 libcapstone-dev libssl-dev cowsay && - +if [[ "$OSTYPE" == "linux"* ]]; then + apt update && \ + apt install -y wget unzip build-essential cmake autotools-dev git clang golang mingw-w64 libcapstone-dev libssl-dev cowsay +elif [[ "$OSTYPE" == "darwin"* ]]; then + brew install cmake wget git mingw-w64 capstone go +else + echo "Warning: Unknown platform" +fi mkdir -p deps && cd deps &&