[web] checking if global nativefier is available during the installation process

This commit is contained in:
Vinícius Moreira
2019-12-18 15:49:03 -03:00
parent 69ee694a11
commit 585aec425f
4 changed files with 11 additions and 0 deletions

View File

@@ -504,7 +504,15 @@ class WebApplicationManager(SoftwareManager):
env_settings = self.env_updater.read_settings()
local_config = read_config()
if local_config['environment']['system'] and not nativefier.is_available():
watcher.show_message(title=self.i18n['error'].capitalize(),
body=self.i18n['web.install.global_nativefier.unavailable'].format(n=bold('Nativefier'), app=bold(pkg.name)) + '.',
type_=MessageType.ERROR)
return False
env_components = self.env_updater.check_environment(app=pkg, local_config=local_config, env=env_settings, is_x86_x64_arch=self.context.is_system_x86_64())
comps_to_update = [c for c in env_components if c.update]
if comps_to_update and not self._ask_update_permission(comps_to_update, watcher):

View File

@@ -41,6 +41,7 @@ web.install.option.tray.min.label=Start minimized
web.install.option.tray.min.tip=The app will be started minimized as an icon in the system tray
web.install.option.category.none=none
web.install.option.icon.label=Custom icon
web.install.global_nativefier.unavailable={n} seems not to be installed on your system. It will not be possible to install {app}
web.uninstall.error.install_dir.not_found=The installation directory {} was not found
web.uninstall.error.remove_dir=It was not possible to remove {}
web.info.1_url=URL

View File

@@ -41,6 +41,7 @@ web.install.option.tray.min.label=Iniciar minimizado
web.install.option.tray.min.tip=La aplicación se iniciará minimizada como un ícono en la bandeja del sistema
web.install.option.category.none=ninguna
web.install.option.icon.label=Icono personalizado
web.install.global_nativefier.unavailable={n} parece no estar instalado en su sistema. No será posible instalar {app}
web.uninstall.error.install_dir.not_found=No se encontró el directorio de instalación {}
web.uninstall.error.remove_dir=No fue posible eliminar {}
web.info.1_url=URL

View File

@@ -41,6 +41,7 @@ web.install.option.tray.min.label=Iniciar minimizado
web.install.option.tray.min.tip=O aplicativo será iniciado minimizado como um ícone da bandeja do sistema
web.install.option.category.none=nenhuma
web.install.option.icon.label=Ícone alternativo
web.install.global_nativefier.unavailable={n} não parece estar instalado no seu sistema. Não será possível instalar {app}
web.uninstall.error.install_dir.not_found=O diretório de instalação {} não foi encontrado
web.uninstall.error.remove=Não foi possível remover {}
web.info.1_url=URL