]> _ Git - cubeextranet.git/commitdiff
wait #5599
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 16 Dec 2022 17:00:22 +0000 (17:00 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 16 Dec 2022 17:00:22 +0000 (17:00 +0000)
inc/ws/Util/class.ws.exporter.php

index 9d9aaa80279bf76dfa3c3effa3acfb44422a39e7..7ac96858a44458cab9a19a1e32385d65ff008e65 100644 (file)
@@ -66,7 +66,7 @@ class wsExporter
         $phonegap->setAppName($appNames);
         $phonegap->setWWWDirectory($dir);
         if ($os == 'ios') {
-            $phonegap->setDistantCompiler(self::VINCENT, 'vincent', 'atacama', '/Users/vincent/Phonegap/Projects/' . $d, '/mnt/macbox/Phonegap/Projects/' . $d, 22022, SSH_KEY);
+            $phonegap->setDistantCompiler(self::VINCENT, 'vincent', 'atacama', '/Users/vincent/Phonegap/Projects/' . $d, '/mnt/sshfs/macparis/Users/vincent/Phonegap/Projects/' . $d, 22022, SSH_KEY);
         } else if ($os == 'android') {
             $manifestType = isset($collection->settings['offline']) ? 'Offline' : 'Online';
             if (!$phonegap->getExpansion()) {
@@ -233,7 +233,7 @@ class wsExporter
 
 
         // Transfert
-        $this->_rsync(WS_COLLECTIONS . '/resources/' . $collection->collection_id . '/' . $os, "/mnt/macbox" . $this->_iosProjectDir($collection->settings['namespace']) . '/' . CubeIT_Text::str2URL($collection->nom) . '/Resources', false);
+        $this->_rsync(WS_COLLECTIONS . '/resources/' . $collection->collection_id . '/' . $os, "/mnt/sshfs/macparis/Users" . $this->_iosProjectDir($collection->settings['namespace']) . '/' . CubeIT_Text::str2URL($collection->nom) . '/Resources', false);
     }
 
     protected function _testFile($ref, $dest)
@@ -251,7 +251,7 @@ class wsExporter
     {
         if ($os == 'ios') {
             $dir = $this->_iosProjectDir($ns);
-            $sdir = '/mnt/macbox' . $dir;
+            $sdir = '/mnt/sshfs/macparis/Users/vincent' . $dir;
             if (!file_exists($sdir)) {
                 `sudo /usr/local/bin/remountmac`;
                 mkdir($sdir, 0777, true);
@@ -420,8 +420,7 @@ class wsExporter
             `sudo /usr/local/bin/remountvincent`;
             $this->_rsync($package, '/mnt/vincent/cygdrive/h/Works/Phonegap/Projects/' . $destination, true);
         } else if ($os == 'ios') {
-            `sudo /usr/local/bin/remountmac`;
-            $this->_rsync($package, '/mnt/macbox/Phonegap/Projects/' . $destination, true);
+            $this->_rsync($package, '/mnt/sshfs/macparis/Users/vincent/Phonegap/Projects/' . $destination, true);
         }
     }