Feat(deploy): 添加asarUpdate的可选项

This commit is contained in:
W1NDes 2026-03-02 20:42:32 +08:00
parent 5548ae7909
commit 202749a270
3 changed files with 6 additions and 2 deletions

View File

@ -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())

View File

@ -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

View File

@ -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