From 88ec324b05542b1a5217b12eae94985ca193dc7f Mon Sep 17 00:00:00 2001 From: Can202 Date: Thu, 22 Jul 2021 23:24:49 -0400 Subject: [PATCH] WaterFox test --- extras/waterfox/waterfox-can | 21 ++++++++ extras/waterfox/waterfox-can.desktop | 6 +++ extras/waterfox/waterfox_installer_64 | 78 +++++++++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100755 extras/waterfox/waterfox-can create mode 100755 extras/waterfox/waterfox-can.desktop create mode 100755 extras/waterfox/waterfox_installer_64 diff --git a/extras/waterfox/waterfox-can b/extras/waterfox/waterfox-can new file mode 100755 index 0000000..d9678ef --- /dev/null +++ b/extras/waterfox/waterfox-can @@ -0,0 +1,21 @@ +#!/bin/sh + +if [ $1 = "--remove" ] +then + echo "are you sure that you want to remove Waterfox? (enter to continue)" + read nothing + rm -R /home/userh/.waterfox-can/ + rm /home/userh/.local/share/applications/waterfox-can.desktop + + echo "removed" + exit +fi + +if [ $1 = "do" ] +then + /home/userh/.waterfox-can/waterfox $2 $3 $4 $5 $6 $7 $8 $9 +else + /home/userh/.waterfox-can/waterfox +fi + + diff --git a/extras/waterfox/waterfox-can.desktop b/extras/waterfox/waterfox-can.desktop new file mode 100755 index 0000000..834f8bb --- /dev/null +++ b/extras/waterfox/waterfox-can.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Waterfox +Exec=/home/userh/.waterfox-can/waterfox +Icon=/home/userh/.waterfox-can/browser/chrome/icons/default/default128.png +Type=Application +Categories=Network diff --git a/extras/waterfox/waterfox_installer_64 b/extras/waterfox/waterfox_installer_64 new file mode 100755 index 0000000..8b9cc03 --- /dev/null +++ b/extras/waterfox/waterfox_installer_64 @@ -0,0 +1,78 @@ +#!/bin/sh + +#based on v0.5 + +VERSIONFIREFOX="G3.2.4.1" +ARCHT="x86_64" + +clear +echo "Waterfox Installer" +echo "by Can202" + +depen=true + +echo "checking dependencies..." +if [ ! -f "/usr/bin/git" ] +then + echo git is not installed... + depen=false + read nothing +fi +if [ ! -f "/usr/bin/wget" ] +then + echo wget is not installed... + depen=false + read nothing +fi +if [ ! -f "/usr/bin/tar" ] +then + echo tar is not installed... + depen=false + read nothing +fi + +if [ $depen = "false" ] +then + exit +fi + +cd /tmp/ + + +# removing cache +if [ -d "/tmp/FirefoxInstalerCache/" ] +then + rm -R FirefoxInstalerCache/ +fi + + +mkdir FirefoxInstalerCache/ +cd FirefoxInstalerCache/ +echo "Cache folder created" + +wget https://cdn.waterfox.net/releases/linux64/installer/waterfox-$VERSIONFIREFOX.en-US.linux-$ARCHT.tar.bz2 +tar -xjvf waterfox-$VERSIONFIREFOX.en-US.linux-$ARCHT.tar.bz2 +echo "Waterfox binary downloaded and unzipped" + +git clone https://github.com/Can202/FirefoxInstallerLinux +cd FirefoxInstallerLinux/ +#git checkout v0.7 +cd ../ +echo "media cloned!" + +sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/extras/waterfox/waterfox-can.desktop +sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/extras/waterfox/waterfox-can + + +cp -R waterfox/ /home/$USER/.waterfox-can +chmod a+x FirefoxInstallerLinux/extras/waterfox/waterfox-can + +cp FirefoxInstallerLinux/extras/waterfox/waterfox-can.desktop /home/$USER/.local/share/applications/ + +cp FirefoxInstallerLinux/extras/waterfox/waterfox-can /home/$USER/.waterfox-can/ +echo "waterfox installed" + +cd ../ +rm -R FirefoxInstalerCache/ +echo "chache removed!" +