From 1fb552a9728496b84a7d08f815a797d121695550 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Thu, 7 Apr 2016 15:37:30 -0400 Subject: [PATCH] build: download bitcoin binary distribution --- .gitignore | 10 +--------- scripts/install | 10 ++++++---- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index d72450d4..e94d8aba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,7 @@ node_modules/ node_modules/* coverage/* -out/ -out/* -build/ -build/* .lock-wscript -Makefile.gyp *.swp *.Makefile *.target.gyp.mk @@ -19,15 +14,12 @@ Makefile.gyp *.filters *.user *.project -test.js **/*.dylib **/*.so **/*.old **/*.files **/*.config **/*.creator -libbitcoind -libbitcoind* -libbitcoind.includes *.log .DS_Store +bin/bitcoin* \ No newline at end of file diff --git a/scripts/install b/scripts/install index 496ca5d2..132775f3 100755 --- a/scripts/install +++ b/scripts/install @@ -3,8 +3,9 @@ root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.." platform=`uname -a | awk '{print tolower($1)}'` arch=`uname -m` -version="0.12.0-bitcore" -url="https://github.com/" +version="0.12.0" +url="https://github.com/braydonf/bitcoin/releases/download" +tag="v0.12.0-bitcore-beta1" cd "${root_dir}/bin" @@ -21,7 +22,7 @@ else exit -1 fi -binary_url="${url}/${tarball_name}" +binary_url="${url}/${tag}/${tarball_name}" echo "Downloading bitcoin: ${binary_url}" @@ -35,7 +36,7 @@ fi if test $? -eq 0; then if [ "${is_curl}" = true ]; then - curl $binary_url > $tarball_name + curl -L $binary_url > $tarball_name else wget $binary_url fi @@ -43,6 +44,7 @@ if test $? -eq 0; then echo "Unpacking bitcoin distribution" tar -xvzf $tarball_name if test $? -eq 0; then + ln -s "bitcoin-${version}/bin/bitcoind" exit 0 fi fi