2024-07-02 02:01:18 +00:00
|
|
|
#!/bin/bash
|
2024-07-04 16:00:50 +00:00
|
|
|
ZVERSION="0.6.0.0"
|
2024-07-02 02:01:18 +00:00
|
|
|
echo
|
2024-07-04 16:00:50 +00:00
|
|
|
echo "Zenith Full Node Wallet Installer"
|
|
|
|
echo "Zenith Version: $ZVERSION"
|
|
|
|
echo "Installer version: 1.0"
|
2024-07-02 02:01:18 +00:00
|
|
|
echo
|
|
|
|
if [ "$UID" != "0" ]; then
|
|
|
|
echo "Please run the installer using 'sudo'!!!"
|
|
|
|
echo
|
|
|
|
exit
|
|
|
|
else
|
|
|
|
echo "Starting zenith installation ...."
|
|
|
|
echo
|
|
|
|
echo "Installing dependencies ...."
|
|
|
|
apt update
|
|
|
|
apt -y install libxss-dev
|
|
|
|
apt -y install libxrandr-dev
|
|
|
|
apt -y install libsecp256k1-dev
|
|
|
|
apt -y install xclip
|
|
|
|
apt -y clean
|
|
|
|
echo
|
|
|
|
echo "Installing zenith ...."
|
|
|
|
cp ./bin/zenith /usr/local/bin
|
|
|
|
cp ./lib/librustzcash_wrapper.so /usr/local/lib
|
|
|
|
cp ./lib/sapling-spend.params /usr/local/lib
|
|
|
|
cp ./lib/sapling-output.params /usr/local/lib
|
2024-07-04 16:00:50 +00:00
|
|
|
dpkg -i ./lib/libc6_2.38-1ubuntu6_amd64.deb ./lib/libc-bin_2.38-1ubuntu6_amd64.deb ./lib/libc-dev-bin_2.38-1ubuntu6_amd64.deb
|
2024-07-02 02:01:18 +00:00
|
|
|
echo
|
2024-07-04 16:00:50 +00:00
|
|
|
echo "Zenith $ZVERSION installed !!!"
|
2024-07-02 02:01:18 +00:00
|
|
|
echo
|
|
|
|
fi
|