1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-15 11:59:26 +08:00
Files
Alas/deploy/installer.py

35 lines
858 B
Python
Raw Normal View History

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):
2021-10-23 21:17:00 +08:00
def install(self):
2022-01-10 22:14:25 +08:00
try:
self.git_install()
2022-01-15 21:41:08 +08:00
self.alas_kill()
2022-01-10 22:14:25 +08:00
self.pip_install()
self.app_update()
2022-01-10 22:14:25 +08:00
self.adb_install()
except ExecutionError:
exit(1)
2021-10-23 21:17:00 +08:00
def run():
Progress.Start()
installer = Installer()
Progress.ShowDeployConfig()
installer.install()
logger.info('Finish')
Progress.Finish()