zenith-install - Zenith installer updated to version 0.6.0.0

Automatic creation of "tar.gz" package included
This commit is contained in:
Rene V. Vergara A. 2024-07-04 12:00:50 -04:00
parent 6d6c62ff00
commit 7aa8801cce
45 changed files with 43 additions and 11 deletions

View file

@ -1,13 +1,33 @@
#!/bin/bash #!/bin/bash
ZVERSION="0.6.0.0"
echo echo
echo "Updating installer binary files ...." echo "Updating installer binary files ...."
echo echo
echo "... copying zenith to installer/bin folder" echo "... copying zenith to zenith-"$ZVERSION"-amd64/bin folder"
cp ../dist-newstyle/build/x86_64-linux/ghc-9.4.8/zenith-0.5.3.0/build/zenith/zenith zenith-0.5.3.0-binary/bin/ cp "../dist-newstyle/build/x86_64-linux/ghc-9.4.8/zenith-0.5.3.0/build/zenith/zenith" "zenith-"$ZVERSION"-amd64/bin/"
echo "... copying assets folder to installer/assets folder" echo "... copying assets folder to zenith-"$ZVERSION"-amd64/assets folder"
cp ../assets/* zenith-0.5.3.0-binary/bin/ cp -r "../assets/" "zenith-"$ZVERSION"-amd64/"
echo "... copying librustzcash_wrapper.so to installer/lib folder" echo "... copying librustzcash_wrapper.so to zenith-"$ZVERSION"-amd64/lib folder"
cp ../zcash-haskell/librustzcash-wrapper/target/x86_64-unknown-linux-gnu/debug/librustzcash_wrapper.so zenith-0.5.3.0-binary/lib/ cp "../zcash-haskell/librustzcash-wrapper/target/x86_64-unknown-linux-gnu/debug/librustzcash_wrapper.so" "zenith-"$ZVERSION"-amd64/lib/"
echo
read -r -p "Do you want to create the installer package (.tar.gz)? [Y/n] " response
case "$response" in
[yY])
if [ -f "zenith-"$ZVERSION"-amd64.tar.gz" ]; then
if [ -f "zenith-"$ZVERSION"-amd64.tar.gz.prev" ]; then
rm "zenith-"$ZVERSION"-amd64.tar.gz.prev"
fi
echo "... previous package found, saving it as 'zenith-"$ZVERSION"-amd64.tar.gz.prev'"
mv "zenith-"$ZVERSION"-amd64.tar.gz" "zenith-"$ZVERSION"-amd64.tar.gz.prev"
fi
echo "... creating zenith-"$ZVERSION"-amd64.tar.gz"
tar czf "zenith-"$ZVERSION"-amd64.tar.gz" "zenith-"$ZVERSION"-amd64"
echo "... zenith-"$ZVERSION"-amd64.tar.gz created."
;;
*)
echo "... installer package not created."
;;
esac
echo echo
echo "Done " echo "Done "
echo echo

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,9 +1,11 @@
#!/bin/bash #!/bin/bash
echo echo
echo Zenith Full Node Wallet Config echo "Zenith Full Node Wallet Configuration"
echo "Zenith Version 0.6.0.0"
echo "Configuration Version: 1.0"
echo echo
if [ -d $HOME/Zenith ]; then if [ -d $HOME/Zenith ]; then
echo "Configuration files found, please backup your Zenith folder or" echo "Configuration files found, please backup your Zenith folder and"
echo "remove it before trying to configure Zenith again." echo "remove it before trying to configure Zenith again."
echo echo
exit exit
@ -13,6 +15,12 @@ else
mkdir -p $HOME/Zenith mkdir -p $HOME/Zenith
echo "Copying default configuration ...." echo "Copying default configuration ...."
cp ./cfg/zenith.cfg $HOME/Zenith/ cp ./cfg/zenith.cfg $HOME/Zenith/
chown -R $USER $HOME/Zenith
echo "Creating assets folder ...."
mkdir -p $HOME/assets
echo "Transfering assets to new folder ...."
cp ./assets/* $HOME/assets
chown -R $USER $HOME/assets
echo "Configuring library path ...." echo "Configuring library path ...."
if [ ! grep -q "LD_LIBRARY_PATH" "$HOME/.bashrc" ]; then if [ ! grep -q "LD_LIBRARY_PATH" "$HOME/.bashrc" ]; then
echo 'export LD_LIBRARY_PATH=/usr/local/lib' | tee -a $HOME/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/lib' | tee -a $HOME/.bashrc
@ -21,7 +29,7 @@ else
else else
echo "Library path configured ...." echo "Library path configured ...."
fi fi
echo "Zenith is ready!!" echo "Zenith is ready!!. Remember to have your Zebra Node up and running...."
else else
echo "Please, install Zenith first!!!" echo "Please, install Zenith first!!!"
fi fi

View file

@ -1,6 +1,9 @@
#!/bin/bash #!/bin/bash
ZVERSION="0.6.0.0"
echo echo
echo "Zenith Full Node Wallet Installer (Version 0.5.3.0)" echo "Zenith Full Node Wallet Installer"
echo "Zenith Version: $ZVERSION"
echo "Installer version: 1.0"
echo echo
if [ "$UID" != "0" ]; then if [ "$UID" != "0" ]; then
echo "Please run the installer using 'sudo'!!!" echo "Please run the installer using 'sudo'!!!"
@ -22,7 +25,8 @@ else
cp ./lib/librustzcash_wrapper.so /usr/local/lib cp ./lib/librustzcash_wrapper.so /usr/local/lib
cp ./lib/sapling-spend.params /usr/local/lib cp ./lib/sapling-spend.params /usr/local/lib
cp ./lib/sapling-output.params /usr/local/lib cp ./lib/sapling-output.params /usr/local/lib
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
echo echo
echo "Zenith installed !!!" echo "Zenith $ZVERSION installed !!!"
echo echo
fi fi