-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ferrum-Setup.sh
54 lines (40 loc) · 1.52 KB
/
Ferrum-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
#!/bin/bash
#--##################--#
#-- FERRUM INSTALLER --#
#--##################--#
# Update pacakges
apt update
# Allow file system permission
termux-setup-system
# Install ffmpeg & python
apt -y install ffmpeg python git termux-api jq
#--##################################
#--# Add ffmpeg & Python to path #--#
#------------------------------------
cd ..
cd usr/etc/
echo "export PATH=\$PATH:~/data/data/com.termux/files/usr/bin/ffmpeg" >> bash.bashrc
echo "export PATH=\$PATH:~/data/data/com.termux/files/usr/bin/python3.10" >> bash.bashrc
#-- Setup its-pointless repo
curl -LO https://its-pointless.github.io/setup-pointless-repo.sh
bash setup-pointless-repo.sh -y
#-- Install numpy
pkg install numpy
#-- install rapidfuzz (v1.9.1 for now)
pip install rapidfuzz==1.9.1
#-- Install spotdl
pip install spotdl
#-- Remove setup-pointless-repo
cd ~
#-- Dowmload Ferrum from repo.
git clone https://github.com/Jnv821/FERRUM.git
#-- Make Ferrum folders & move Ferrum images & script to work with Termux Widget
mkdir -p .shortcuts/tasks/ .shortcuts/icons/ ~/storage/shared/Music/FERRUM/M3U_FILES/
cp ~/FERRUM/Icons/FERRUM.png .shortcuts/icons/Ferrum.sh.png
mv ~/FERRUM/Ferrum.sh .shortcuts/tasks/Ferrum.sh
chmod +x ~/.shortcuts/tasks/Ferrum.sh
#-- Create alias for easy debuggin in termux terminal
echo "alias ferrum='/data/data/com.termux/files/home/.shortcuts/tasks/Ferrum.sh'" >> /data/data/com.termux/files/usr/etc/bash.bashrc
termux-toast -b purple -c white -g middle "Termux will restart to apply changes for Ferrum"
sleep 5s
exit