-
Notifications
You must be signed in to change notification settings - Fork 1
/
termux-setup.sh
49 lines (44 loc) · 1.48 KB
/
termux-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
RESTORE='\033[0m'
RED='\033[00;31m'
GREEN='\033[00;32m'
YELLOW='\033[00;33m'
BLUE='\033[00;34m'
PURPLE='\033[00;35m'
CYAN='\033[00;36m'
LIGHTGRAY='\033[00;37m'
LRED='\033[01;31m'
LGREEN='\033[01;32m'
LYELLOW='\033[01;33m'
LBLUE='\033[01;34m'
LPURPLE='\033[01;35m'
LCYAN='\033[01;36m'
WHITE='\033[01;37m'
clear
echo "${GREEN} [=] ${BLUE} Please Allow termux to access files in the dialuge shown ${RESTORE}"
sleep 1
echo "${YELLOW} [!] ${PURPLE} Please Wait... ${RESTORE}"
termux-setup-storage
sleep 6
echo "${GREEN} [+] ${BLUE} Updating termux.... ${RESTORE}"
sleep 2
echo "Kindly Press ENTER on any dialouge shown until Termux is updated"
apt update -y && apt upgrade -y
echo "${GREEN} [+] ${BLUE} Successfully updated termux ${RESTORE}"
echo "${GREEN} [+] ${BLUE} Installing necessary packages ${RESTORE}"
sleep 3
pkg install git nodejs
sleep 1
# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
# sleep 1
# export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# sleep 2
# nvm install v21.7.3
# sleep 1
# unset PREFIX && nvm use node
echo "${GREEN} [+] ${BLUE} Installed Packages ${RESTORE}"
echo "${GREEN} [+] ${BLUE} Installing EpicRPG Farm Bot ${RESTORE}"
git clone https://github.com/Mid0aria/epicrpgfarmbot/
cd epicrpgfarmbot
echo "${GREEN} [+] ${BLUE} Installing nodejs packages${RESTORE}"
npm i --no-bin-links #using --no-bin-links to not get any errors regarding symbolic links
echo "${GREEN} [=] Installed Successfully , Please edit config.json"