]> _ Git - cubeextranet.git/commitdiff
Permit to export apps when working at Montpellier
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 27 Jul 2015 10:44:09 +0000 (10:44 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 27 Jul 2015 10:44:09 +0000 (10:44 +0000)
inc/ws/Util/class.ws.exporter.php

index 2f7102402033a34dfed3b0293df7a8623523eccb..73e9b9e6caacbee3bae8a69f483e8eb7ba78b709 100644 (file)
@@ -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();
        }