From: Vincent Vanwaelscappel Date: Mon, 2 Jun 2025 16:42:32 +0000 (+0200) Subject: wip #33077 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=49c6fe62b5006256e2a3a081331aa6131af70dc6;p=fluidbook-toolbox.git wip #33077 @0.5 --- diff --git a/app/Fluidbook/Packager/WindowsInstaller.php b/app/Fluidbook/Packager/WindowsInstaller.php index bd7430054..eba0e78ae 100644 --- a/app/Fluidbook/Packager/WindowsInstaller.php +++ b/app/Fluidbook/Packager/WindowsInstaller.php @@ -26,9 +26,12 @@ class WindowsInstaller extends WindowsZIP { $winvdir = $this->getFinalPackageDir(); - $trans=$this->book->getDefaultTranslations(); + $trans = $this->book->getDefaultTranslations(); - $locale = $trans['nsis']; + if (!isset($trans['nsis'])) { + debug(json_encode($trans)); + } + $locale = $trans['nsis'] ?? 'English'; if ($locale === 'Arabic') { $locale = 'English'; } @@ -62,9 +65,9 @@ class WindowsInstaller extends WindowsZIP $makensis->execute(); $makensis->debug(); - $out=$this->getPathBase('exe'); + $out = $this->getPathBase('exe'); - if (!file_exists($out) ){ + if (!file_exists($out)) { die('Error while building the installer : ' . $this->getPathBase('exe')); }