2023-06-12 01:10:54 +08:00
|
|
|
from deploy.Windows.logger import Progress, logger
|
2023-03-23 00:20:32 +08:00
|
|
|
from deploy.Windows.patch import pre_checks
|
2022-12-28 01:41:38 +08:00
|
|
|
|
2023-03-23 00:20:32 +08:00
|
|
|
pre_checks()
|
2022-12-28 01:41:38 +08:00
|
|
|
|
2023-03-22 23:42:11 +08:00
|
|
|
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
|
2022-01-15 16:03:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|
2022-01-15 16:03:24 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2023-06-12 01:10:54 +08:00
|
|
|
def run():
|
|
|
|
|
Progress.Start()
|
|
|
|
|
installer = Installer()
|
|
|
|
|
Progress.ShowDeployConfig()
|
|
|
|
|
|
|
|
|
|
installer.install()
|
|
|
|
|
|
|
|
|
|
logger.info('Finish')
|
|
|
|
|
Progress.Finish()
|