mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 03:08:15 +08:00
Feat(deploy): 添加asarUpdate的可选项
This commit is contained in:
parent
5548ae7909
commit
202749a270
@ -46,8 +46,8 @@ class AppManager(DeployConfig):
|
||||
def app_update(self):
|
||||
logger.hr(f'Update app.asar', 0)
|
||||
|
||||
if not self.AutoUpdate:
|
||||
logger.info('AutoUpdate is disabled, skip')
|
||||
if not self.AppAsarUpdate:
|
||||
logger.info('AppAsarUpdate is disabled, skip')
|
||||
return False
|
||||
|
||||
return self.app_asar_replace(os.getcwd())
|
||||
|
||||
@ -62,6 +62,7 @@ class ConfigModel:
|
||||
Password: Optional[str] = None
|
||||
CDN: Union[str, bool] = False
|
||||
Run: Optional[str] = None
|
||||
AppAsarUpdate: bool = True
|
||||
|
||||
# Dynamic
|
||||
GitOverCdn: bool = False
|
||||
|
||||
@ -155,6 +155,9 @@ Deploy:
|
||||
# '["alas"]' specified "alas" config
|
||||
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||
Run: null
|
||||
# To update app.asar
|
||||
# [In most cases] true
|
||||
AppAsarUpdate: true
|
||||
# SSL support
|
||||
# Only effective when both parameters below are set
|
||||
# --ssl-key. Path to SSL key file
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user