$title = $this->appName;\r
\r
$nsi = file_get_contents(WS_COMPILE_ASSETS . '/' . $this->nsifile . '.nsi');\r
- $nsi = str_replace('$name', utf8_decode($title), $nsi);\r
- $nsi = str_replace('$htmldir', utf8_decode(WS_COMPILE_ASSETS), $nsi);\r
+ $nsi = str_replace('$name', $title, $nsi);\r
+ $nsi = str_replace('$htmldir', WS_COMPILE_ASSETS, $nsi);\r
$nsi = str_replace('$fname', $fname, $nsi);\r
$nsi = str_replace('$fdir', $winvdir, $nsi);\r
- $nsi = str_replace('$titre', utf8_decode($title), $nsi);\r
- $nsi = str_replace('$lang', utf8_decode($lang->nsis), $nsi);\r
+ $nsi = str_replace('$titre', $title, $nsi);\r
+ $nsi = str_replace('$lang', $lang->nsis, $nsi);\r
$nsi = str_replace('$nwplatform', $this->nwplatform, $nsi);\r
$nsi = str_replace('$nsisdir', '/usr/share/nsis', $nsi);\r
$nsi = str_replace('$output', $this->getPathBase('exe'), $nsi);\r
<?php\r
\r
-class wsPackagerWinINST extends wsPackagerWinEXE {\r
+class wsPackagerWinINST extends wsPackagerWinEXE\r
+{\r
\r
protected $nsi;\r
\r
- public function __construct($book_id) {\r
+ public function __construct($book_id)\r
+ {\r
parent::__construct($book_id);\r
$this->version = 'win-ins';\r
$this->book->parametres->alwaysHTML5 = false;\r
}\r
\r
- protected function preparePackage() {\r
+ protected function preparePackage()\r
+ {\r
parent::preparePackage();\r
\r
$this->copyFluidbookFiles();\r
$this->makeNSI();\r
}\r
\r
- protected function makeNSI() {\r
+ protected function makeNSI()\r
+ {\r
global $core;\r
\r
$winvdir = trim($this->vdir, '/');\r
$title = $this->book->parametres->offlineTitle == '' ? $this->book->parametres->title : $this->book->parametres->offlineTitle;\r
\r
$nsi = file_get_contents(WS_COMPILE_ASSETS . '/script.nsi');\r
- $nsi = str_replace('$name', utf8_decode($title), $nsi);\r
- $nsi = str_replace('$htmldir', utf8_decode(WS_COMPILE_ASSETS), $nsi);\r
+ $nsi = str_replace('$name', $title, $nsi);\r
+ $nsi = str_replace('$htmldir', WS_COMPILE_ASSETS, $nsi);\r
$nsi = str_replace('$fname', $fname, $nsi);\r
$nsi = str_replace('$fdir', $winvdir, $nsi);\r
- $nsi = str_replace('$titre', utf8_decode($title), $nsi);\r
- $nsi = str_replace('$lang', utf8_decode($lang->nsis), $nsi);\r
+ $nsi = str_replace('$titre', $title, $nsi);\r
+ $nsi = str_replace('$lang', $lang->nsis, $nsi);\r
$nsi = str_replace('$nsisdir', '/usr/share/nsis', $nsi);\r
$nsi = str_replace('$output', $this->getPathBase('exe'), $nsi);\r
$favicon = $this->vdir . '/data/fluidbook.ico';\r
$this->nsi = $nsi;\r
}\r
\r
- public function makePackage($zip) {\r
+ public function makePackage($zip)\r
+ {\r
$this->preparePackage();\r
\r
$tmp = cubeFiles::tempnam();\r
return $this->getURLBase('exe');\r
}\r
\r
- public function __destruct() {\r
+ public function __destruct()\r
+ {\r
\r
}\r
\r