Skip to content

Commit

Permalink
Change the URL pattern of Crown Core binary
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanzhenzhen committed Oct 24, 2018
1 parent e31352d commit 09f44cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-<xxx>` where `<xxx>` 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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bitcore-node-crown",
"description": "Full node with extended capabilities using Bitcore and Crown Core",
"author": "Crown Developers <[email protected]>",
"version": "0.1.3",
"version": "0.1.4",
"publishConfig": {
"tag": "next"
},
Expand Down
9 changes: 3 additions & 6 deletions scripts/download
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 09f44cd

Please sign in to comment.