mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
feat: headless environment support (#2782)
* chore(linux): config template for Linux * feat: Linux configuration template updater * feat: headless requirements updater * chore: Sorted by dictionary order * chore: Remove useless dependencies. * chore: remove cache operation.
This commit is contained in:
@@ -427,6 +427,15 @@ class ConfigGenerator:
|
||||
'AdbExecutable': '/usr/bin/adb',
|
||||
}
|
||||
|
||||
linux = {
|
||||
'GitExecutable': '/usr/bin/git',
|
||||
'PythonExecutable': 'python',
|
||||
'RequirementsFile': './deploy/headless/requirements.txt',
|
||||
'AdbExecutable': '/usr/bin/adb',
|
||||
'SSHExecutable': '/usr/bin/ssh',
|
||||
'ReplaceAdb': 'false'
|
||||
}
|
||||
|
||||
def update(suffix, *args):
|
||||
file = f'./config/deploy.{suffix}.yaml'
|
||||
new = deepcopy(template)
|
||||
@@ -440,6 +449,8 @@ class ConfigGenerator:
|
||||
update('template-AidLux-cn', aidlux, cn)
|
||||
update('template-docker', docker)
|
||||
update('template-docker-cn', docker, cn)
|
||||
update('template-linux', linux)
|
||||
update('template-linux-cn', linux, cn)
|
||||
|
||||
def insert_package(self):
|
||||
option = deep_get(self.argument, keys='Emulator.PackageName.option')
|
||||
|
||||
Reference in New Issue
Block a user