forked from LmeSzinc/StarRailCopilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller.py
34 lines (26 loc) · 858 Bytes
/
installer.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
from deploy.Windows.logger import Progress, logger
from deploy.Windows.patch import pre_checks
pre_checks()
from deploy.Windows.adb import AdbManager
from deploy.Windows.alas import AlasManager
from deploy.Windows.app import AppManager
from deploy.Windows.config import ExecutionError
from deploy.Windows.git import GitManager
from deploy.Windows.pip import PipManager
class Installer(GitManager, PipManager, AdbManager, AppManager, AlasManager):
def install(self):
try:
self.git_install()
self.alas_kill()
self.pip_install()
self.app_update()
self.adb_install()
except ExecutionError:
exit(1)
def run():
Progress.Start()
installer = Installer()
Progress.ShowDeployConfig()
installer.install()
logger.info('Finish')
Progress.Finish()