AzurLaneAutoScript/deploy/installer.py

27 lines
638 B
Python
Raw Normal View History

from deploy.patch import pre_checks
pre_checks()
from deploy.adb import AdbManager
from deploy.alas import AlasManager
from deploy.app import AppManager
from deploy.config import ExecutionError
from deploy.git import GitManager
from deploy.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
if __name__ == '__main__':
Installer().install()