]> _ Git - cubeextranet.git/commitdiff
wait #5275 @1.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 9 May 2022 08:52:10 +0000 (08:52 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 9 May 2022 08:52:10 +0000 (08:52 +0000)
fluidbook/compile/html-silent.nsi
fluidbook/compile/html.nsi
inc/ws/Util/html5/master/class.ws.html5.compiler.php
inc/ws/Util/packager/class.ws.packager.win.inst.html.php

index 876bbb7e1e7449fcd3a584f335708688370eee92..aa041b98946d1d6d40d32683952de9bf25a73b59 100644 (file)
@@ -4,6 +4,8 @@
 !define FLUIDBOOKNAME "$name"\r
 !define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\$fname"\r
 \r
+Unicode true\r
+\r
 ; The name of the installer\r
 Name "${FLUIDBOOKNAME}"\r
 \r
@@ -48,7 +50,7 @@ Section "" ;No components page, name is not important
 \r
     ; Put file there\r
     SetOverwrite ifnewer\r
-    File /a  /r "$fdir\*"\r
+    File /r "$fdir\*"\r
 \r
     ; Create shortcut\r
     CreateShortCut "$SMPROGRAMS\${FLUIDBOOKNAME}.lnk" "$INSTDIR\$fname.exe" "--disable-crash-handler=true" "$INSTDIR\package.nw\icon.ico"\r
index 1656b40d78ac27c3f885a7b32bbc0a9dcd636236..f5c211b6b7cf91289388f80061ef023aa9396b00 100644 (file)
@@ -44,7 +44,7 @@ Section "" ;No components page, name is not important
 \r
     ; Put file there\r
     SetOverwrite ifnewer\r
-    File /a  /r "$fdir\*"\r
+    File /r "$fdir\*"\r
 \r
     ; Create shortcut\r
     CreateShortCut "$SMPROGRAMS\${FLUIDBOOKNAME}.lnk" "$INSTDIR\$fname.exe" "--disable-crash-handler=true" "$INSTDIR\package.nw\icon.ico"\r
index a260406577ca6c80fd739b8bcb06567fc9f89c12..e8d21c35bf637aa10eae8a4316a627dd8a516ebd 100644 (file)
@@ -1795,6 +1795,8 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
         if (!$this->config->pdfName) {
             $this->config->pdfName = 'document.pdf';
         }
+        $this->config->pdfName = CubeIT_Text::removeAccents($this->config->pdfName);
+
         if ($res !== false) {
             $this->vdir->copy($res, 'data/' . $this->config->pdfName);
         }
index c017d25eed6feae3b2a44a8384607dd13b17e202..4d24c183e43499d190b459b4559a85ac78ba3dab 100644 (file)
@@ -83,12 +83,20 @@ class wsPackagerWinINSTHTML extends wsPackagerWinEXEHTML
         $tmp = cubeFiles::tempnam() . '.nsi';\r
         file_put_contents($tmp, $this->nsi);\r
         $makensis = new CubeIT_CommandLine('/usr/local/bin/makensis');\r
+        $makensis->setArg(null,'-V4');\r
         $makensis->setArg(null, $tmp);\r
         $makensis->execute();\r
         $makensis->debug();\r
+        if (!file_exists($this->getPathBase('exe'))) {\r
+            die('Error while building the installer  : ' . $this->getPathBase('exe') . ' // ' . $makensis->commande . ' // ' . $makensis->output);\r
+        }\r
 \r
         $this->signInstaller();\r
 \r
+        if (!file_exists($this->getPathBase('exe'))) {\r
+            die('Error during the signing process : ' . $this->getPathBase('exe'));\r
+        }\r
+\r
         return $this->getURLBase('exe');\r
     }\r
 \r