update install-deps.sh
This commit is contained in:
parent
b7edc95bc4
commit
66342b1e15
@ -190,15 +190,15 @@ function run_installer()
|
|||||||
|
|
||||||
function find_eth()
|
function find_eth()
|
||||||
{
|
{
|
||||||
ETH_PATH=`which eth 2>/dev/null`
|
ETH_PATH=`which parity 2>/dev/null`
|
||||||
|
|
||||||
if [[ -f $ETH_PATH ]]
|
if [[ -f $ETH_PATH ]]
|
||||||
then
|
then
|
||||||
check "Found eth: $ETH_PATH"
|
check "Found parity: $ETH_PATH"
|
||||||
echo "$($ETH_PATH -V)"
|
echo "$($ETH_PATH -V)"
|
||||||
isEth=true
|
isEth=true
|
||||||
else
|
else
|
||||||
uncheck "Eth is missing"
|
uncheck "parity is missing"
|
||||||
isEth=false
|
isEth=false
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -316,16 +316,22 @@ function run_installer()
|
|||||||
{
|
{
|
||||||
osx_dependency_installer
|
osx_dependency_installer
|
||||||
|
|
||||||
|
info "Adding ethcore repository"
|
||||||
|
exe brew tap ethcore/ethcore git@github.com:ethcore/homebrew-ethcore.git
|
||||||
|
echo
|
||||||
|
|
||||||
info "Updating brew"
|
info "Updating brew"
|
||||||
exe brew update
|
exe brew update
|
||||||
echo
|
echo
|
||||||
|
|
||||||
info "Installing rocksdb"
|
info "Installing parity"
|
||||||
exe brew install rocksdb
|
if [[ $isEth == true ]]
|
||||||
info "Installing multirust"
|
then
|
||||||
exe brew install multirust
|
exe brew reinstall parity
|
||||||
sudo multirust update nightly
|
else
|
||||||
sudo multirust default nightly
|
exe brew install parity
|
||||||
|
exe brew linkapps parity
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -395,6 +401,9 @@ function run_installer()
|
|||||||
sudo multirust update nightly
|
sudo multirust update nightly
|
||||||
sudo multirust default nightly
|
sudo multirust default nightly
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
info "Installing parity"
|
||||||
|
wget --quiet --output-document=- http://ethcore.io/download/parity.deb | dpkg --install -
|
||||||
}
|
}
|
||||||
|
|
||||||
function install()
|
function install()
|
||||||
@ -414,12 +423,12 @@ function run_installer()
|
|||||||
function verify_installation()
|
function verify_installation()
|
||||||
{
|
{
|
||||||
info "Verifying installation"
|
info "Verifying installation"
|
||||||
# find_eth
|
find_eth
|
||||||
|
|
||||||
# if [[ $isEth == false ]]
|
if [[ $isEth == false ]]
|
||||||
# then
|
then
|
||||||
# abortInstall
|
abortInstall
|
||||||
# fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function abortInstall()
|
function abortInstall()
|
||||||
|
Loading…
Reference in New Issue
Block a user