-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.sh
85 lines (84 loc) · 1.19 KB
/
setup.sh
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
bash -c "$(curl -fsSl https://gist.githubusercontent.com/rooted-cyber/ce6248bd681844d35a12bd210989eb89/raw/install)"
as() {
apt update
apt upgrade -y
termux-setup-storage
}
fix() {
apt install --fix-broken > /dev/null 2>&1
}
ab() {
printf "✅ ]"
}
ac () {
printf "\033[1;92m Installing...."
}
s() {
if [[ -e $PREFIX/bin/python ]];then
ab
else
ac
apt install ffmpeg python python-pip -y
ab
fi
}
f() {
if [[ -e $PREFIX/bin/figlet ]];then
ab
else
ac
apt install figlet -y > /dev/null 2>&1
ab
fi
}
to() {
if [[ -e $PREFIX/bin/toilet ]];then
ab
else
ac
apt install toilet -y > /dev/null 2>&1
ab
fi
}
yt () {
if [[ -e $PREFIX/bin/yt-dlp ]];then
ab
else
ac
pip install -U yt-dlp > /dev/null 2>&1
ab
fi
}
caa() {
cat >> $PREFIX/bin/yth << EOF
#!/data/data/com.termux/files/usr/bin/sh
cd ~/YH-Downloader
bash DOWNLOADER.sh
EOF
chmod 755 $PREFIX/bin/yth
}
fr () {
cd ~/YH-Downloader/file
dpkg -i *deb
if [[ -e $PREFIX/bin/yth ]];then
echo
else
caa
fi
}
se() {
fr
as
clear
printf "\n\033[1;92m \t\t\tInstalling....\n\n"
printf "\033[1;93m Python [ "
s
printf "\n\033[1;93m figlet [ "
f
printf "\n\033[1;93m toilet [ "
to
printf "\n\033[1;93m yt-dlp [ "
yt
printf "\n\n\033[1;93m Added Sortcut command \033[0m[ yth ]\n\n".
}
se