2023-04-01 02:12:25 +08:00
|
|
|
from deploy.patch import pre_checks
|
2022-12-28 01:41:38 +08:00
|
|
|
|
2023-04-01 02:12:25 +08:00
|
|
|
pre_checks()
|
2022-12-28 01:41:38 +08:00
|
|
|
|
2022-01-17 21:49:39 +08:00
|
|
|
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
|
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
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
Installer().install()
|