$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()) {
// 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)
{
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);
`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);
}
}