Commit 6d674e08 authored by Artem B's avatar Artem B
Browse files

Merge branch 'installer' into 'Current-dev'

Account for 32-/64-bit environment when downloading package #224

See merge request crown/crown-core!141
parents 180552cb 2761bac8
Showing with 6 additions and 1 deletion
+6 -1
......@@ -137,8 +137,13 @@ download_package() {
dir=$HOME/crown-temp
mkdir -p $dir
fi
# 32 or 64 bit? If getconf fails we'll assume 64
BITS=$(getconf LONG_BIT 2>/dev/null)
if [ $? -ne 0 ]; then
BITS=64
fi
# Change this later to take latest release version.
wget "https://github.com/Crowndev/crowncoin/releases/download/$LATEST_RELEASE/Crown-Linux64.zip" -O $dir/crown.zip
wget "https://github.com/Crowndev/crowncoin/releases/download/$LATEST_RELEASE/Crown-Linux$BITS.zip" -O $dir/crown.zip
}
install_package() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment