diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6f558b665..a2976e0ed 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,4 +20,4 @@ Bitcoin script addresses in the test has been replaced with Crown script address When typing `npm install`, the "scripts/download" script will download `crownd` from the web (by default), or copy from local file `~/zzz-crown-binaries/crownd` (if you uncomment a line in the script). -If the Crown Core is modified, then in "scripts/download" we should modify `bitcore-bin-` where `` is a 3-digit number that reflects the tag of the new Crown Core binary, and release a new version of bitcore-node-crown. +If the Crown Core is modified, then in "scripts/download" we should modify the value of `binary_url` to the new binary's URL, and release a new version of bitcore-node-crown. diff --git a/package.json b/package.json index af87ae036..df904912d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "bitcore-node-crown", "description": "Full node with extended capabilities using Bitcore and Crown Core", "author": "Crown Developers ", - "version": "0.1.3", + "version": "0.1.4", "publishConfig": { "tag": "next" }, diff --git a/scripts/download b/scripts/download index ad548325f..6e98b1c3f 100755 --- a/scripts/download +++ b/scripts/download @@ -2,13 +2,12 @@ set -e -tag="bitcore-bin-005" -#tag="" # uncomment this line if you want to copy file from ~/zzz-crown-binaries rather than download +binary_url="https://gitlab.crown.tech/crown/crown-core/uploads/a20bff1013877f03fc5a89ce0fc23c54/crownd.tar.gz" +#binary_url="" # uncomment this line if you want to copy file from ~/zzz-crown-binaries rather than download root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.." platform=`uname -a | awk '{print tolower($1)}'` arch=`uname -m` -url="https://github.com/zhanzhenzhen/crowncoin/releases/download" if [ "${platform}" == "linux" ]; then if [ "${arch}" == "x86_32" ]; then @@ -25,13 +24,11 @@ fi cd "${root_dir}/bin" -if [ "${tag}" == "" ]; then +if [ "${binary_url}" == "" ]; then cp ~/zzz-crown-binaries/crownd ./bitcoind exit 0 fi -binary_url="${url}/${tag}/crownd.tar.gz" - echo "Downloading crown: ${binary_url}" curl -L "${binary_url}" > crownd.tar.gz