forked from 777-FOXik-777/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.py
72 lines (42 loc) · 1.86 KB
/
update.py
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
import os, time
from colorama import Fore, Style
os.system('clear')
print(f'\33]0; Installer - Установка...\a',
end='', flush=True)
os.system('rm -fr /data/data/com.termux/files/home/installer')
os.system('rm -fr installer')
os.chdir('/data/data/com.termux/files/home/')
print(Fore.YELLOW+"["+Fore.RED+"~"+Fore.YELLOW+"] Установка Installer...")
time.sleep(1.5)
print(Fore.WHITE+"")
os.system('git clone https://github.com/777-FOXik-777/installer')
os.system('rm ~/.bashrc')
filename = "installer"
if os.path.exists(filename):
os.chdir('/data/data/com.termux/files/home/')
filename = "Installer_Files"
if os.path.exists(filename):
os.chdir('/data/data/com.termux/files/home/installer')
os.system('rm -fr Installer_Files')
os.system('clear')
else:
os.chdir('/data/data/com.termux/files/home/installer')
os.system('mv Installer_Files /data/data/com.termux/files/home')
print(f'\33]0; Installer - Успешно установлен!\a',
end='', flush=True)
os.system('clear')
print(Fore.YELLOW+"["+Fore.GREEN+"i"+Fore.YELLOW+"] Installer успешно установлен!")
print(Fore.WHITE+" ")
tsu = input('[Нажмите Enter чтобы продолжить]')
os.chdir('/data/data/com.termux/files/home/installer')
os.system('clear')
print(Style.RESET_ALL)
os.system('python3 tool.py')
else:
print(f'\33]0; Installer - Ошибка во время установки!\a',
end='', flush=True)
os.system('clear')
print(Fore.YELLOW+" ["+Fore.RED+"!"+Fore.YELLOW+"] Ошибка во время установки Installer!")
print(Fore.WHITE+" ")
print(Fore.YELLOW+" ["+Fore.GREEN+"i"+Fore.YELLOW+"] Повторите используя команду:"+Fore.WHITE+" python update.py")
print(Fore.WHITE+" ")