palemoon
parent
e8f5123bf7
commit
918a4f3cce
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $1 = "--remove" ]
|
||||
then
|
||||
echo "are you sure that you want to remove Palemoon? (enter to continue)"
|
||||
read nothing
|
||||
rm -R /home/userh/.palemoon-can/
|
||||
rm /home/userh/.local/share/applications/palemoon-can.desktop
|
||||
|
||||
echo "removed"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ $1 = "do" ]
|
||||
then
|
||||
/home/userh/.palemoon-can/palemoon $2 $3 $4 $5 $6 $7 $8 $9
|
||||
else
|
||||
/home/userh/.palemoon-can/palemoon
|
||||
fi
|
||||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Name=Palemoon
|
||||
Exec=/home/userh/.palemoon-can/palemoon
|
||||
Icon=/home/userh/.palemoon-can/browser/chrome/icons/default/default128.png
|
||||
Type=Application
|
||||
Categories=Network
|
|
@ -0,0 +1,79 @@
|
|||
#!/bin/sh
|
||||
|
||||
#based on v0.9
|
||||
|
||||
LINK=$(curl https://raw.githubusercontent.com/Can202/FirefoxInstallerLinux/develop/versions/palemoon)
|
||||
basename "$LINK"
|
||||
NAME="$(basename -- $LINK)"
|
||||
|
||||
clear
|
||||
echo "Palemoon 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/curl" ]
|
||||
then
|
||||
echo curl 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"
|
||||
|
||||
curl -O $LINK
|
||||
tar -xjvf $NAME
|
||||
echo "Palemoon binary downloaded and unzipped"
|
||||
|
||||
git clone https://github.com/Can202/FirefoxInstallerLinux
|
||||
cd FirefoxInstallerLinux/
|
||||
git checkout develop
|
||||
cd ../
|
||||
echo "media cloned!"
|
||||
|
||||
sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/extras/palemoon/palemoon-can.desktop
|
||||
sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/extras/palemoon/palemoon-can
|
||||
|
||||
|
||||
cp -R palemoon/ /home/$USER/.palemoon-can
|
||||
chmod a+x FirefoxInstallerLinux/extras/palemoon/palemoon-can
|
||||
|
||||
cp FirefoxInstallerLinux/extras/palemoon/palemoon-can.desktop /home/$USER/.local/share/applications/
|
||||
|
||||
cp FirefoxInstallerLinux/extras/palemoon/palemoon-can /home/$USER/.palemoon-can/
|
||||
echo "palemoon installed"
|
||||
|
||||
cd ../
|
||||
rm -R FirefoxInstalerCache/
|
||||
echo "chache removed!"
|
||||
|
|
@ -0,0 +1 @@
|
|||
http://archive.palemoon.org/palemoon/29.x/29.2.0/palemoon-29.2.0.linux-x86_64-gtk2.tar.xz
|
Loading…
Reference in New Issue