mkdir($this->buildPath . '/win32/', 0777, true);\r
}\r
\r
+ `rm -rf /home/extranetfiles/tmp/webexectemp/$this->appName.nwf/`;\r
+\r
$cl = new CubeIT_CommandLine('/usr/local/web2exe/web2exe-linux');\r
$cl->setPath(CONVERTER_PATH);\r
$cl->setEnv('TMPDIR', '/home/extranetfiles/tmp');\r
$cl->setArg('verbose');\r
$cl->setArg(null, $this->vdir);\r
$cl->execute();\r
+ $cl->debug();\r
\r
- $this->compileShortcut();\r
+ // $this->compileShortcut();\r
\r
}\r
\r
- function compileShortcut() {\r
- $tmp = CubeIT_Files::tmpdir();\r
-\r
- $files = array('fluidbook.cpp', 'fluidbook.rc');\r
- $vars = array('icofile' => $this->vdir . '/icon.ico',\r
- 'exename' => $this->exeName,\r
- 'platform' => $this->nwplatform,\r
- 'appversion' => $this->appversion,\r
- 'appname' => $this->appName);\r
- foreach ($files as $file) {\r
- $c = file_get_contents(WS_COMPILE_ASSETS . '/_exehtml/exeshortcut/' . $file);\r
- foreach ($vars as $k => $v) {\r
- $c = str_replace('$' . $k, $v, $c);\r
- }\r
- file_put_contents($tmp . '/' . $file, $c);\r
- }\r
-\r
- $cl = new CubeIT_CommandLine('i686-w64-mingw32-windres');\r
- $cl->setPath(CONVERTER_PATH);\r
- $cl->setArg(null, $tmp . '/fluidbook.rc');\r
- $cl->setArg('O', 'coff');\r
- $cl->setArg('o', $tmp . '/fluidbook.res');\r
- $cl->execute();\r
- $cl->debug();\r
-\r
- //i686-w64-mingw32-g++ -lmingw32 -o fluidbook.exe /home/extranet/www/fluidbook/compile/_exehtml/fluidbook.cpp\r
- $cl = new CubeIT_CommandLine('i686-w64-mingw32-g++');\r
- $cl->setPath(CONVERTER_PATH);\r
- $cl->setManualArg('-lmingw32');\r
- $cl->setManualArg('-mwindows');\r
- $cl->setArg('o', $this->buildPath . '/' . $this->exeName . '/' . $this->exeName . '.exe');\r
- $cl->setArg(null, $tmp . '/fluidbook.cpp');\r
- $cl->setArg(null, $tmp . '/fluidbook.res');\r
- $cl->execute();\r
- $cl->debug();\r
- }\r
+ // function compileShortcut() {\r
+ // $tmp = CubeIT_Files::tmpdir();\r
+ //\r
+ // $files = array('fluidbook.cpp', 'fluidbook.rc');\r
+ // $vars = array('icofile' => $this->vdir . '/icon.ico',\r
+ // 'exename' => $this->exeName,\r
+ // 'platform' => $this->nwplatform,\r
+ // 'appversion' => $this->appversion,\r
+ // 'appname' => $this->appName);\r
+ // foreach ($files as $file) {\r
+ // $c = file_get_contents(WS_COMPILE_ASSETS . '/_exehtml/exeshortcut/' . $file);\r
+ // foreach ($vars as $k => $v) {\r
+ // $c = str_replace('$' . $k, $v, $c);\r
+ // }\r
+ // file_put_contents($tmp . '/' . $file, $c);\r
+ // }\r
+ //\r
+ // $cl = new CubeIT_CommandLine('i686-w64-mingw32-windres');\r
+ // $cl->setPath(CONVERTER_PATH);\r
+ // $cl->setArg(null, $tmp . '/fluidbook.rc');\r
+ // $cl->setArg('O', 'coff');\r
+ // $cl->setArg('o', $tmp . '/fluidbook.res');\r
+ // $cl->execute();\r
+ // $cl->debug();\r
+ //\r
+ // $cl = new CubeIT_CommandLine('i686-w64-mingw32-g++');\r
+ // $cl->setPath(CONVERTER_PATH);\r
+ // $cl->setManualArg('-lmingw32');\r
+ // $cl->setManualArg('-mwindows');\r
+ // $cl->setArg('o', $this->buildPath . '/' . $this->exeName . '/' . $this->exeName . '.exe');\r
+ // $cl->setArg(null, $tmp . '/fluidbook.cpp');\r
+ // $cl->setArg(null, $tmp . '/fluidbook.res');\r
+ // $cl->execute();\r
+ // $cl->debug();\r
+ // }\r
\r
function makeJSON() {\r
$data = ['app_name' => $this->appName, 'main' => 'index.html', 'name' => $this->exeName, 'version' => '1.0.' . time(),\r
}\r
\r
public function getFinalPackageDir() {\r
- return $this->buildPath . '/' . $this->exeName . '/';\r
+ return $this->buildPath . '/' . $this->exeName . '/' . $this->nwplatform;\r
}\r
\r
protected function compile() {\r