mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 00:44:16 +02:00
[web] checking if global nativefier is available during the installation process
This commit is contained in:
@@ -504,7 +504,15 @@ class WebApplicationManager(SoftwareManager):
|
|||||||
|
|
||||||
env_settings = self.env_updater.read_settings()
|
env_settings = self.env_updater.read_settings()
|
||||||
local_config = read_config()
|
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())
|
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]
|
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):
|
if comps_to_update and not self._ask_update_permission(comps_to_update, watcher):
|
||||||
|
|||||||
@@ -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.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.category.none=none
|
||||||
web.install.option.icon.label=Custom icon
|
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.install_dir.not_found=The installation directory {} was not found
|
||||||
web.uninstall.error.remove_dir=It was not possible to remove {}
|
web.uninstall.error.remove_dir=It was not possible to remove {}
|
||||||
web.info.1_url=URL
|
web.info.1_url=URL
|
||||||
|
|||||||
@@ -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.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.category.none=ninguna
|
||||||
web.install.option.icon.label=Icono personalizado
|
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.install_dir.not_found=No se encontró el directorio de instalación {}
|
||||||
web.uninstall.error.remove_dir=No fue posible eliminar {}
|
web.uninstall.error.remove_dir=No fue posible eliminar {}
|
||||||
web.info.1_url=URL
|
web.info.1_url=URL
|
||||||
|
|||||||
@@ -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.tray.min.tip=O aplicativo será iniciado minimizado como um ícone da bandeja do sistema
|
||||||
web.install.option.category.none=nenhuma
|
web.install.option.category.none=nenhuma
|
||||||
web.install.option.icon.label=Ícone alternativo
|
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.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.uninstall.error.remove=Não foi possível remover {}
|
||||||
web.info.1_url=URL
|
web.info.1_url=URL
|
||||||
|
|||||||
Reference in New Issue
Block a user