Last active
April 27, 2019 18:11
-
-
Save deyvisonrocha/1395291c03e72c6b3799cdff0c092f2c to your computer and use it in GitHub Desktop.
How to install Bitcoin Confidential Desktop Wallet on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Downloading the wallet | |
echo 'Downloading the wallet' | |
wget "https://github.com/Bitcoin-Confidential/BitcoinC-Core/releases/download/v1.0.0/bitcoinc-1.0.0.0-x86_64-linux-gnu.tar.gz" -O ~/bitcoinc.tar.gz | |
# Extract the files | |
echo 'Extracting the files' | |
sudo tar xvzf ~/bitcoinc.tar.gz | |
# Download bitcoin confidential icon | |
echo 'Download Bitcoin Confidential Icon PNG' | |
mkdir -p ~/bitcoinc-1.0.0.0/assets | |
wget https://gist.githubusercontent.com/deyvisonrocha/41b87f0718dbe33a6629d06234ea9865/raw/5db4d783b6883dc21420d239805e2bc377f4e0b1/bitcoin-confidential-icon.png -O ~/bitcoinc-1.0.0.0/assets/icon.png.base64 | |
base4 -d <<< "$(cat ~/bitcoinc-1.0.0.0/assets/icon.png.base64)" > ~/bitcoinc-1.0.0.0/assets/icon.png | |
# Create a shortcut on system | |
echo 'Creating symbol link' | |
sudo ln -sf ~/bitcoinc-1.0.0.0/bin/bitcoinc-qt /usr/bin/bitcoinc-qt | |
# Create a .desktop current file | |
echo 'Create the BitcoinConfidential.desktop file' | |
echo -e '[Desktop Entry]\nVersion=1.0\nName=Bitcoin Confidential Desktop Wallet\nComment=Bitcoin Confidential Desktop Wallet\nExec=/usr/bin/bitcoinc-qt\nIcon="~/bitcoinc-1.0.0.0/assets/icon.png"\nTerminal=false\nStartupWMClass=bitcoinc-qt\nType=Application\nCategories=Finance;Internet;\n' | sudo tee /usr/share/applications/bitcoin-confidential.desktop | |
sudo chmod +x /usr/share/applications/bitcoin-confidential.desktop | |
echo 'Installation finish' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment