-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmy-musicinst
executable file
·83 lines (50 loc) · 1.55 KB
/
my-musicinst
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
#DEPENDENCIES
#ffmpeg youtube-dl atomicparsley python-pip openssl
echo "
Let Me Setup Things For You. Just Wait Till I Am Finished
"
cd
read -p 'PRESS ENTER TO CONTINUE or Ctrl + C to cancel'
apt update
apt update &&
apt install nala
nala update
nala install openssl-1.1-static python atomicparsley ffmpeg -y
apt upgrade -y
pip install --upgrade pip yt-dlp
apt autoremove -y
#Permission request for display over other apps for Termux
echo "
PROVIDE OVERLAY PERMISSION TO Termux after pressing Enter or press CTRL + C to cancel installation
"
read -p 'PRESS ENTER TO CONTINUE or Ctrl + C to cancel'
am start --user 0 -a android.settings.action.MANAGE_OVERLAY_PERMISSION -d "package:com.termux"
cd
mkdir ~/storage/shared/MY-MUSIC
mkdir ~/bin
mkdir ~/.config
touch ~/.config/youtube-dl.conf
echo "-o ~/storage/shared/MY-MUSIC/%(title)s.%(ext)s" >> ~/.config/youtube-dl.conf
cd
cp ~/MY-MUSIC/my-* "/data/data/com.termux/files/usr/bin"
cp ~/MY-MUSIC/con* "/data/data/com.termux/files/usr/bin"
cp ~/MY-MUSIC/termux-url-opener ~/bin/
chmod +x /data/data/com.termux/files/usr/bin/my-*
chmod +x ~/bin/termux-*
chmod +x /data/data/com.termux/files/usr/bin/con*
cd ~/../usr/bin
ln -s my-music mm
ln -s my-musicupdate mmu
ln -s my-musichelp mmh
echo "
"
echo "ALL TASKS COMPLETED SUCCESSFULLY
"
echo "
Just share the video to termx.
Or type my-music or mm in termux
AND LASTLY type 'my-musichelp or mmh' to see this help/usage message and type 'my-musicupdate' or 'mmu' to reinstall/update the script
"
echo "Just share the video to termux.
"
echo "HAVE A GOOD DAY"