\r
protected function preparePackage()\r
{\r
+\r
parent::preparePackage();\r
+\r
$this->copyFluidbookFiles();\r
$this->makeJSON();\r
\r
copy($exe, '/mnt/sshfs/codesign/' . $rand);\r
$cli = new CubeIT_CommandLine('C:/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64/signtool.exe');\r
$cli->setManualArg("sign /f C:/Users/vince/Documents/Cubedesigners.cer /csp \"eToken Base Cryptographic Provider\" /k \"[SafeNet Token JC 0{{TYWjZacq%hAH98}}]=54C3F1B91759268A\" /tr http://timestamp.sectigo.com /td sha256 /fd sha256 /a C:/Sign/$rand");\r
- $cli->execute(new CubeIT_Networking_SSH2('paris.cubedesigners.com','vince','Y@mUC9mY2DOYWXkN','22422'));\r
+ $cli->execute(new CubeIT_Networking_SSH2('paris.cubedesigners.com', 'vince', 'Y@mUC9mY2DOYWXkN', '22422'));\r
$cli->debug();\r
sleep(2);\r
copy('/mnt/sshfs/codesign/' . $rand, $exe);\r
$data['chromium-args'] = '--crash-dumps-dir=\'' . $datadir . '\' --user-data-dir=\'' . $datadir . '\'';\r
}\r
\r
+\r
$pngIcon = $this->vdir . '/icon.png';\r
$winIcon = $this->vdir . '/icon.ico';\r
\r
$icns = $this->vdir . '/icon.icns';\r
$this->copy($png, $pngIcon);\r
$this->copy($ico, $winIcon);\r
-\r
commonTools::pngToIcns($png, $icns);\r
\r
+\r
file_put_contents($this->vdir . '/package.json', json_encode($data));\r
}\r
\r
return $this->buildPath . '/' . $this->exeName . '/' . $this->nwplatform;\r
}\r
\r
- protected function compile()\r
+ protected function compile($forceCompile = false)\r
{\r
// For exe version, force to export only the html5 version\r
// No need to export pages with texts for this version, we are certain that svg is supported if enabled\r
if ($this->book->parametres->mobileVersion == 'html5-desktop') {\r
$this->book->parametres->mobileVersion = 'html5';\r
}\r
+ $this->book->parametres->seoVersion = false;\r
\r
$this->daoBook->compile($this->book_id, 'html5', false, $this->book->parametres->forceCompileOnDownload, false, $this->book);\r
}\r