public $destinationFile;
public $x;
+ const VINCENT = "montpellier.cubedesigners.com";
+
public function exportCollection($collectionId, $os) {
global $core;
$phonegap->setAppName($appNames);
$phonegap->setWWWDirectory($dir);
if ($os == 'ios') {
- $phonegap->setDistantCompiler('paris.cubedesigners.com', 'vincent', 'iquique', '/Phonegap/Projects/' . $d, '/mnt/macbox/Phonegap/Projects/' . $d, 22022, SSH_KEY);
+
+ $phonegap->setDistantCompiler(self::VINCENT, 'vincent', 'iquique', '/Phonegap/Projects/' . $d, '/mnt/macbox/Phonegap/Projects/' . $d, 22022, SSH_KEY);
} else if ($os == 'android') {
$manifestType = isset($collection->settings['offline']) ? 'Offline' : 'Online';
$phonegap->setManifest(WS_COMPILE_ASSETS . '/_html5app/_android/AndroidManifest' . $manifestType . '.xml');
$phonegap->setMain(WS_COMPILE_ASSETS . '/_html5app/_android/Main' . $manifestType . '.java');
$phonegap->addLibrary(WS_COMPILE_ASSETS . '/_html5app/_android/lib');
- $phonegap->setDistantCompiler('paris.cubedesigners.com', 'Vincent', 's77vpo*wu', 'h:/Phonegap/Projects/' . $d, '/mnt/vincent/cygdrive/h/Phonegap/Projects/' . $d, 22322, SSH_KEY);
+ $phonegap->setDistantCompiler(self::VINCENT, 'Vincent', 's77vpo*wu', 'h:/Phonegap/Projects/' . $d, '/mnt/vincent/cygdrive/h/Phonegap/Projects/' . $d, 22322, SSH_KEY);
$phonegap->setSourceVariables(array('background' => '0xff' . $collection->settings['couleurD'],
'orientation' => $collection->settings['orientation'])
);
$cl->setArg(null, $dir);
$cl->setArg(null, $ns);
$cl->setArg(null, CubeIT_Text::str2URL($name));
- $cl->setSSH('paris.cubedesigners.com', 'vincent', '', 22022);
+ $cl->setSSH(self::VINCENT, 'vincent', '', 22022);
$cl->execute();
// Install plugins
$this->_iosPlugin($dir, 'PushPlugin');
$cl->setManualArg(' --platform ios');
$cl->setManualArg(' --project ' . $dir);
$cl->setManualArg(' --plugin /Phonegap/Plugins/' . $plugin);
- $cl->setSSH('paris.cubedesigners.com', 'vincent', '', 22022);
+ $cl->setSSH(self::VINCENT, 'vincent', '', 22022);
$cl->execute();
}