diff --git a/installer/updbinfiles b/installer/updbinfiles index 8a8a047..de33eee 100755 --- a/installer/updbinfiles +++ b/installer/updbinfiles @@ -1,13 +1,33 @@ #!/bin/bash +ZVERSION="0.6.0.0" echo echo "Updating installer binary files ...." echo -echo "... copying zenith to installer/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/ -echo "... copying assets folder to installer/assets folder" -cp ../assets/* zenith-0.5.3.0-binary/bin/ -echo "... copying librustzcash_wrapper.so to installer/lib folder" -cp ../zcash-haskell/librustzcash-wrapper/target/x86_64-unknown-linux-gnu/debug/librustzcash_wrapper.so zenith-0.5.3.0-binary/lib/ +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-"$ZVERSION"-amd64/bin/" +echo "... copying assets folder to zenith-"$ZVERSION"-amd64/assets folder" +cp -r "../assets/" "zenith-"$ZVERSION"-amd64/" +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-"$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 "Done " echo \ No newline at end of file diff --git a/installer/zenith-0.5.3.0-binary.tar.gz b/installer/zenith-0.6.0.0-amd64.tar.gz similarity index 86% rename from installer/zenith-0.5.3.0-binary.tar.gz rename to installer/zenith-0.6.0.0-amd64.tar.gz index e1c3846..39094bc 100644 Binary files a/installer/zenith-0.5.3.0-binary.tar.gz and b/installer/zenith-0.6.0.0-amd64.tar.gz differ diff --git a/installer/zenith-0.5.3.0-binary/README.txt b/installer/zenith-0.6.0.0-amd64/README.txt similarity index 100% rename from installer/zenith-0.5.3.0-binary/README.txt rename to installer/zenith-0.6.0.0-amd64/README.txt diff --git a/installer/zenith-0.5.3.0-binary/bin/1F616_color.png b/installer/zenith-0.6.0.0-amd64/assets/1F616_color.png similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/1F616_color.png rename to installer/zenith-0.6.0.0-amd64/assets/1F616_color.png diff --git a/installer/zenith-0.5.3.0-binary/bin/1F928_color.png b/installer/zenith-0.6.0.0-amd64/assets/1F928_color.png similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/1F928_color.png rename to installer/zenith-0.6.0.0-amd64/assets/1F928_color.png diff --git a/installer/zenith-0.5.3.0-binary/bin/1F993.png b/installer/zenith-0.6.0.0-amd64/assets/1F993.png similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/1F993.png rename to installer/zenith-0.6.0.0-amd64/assets/1F993.png diff --git a/installer/zenith-0.5.3.0-binary/bin/2620_color.png b/installer/zenith-0.6.0.0-amd64/assets/2620_color.png similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/2620_color.png rename to installer/zenith-0.6.0.0-amd64/assets/2620_color.png diff --git a/installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-Bold-102.ttf b/installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-Bold-102.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-Bold-102.ttf rename to installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-Bold-102.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-BoldItalic-102.ttf b/installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-BoldItalic-102.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-BoldItalic-102.ttf rename to installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-BoldItalic-102.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-Font-License-2020-1104.pdf b/installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-Font-License-2020-1104.pdf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-Font-License-2020-1104.pdf rename to installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-Font-License-2020-1104.pdf diff --git a/installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-Italic-102.ttf b/installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-Italic-102.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-Italic-102.ttf rename to installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-Italic-102.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-Regular-102.ttf b/installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-Regular-102.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/Atkinson-Hyperlegible-Regular-102.ttf rename to installer/zenith-0.6.0.0-amd64/assets/Atkinson-Hyperlegible-Regular-102.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/DejaVuSansMono-Bold.ttf b/installer/zenith-0.6.0.0-amd64/assets/DejaVuSansMono-Bold.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/DejaVuSansMono-Bold.ttf rename to installer/zenith-0.6.0.0-amd64/assets/DejaVuSansMono-Bold.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/DejaVuSansMono-BoldOblique.ttf b/installer/zenith-0.6.0.0-amd64/assets/DejaVuSansMono-BoldOblique.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/DejaVuSansMono-BoldOblique.ttf rename to installer/zenith-0.6.0.0-amd64/assets/DejaVuSansMono-BoldOblique.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/DejaVuSansMono-Oblique.ttf b/installer/zenith-0.6.0.0-amd64/assets/DejaVuSansMono-Oblique.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/DejaVuSansMono-Oblique.ttf rename to installer/zenith-0.6.0.0-amd64/assets/DejaVuSansMono-Oblique.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/DejaVuSansMono.ttf b/installer/zenith-0.6.0.0-amd64/assets/DejaVuSansMono.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/DejaVuSansMono.ttf rename to installer/zenith-0.6.0.0-amd64/assets/DejaVuSansMono.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/OpenMoji-color-glyf_colr_1.ttf b/installer/zenith-0.6.0.0-amd64/assets/OpenMoji-color-glyf_colr_1.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/OpenMoji-color-glyf_colr_1.ttf rename to installer/zenith-0.6.0.0-amd64/assets/OpenMoji-color-glyf_colr_1.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/Roboto-Regular.ttf b/installer/zenith-0.6.0.0-amd64/assets/Roboto-Regular.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/Roboto-Regular.ttf rename to installer/zenith-0.6.0.0-amd64/assets/Roboto-Regular.ttf diff --git a/installer/zenith-0.5.3.0-binary/bin/remixicon.ttf b/installer/zenith-0.6.0.0-amd64/assets/remixicon.ttf similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/remixicon.ttf rename to installer/zenith-0.6.0.0-amd64/assets/remixicon.ttf diff --git a/installer/zenith-0.6.0.0-amd64/bin/1F616_color.png b/installer/zenith-0.6.0.0-amd64/bin/1F616_color.png new file mode 100644 index 0000000..ac48165 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/1F616_color.png differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/1F928_color.png b/installer/zenith-0.6.0.0-amd64/bin/1F928_color.png new file mode 100644 index 0000000..10095c0 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/1F928_color.png differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/1F993.png b/installer/zenith-0.6.0.0-amd64/bin/1F993.png new file mode 100644 index 0000000..290f365 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/1F993.png differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/2620_color.png b/installer/zenith-0.6.0.0-amd64/bin/2620_color.png new file mode 100644 index 0000000..ecfdc10 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/2620_color.png differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Bold-102.ttf b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Bold-102.ttf new file mode 100644 index 0000000..14b7196 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Bold-102.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-BoldItalic-102.ttf b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-BoldItalic-102.ttf new file mode 100644 index 0000000..4532705 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-BoldItalic-102.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Font-License-2020-1104.pdf b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Font-License-2020-1104.pdf new file mode 100644 index 0000000..afe27dc Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Font-License-2020-1104.pdf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Italic-102.ttf b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Italic-102.ttf new file mode 100644 index 0000000..89e5ce4 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Italic-102.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Regular-102.ttf b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Regular-102.ttf new file mode 100644 index 0000000..c4fa6fb Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/Atkinson-Hyperlegible-Regular-102.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono-Bold.ttf b/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono-Bold.ttf new file mode 100644 index 0000000..b210eb5 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono-Bold.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono-BoldOblique.ttf b/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono-BoldOblique.ttf new file mode 100644 index 0000000..3211064 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono-BoldOblique.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono-Oblique.ttf b/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono-Oblique.ttf new file mode 100644 index 0000000..ff83b15 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono-Oblique.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono.ttf b/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono.ttf new file mode 100644 index 0000000..041cffc Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/DejaVuSansMono.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/OpenMoji-color-glyf_colr_1.ttf b/installer/zenith-0.6.0.0-amd64/bin/OpenMoji-color-glyf_colr_1.ttf new file mode 100644 index 0000000..86cf85b Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/OpenMoji-color-glyf_colr_1.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/Roboto-Regular.ttf b/installer/zenith-0.6.0.0-amd64/bin/Roboto-Regular.ttf new file mode 100644 index 0000000..8c082c8 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/Roboto-Regular.ttf differ diff --git a/installer/zenith-0.6.0.0-amd64/bin/remixicon.ttf b/installer/zenith-0.6.0.0-amd64/bin/remixicon.ttf new file mode 100644 index 0000000..22ce6de Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/bin/remixicon.ttf differ diff --git a/installer/zenith-0.5.3.0-binary/bin/zenith b/installer/zenith-0.6.0.0-amd64/bin/zenith similarity index 100% rename from installer/zenith-0.5.3.0-binary/bin/zenith rename to installer/zenith-0.6.0.0-amd64/bin/zenith diff --git a/installer/zenith-0.5.3.0-binary/cfg/zenith.cfg b/installer/zenith-0.6.0.0-amd64/cfg/zenith.cfg similarity index 100% rename from installer/zenith-0.5.3.0-binary/cfg/zenith.cfg rename to installer/zenith-0.6.0.0-amd64/cfg/zenith.cfg diff --git a/installer/zenith-0.6.0.0-amd64/lib/libc-bin_2.38-1ubuntu6_amd64.deb b/installer/zenith-0.6.0.0-amd64/lib/libc-bin_2.38-1ubuntu6_amd64.deb new file mode 100755 index 0000000..2bf823c Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/lib/libc-bin_2.38-1ubuntu6_amd64.deb differ diff --git a/installer/zenith-0.6.0.0-amd64/lib/libc-dev-bin_2.38-1ubuntu6_amd64.deb b/installer/zenith-0.6.0.0-amd64/lib/libc-dev-bin_2.38-1ubuntu6_amd64.deb new file mode 100755 index 0000000..1cd9e75 Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/lib/libc-dev-bin_2.38-1ubuntu6_amd64.deb differ diff --git a/installer/zenith-0.6.0.0-amd64/lib/libc6_2.38-1ubuntu6_amd64.deb b/installer/zenith-0.6.0.0-amd64/lib/libc6_2.38-1ubuntu6_amd64.deb new file mode 100755 index 0000000..dd1f34e Binary files /dev/null and b/installer/zenith-0.6.0.0-amd64/lib/libc6_2.38-1ubuntu6_amd64.deb differ diff --git a/installer/zenith-0.5.3.0-binary/lib/librustzcash_wrapper.so b/installer/zenith-0.6.0.0-amd64/lib/librustzcash_wrapper.so similarity index 100% rename from installer/zenith-0.5.3.0-binary/lib/librustzcash_wrapper.so rename to installer/zenith-0.6.0.0-amd64/lib/librustzcash_wrapper.so diff --git a/installer/zenith-0.5.3.0-binary/lib/sapling-output.params b/installer/zenith-0.6.0.0-amd64/lib/sapling-output.params similarity index 100% rename from installer/zenith-0.5.3.0-binary/lib/sapling-output.params rename to installer/zenith-0.6.0.0-amd64/lib/sapling-output.params diff --git a/installer/zenith-0.5.3.0-binary/lib/sapling-spend.params b/installer/zenith-0.6.0.0-amd64/lib/sapling-spend.params similarity index 100% rename from installer/zenith-0.5.3.0-binary/lib/sapling-spend.params rename to installer/zenith-0.6.0.0-amd64/lib/sapling-spend.params diff --git a/installer/zenith-0.5.3.0-binary/zenconfig b/installer/zenith-0.6.0.0-amd64/zenconfig similarity index 66% rename from installer/zenith-0.5.3.0-binary/zenconfig rename to installer/zenith-0.6.0.0-amd64/zenconfig index 7ef9086..e5651db 100755 --- a/installer/zenith-0.5.3.0-binary/zenconfig +++ b/installer/zenith-0.6.0.0-amd64/zenconfig @@ -1,9 +1,11 @@ #!/bin/bash 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 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 exit @@ -13,6 +15,12 @@ else mkdir -p $HOME/Zenith echo "Copying default configuration ...." 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 ...." if [ ! grep -q "LD_LIBRARY_PATH" "$HOME/.bashrc" ]; then echo 'export LD_LIBRARY_PATH=/usr/local/lib' | tee -a $HOME/.bashrc @@ -21,7 +29,7 @@ else else echo "Library path configured ...." fi - echo "Zenith is ready!!" + echo "Zenith is ready!!. Remember to have your Zebra Node up and running...." else echo "Please, install Zenith first!!!" fi diff --git a/installer/zenith-0.5.3.0-binary/zeninstall b/installer/zenith-0.6.0.0-amd64/zeninstall similarity index 66% rename from installer/zenith-0.5.3.0-binary/zeninstall rename to installer/zenith-0.6.0.0-amd64/zeninstall index c333bc1..edcf7c0 100755 --- a/installer/zenith-0.5.3.0-binary/zeninstall +++ b/installer/zenith-0.6.0.0-amd64/zeninstall @@ -1,6 +1,9 @@ #!/bin/bash +ZVERSION="0.6.0.0" 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 if [ "$UID" != "0" ]; then echo "Please run the installer using 'sudo'!!!" @@ -22,7 +25,8 @@ else cp ./lib/librustzcash_wrapper.so /usr/local/lib cp ./lib/sapling-spend.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 "Zenith installed !!!" + echo "Zenith $ZVERSION installed !!!" echo fi