From e7ebd55c31148089eb54ffbd708216c1c7cb09ff Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 29 Sep 2018 22:03:50 +0200 Subject: Add support for macos --- install.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index c73d777..775fa6b 100755 --- a/install.sh +++ b/install.sh @@ -2,8 +2,14 @@ set -e +case "$(uname -s)" in + Linux*) bin_dir="/usr/bin" ;; + Darwin*) bin_dir="/usr/local/bin" ;; + *) echo "The install file can only be run on linux and mac" && exit 1 ;; +esac + project_dir=`dirname $0` sibs build $project_dir --release -sudo cp "$project_dir/sibs-build/release/sibs" "/usr/bin/sibs" -echo "Copied $project_dir/sibs-build/release/sibs to /usr/bin/sibs" -echo "Installation successful!" \ No newline at end of file +sudo cp "$project_dir/sibs-build/release/sibs" "$bin_dir/sibs" +echo "Copied $project_dir/sibs-build/release/sibs to $bin_dir/sibs" +echo "Installation successful!" -- cgit v1.2.3