-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtermux.sh
More file actions
50 lines (32 loc) · 1.55 KB
/
Copy pathtermux.sh
File metadata and controls
50 lines (32 loc) · 1.55 KB
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
#!/bin/bash
echo -e "\033[2J\033[3;1f"
eval "cat ~/LidFax-userbot/assets/download.txt"
printf "\n\n\033[1;35mLidFax is being installed... ✨\033[0m"
echo -e "\n\n\033[0;96mInstalling base packages...\033[0m"
eval "pkg i git python libjpeg-turbo openssl -y"
printf "\r\033[K\033[0;32mPackages ready!\e[0m\n"
echo -e "\033[0;96mInstalling Pillow...\033[0m"
if eval "lscpu | grep Architecture" | grep -qE 'aarch64'; then
eval 'export LDFLAGS="-L/system/lib64/"'
else
eval 'export LDFLAGS="-L/system/lib/"'
fi
eval 'export CFLAGS="-I/data/data/com.termux/files/usr/include/" && pip install Pillow -U --no-cache-dir'
printf "\r\033[K\033[0;32mPillow installed!\e[0m\n"
echo -e "\033[0;96mDownloading source code...\033[0m"
eval "rm -rf ~/LidFax-userbot 2>/dev/null"
eval "cd && git clone -b stable https://github.com/sz3333/LidFax-userbot && cd LidFax-userbot"
echo -e "\033[0;96mSource code downloaded!...\033[0m\n"
printf "\r\033[0;34mInstalling requirements...\e[0m"
eval "pip install -r requirements.txt --no-cache-dir --no-warn-script-location --disable-pip-version-check --upgrade"
printf "\r\033[K\033[0;32mRequirements installed!\e[0m\n"
if [[ -z "${NO_AUTOSTART}" ]]; then
printf "\n\r\033[0;34mConfiguring autostart...\e[0m"
eval "echo '' > ~/../usr/etc/motd &&
echo 'clear && cd ~/LidFax-userbot && python3 -m hikka' > ~/.bash_profile"
printf "\r\033[K\033[0;32mAutostart enabled!\e[0m\n"
fi
echo -e "\033[0;96mStarting LidFax...\033[0m"
echo -e "\033[2J\033[3;1f"
printf "\033[1;32mLidFax is starting...\033[0m\n"
eval "python3 -m hikka"