update_manager: add support for application tags
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
92eda982ce
commit
ecfad5cff1
|
@ -78,6 +78,7 @@ class AppDeploy(BaseDeploy):
|
|||
self._verify_path(config, 'env', self.executable)
|
||||
self.venv_args = config.get('venv_args', None)
|
||||
|
||||
self.info_tags: List[str] = config.getlist("info_tags", [])
|
||||
self.is_service = config.getboolean("is_system_service", True)
|
||||
storage = self._load_storage()
|
||||
self.need_channel_update = storage.get('need_channel_upate', False)
|
||||
|
@ -193,7 +194,8 @@ class AppDeploy(BaseDeploy):
|
|||
'debug_enabled': self.debug,
|
||||
'need_channel_update': self.need_channel_update,
|
||||
'is_valid': self._is_valid,
|
||||
'configured_type': self.type
|
||||
'configured_type': self.type,
|
||||
'info_tags': self.info_tags
|
||||
}
|
||||
|
||||
def get_persistent_data(self) -> Dict[str, Any]:
|
||||
|
|
|
@ -1289,6 +1289,7 @@ class WebClientDeploy(BaseDeploy):
|
|||
self.path = pathlib.Path(config.get("path")).expanduser().resolve()
|
||||
self.type = config.get('type')
|
||||
self.channel = "stable" if self.type == "web" else "beta"
|
||||
self.info_tags: List[str] = config.getlist("info_tags", [])
|
||||
self.persistent_files: List[str] = []
|
||||
pfiles = config.getlist('persistent_files', None)
|
||||
if pfiles is not None:
|
||||
|
@ -1436,7 +1437,8 @@ class WebClientDeploy(BaseDeploy):
|
|||
'version': self.version,
|
||||
'remote_version': self.remote_version,
|
||||
'configured_type': self.type,
|
||||
'channel': self.channel
|
||||
'channel': self.channel,
|
||||
'info_tags': self.info_tags
|
||||
}
|
||||
|
||||
def load_component(config: ConfigHelper) -> UpdateManager:
|
||||
|
|
Loading…
Reference in New Issue