]> _ Git - fluidbook-toolbox.git/commitdiff
wip #33077 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Jun 2025 16:42:32 +0000 (18:42 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Jun 2025 16:42:32 +0000 (18:42 +0200)
app/Fluidbook/Packager/WindowsInstaller.php

index bd7430054c5395b2966d0049ead84be24aa9c594..eba0e78ae539c6f0928c59fde6c4083c72299668 100644 (file)
@@ -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'));
         }