From a3e0d88d494bad0b03a8f1d348d5f2a71080e5b1 Mon Sep 17 00:00:00 2001 From: Jonathan Sheely Date: Fri, 24 Apr 2020 18:29:05 -0400 Subject: [PATCH] Updated readme and install script --- README.md | 4 ++++ install.sh | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d613118..e9a15b9 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ This cli utility speeds up creation of dappstarter based blockchain projects. An # Installation - You can go to releases to pull the latest binary compiled version and add installation location to your system's PATH - Install from source using dart-sdk and run using dart bin\main.dart create +- If you're using _Linux_ or _Mac OSX_ you can use +``` +curl https://raw.githubusercontent.com/trycrypto/dappstarter-cli/master/install.sh -sfSL | bash +``` # Usage ![QuickStart](https://www.dropbox.com/s/vz1kkvz5tkjtblw/dappstarter-cli-branded.gif?raw=1) diff --git a/install.sh b/install.sh index e64a296..5c788bf 100755 --- a/install.sh +++ b/install.sh @@ -14,13 +14,13 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then if [ -f /etc/debian_version ]; then if ! which jq >/dev/null 2>&1; then $MAKE_ME_ROOT apt update - $MAKE_ME_ROOT apt install -y jq curl + $MAKE_ME_ROOT apt install -y jq curl unzip fi elif [ -f /etc/arch-release ]; then $MAKE_ME_ROOT pacman -Syu --needed --noconfirm jq curl else - if ! which jq curl >/dev/null 2>&1; then - echo "Dependency curl or jq not met. Please install these packages using the package manager for your distribution." + if ! which jq curl unzip >/dev/null 2>&1; then + echo "Dependency curl, unzip or jq not met. Please install these packages using the package manager for your distribution." exit 1 fi fi @@ -32,9 +32,9 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" fi - if ! which jq >/dev/null 2>&1; then + if ! which jq curl unzip >/dev/null 2>&1; then brew update - brew install jq curl + brew install jq curl unzip fi ASSETS=$(curl -sL $RELEASE_URL | jq '[.assets|.[].browser_download_url]')