Skip to content

Commit

Permalink
Updated readme and install script
Browse files Browse the repository at this point in the history
  • Loading branch information
jsheely committed Apr 24, 2020
1 parent 756ba00 commit a3e0d88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>dart-sdk</code> and run using <code>dart bin\main.dart create</code>
- 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)
Expand Down
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]')
Expand Down

0 comments on commit a3e0d88

Please sign in to comment.