mirror of
https://github.com/fluencelabs/node-distro
synced 2024-12-04 15:20:17 +00:00
af31412d6f
* Prepare for multiarch * Fix * Fix * Fix * Move some code to scripts * Cleanup * Run chmod * Typo * Fix * Fixes * Typo * Install npm * Fix * Cleanup * Fix * Fix? * Updates
16 lines
388 B
Bash
Executable File
16 lines
388 B
Bash
Executable File
#! /usr/bin/env sh
|
|
|
|
case "$TARGETPLATFORM" in
|
|
'linux/amd64')
|
|
ARCHIVE="bitcoin-${BITCOIN_CLI_VERSION}-x86_64-linux-gnu.tar.gz"
|
|
;;
|
|
'linux/arm64')
|
|
ARCHIVE="bitcoin-${BITCOIN_CLI_VERSION}-aarch64-linux-gnu.tar.gz"
|
|
;;
|
|
esac
|
|
|
|
wget "https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_CLI_VERSION}/$ARCHIVE"
|
|
grep " $ARCHIVE\$" SHA256SUMS | sha256sum -c -
|
|
tar -xzf "$ARCHIVE"
|
|
rm "$ARCHIVE"
|