-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirefox_installer_64
executable file
·116 lines (95 loc) · 3.58 KB
/
firefox_installer_64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/sh
VERSIONFIREFOX=$(curl https://raw.githubusercontent.com/Can202/FirefoxInstallerLinux/develop/versions/firefox)
ARCHT="x86_64"
clear
if [ -f "/usr/games/lolcat" ] | [ -f "/usr/bin/lolcat" ]
then
echo "
NN
WNXXNW
W NXXXXXXNW _____ _ __
NOkWWXK NKKKXXXXXXNWW | ___|(_) _ __ ___ / _| ___ __ __
OdxxOkkON0kxooodk0KKKXKXNN | |_ | || '__|/ _ \| |_ / _ \\ \/ /
kddddxxxkkdolccccldk0KKKKKKX | _| | || | | __/| _|| (_) |> <
XooodkOOOOOOOOdcccclOK00000KKN |_| |_||_| \___||_| \___//_/\_\
OllooodkOdolllclccc:c00OOO0K0X
Olllloodo,;:::ccc::;:OOkkO00OX ___ _ _ _
Nccclllloc,,;;;;;;,;oxxxkOOkOW |_ _| _ __ ___ | |_ __ _ | || | ___ _ __
K:ccccllll:;;;;;:cooddxxxdxN | | | '_ \ / __|| __|/ _ || || | / _ \| '__|
Xc;:ccccclllllllllloooolxN | | | | | |\__ \| |_| (_| || || || __/| |
WOc;;:ccccccccccccc::l0 |___||_| |_||___/ \__|\__,_||_||_| \___||_|
Kxl;;;;;;:;;;;;lxX
WOdl:;;:ldOW
by Can202
" | lolcat
else
echo "
NN
WNXXNW
W NXXXXXXNW _____ _ __
NOkWWXK NKKKXXXXXXNWW | ___|(_) _ __ ___ / _| ___ __ __
OdxxOkkON0kxooodk0KKKXKXNN | |_ | || '__|/ _ \| |_ / _ \\ \/ /
kddddxxxkkdolccccldk0KKKKKKX | _| | || | | __/| _|| (_) |> <
XooodkOOOOOOOOdcccclOK00000KKN |_| |_||_| \___||_| \___//_/\_\
OllooodkOdolllclccc:c00OOO0K0X
Olllloodo,;:::ccc::;:OOkkO00OX ___ _ _ _
Nccclllloc,,;;;;;;,;oxxxkOOkOW |_ _| _ __ ___ | |_ __ _ | || | ___ _ __
K:ccccllll:;;;;;:cooddxxxdxN | | | '_ \ / __|| __|/ _ || || | / _ \| '__|
Xc;:ccccclllllllllloooolxN | | | | | |\__ \| |_| (_| || || || __/| |
WOc;;:ccccccccccccc::l0 |___||_| |_||___/ \__|\__,_||_||_| \___||_|
Kxl;;;;;;:;;;;;lxX
WOdl:;;:ldOW
by Can202
"
fi
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 https://download-installer.cdn.mozilla.net/pub/firefox/releases/$VERSIONFIREFOX/linux-$ARCHT/en-US/firefox-$VERSIONFIREFOX.tar.bz2
tar -xjvf firefox-$VERSIONFIREFOX.tar.bz2
echo "Firefox binary downloaded and unzipped"
git clone https://github.com/Can202/FirefoxInstallerLinux
cd FirefoxInstallerLinux/
git checkout v1.0
cd ../
echo "media cloned!"
sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/media/firefox-can.desktop
sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/media/firefox-can
cp -R firefox/ /home/$USER/.firefox-can
chmod a+x FirefoxInstallerLinux/media/firefox-can
cp FirefoxInstallerLinux/media/firefox-can.desktop /home/$USER/.local/share/applications/
cp FirefoxInstallerLinux/media/firefox-can /home/$USER/.firefox-can/
echo "firefox installed"
cd ../
rm -R FirefoxInstalerCache/
echo "chache removed!"