From bf108f21c744ceb65bd1c2a3f86798b23b97cad7 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 27 Jul 2015 10:44:09 +0000 Subject: [PATCH] Permit to export apps when working at Montpellier --- inc/ws/Util/class.ws.exporter.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/inc/ws/Util/class.ws.exporter.php b/inc/ws/Util/class.ws.exporter.php index 2f7102402..73e9b9e6c 100644 --- a/inc/ws/Util/class.ws.exporter.php +++ b/inc/ws/Util/class.ws.exporter.php @@ -14,6 +14,8 @@ class wsExporter { public $destinationFile; public $x; + const VINCENT = "montpellier.cubedesigners.com"; + public function exportCollection($collectionId, $os) { global $core; @@ -57,13 +59,14 @@ class wsExporter { $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']) ); @@ -229,7 +232,7 @@ class wsExporter { $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'); @@ -250,7 +253,7 @@ class wsExporter { $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(); } -- 2.39.5