}
public static function updateHTML5Sources($args = array(), $externals = true) {
- $branchesDir = WS_COMPILE_ASSETS . '/player/branches/';
+ $playerDir = WS_COMPILE_ASSETS . '/player/';
+ $branchesDir = $playerDir . 'branches/';
+ $localDir = $playerDir . 'local/';
$git = new CubeIT_CommandLine_Git($branchesDir . 'fluidbook-html5');
echo '<pre>';
echo $git->executeCmd('pull --all');
$git = new CubeIT_CommandLine_Git($branchesDir);
echo $git->executeCmd('clone -b ' . $b . ' --single-branch git@git.cubedesigners.com:fluidbook-html5.git ' . $b);
}
+ if (!file_exists($localDir . $b)) {
+ mkdir($localDir . $b, 0777, true);
+ }
$git = new CubeIT_CommandLine_Git($branchesDir . $b);
echo $git->executeCmd('pull');
}
$this->fields['navOrderH'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => __('Ordre des icônes dans la nav') . ' (' . __('Si différente') . ')', 'grade' => 3);
- $branches = array(__('Stable') => 'stable',
- __('En cours de développement') => 'dev');
+ $branches = array('master : git (stable)' => 'stable',
+ 'master : local (dev)' => 'dev');
$gitbranches = json_decode(file_get_contents(WS_CACHE . '/activebranches'));
foreach ($gitbranches as $b) {
- $branches['Branch ' . $b] = 'branch:' . $b;
+ $branches[$b . ' : git'] = $b . '|git';
+ $branches[$b . ' : local'] = $b . '|local';
}
$this->fields['mobileLVersion'] = array('type' => 'combo', 'default' => 'stable', 'editable' => true,
'js/libs/gsap/jquery.gsap.js',
'js/libs/gal/gal.js',
'js/libs/gal/gal.filesystem.js',
+ 'js/libs/interact.js',
'js/libs/fluidbook/forms/fluidbook.form.bulle.js',
'js/libs/fluidbook/fluidbook.utils.js',
'js/libs/fluidbook/fluidbook.links.js',
'js/libs/fluidbook/fluidbook.l10n.js',
'js/libs/fluidbook/fluidbook.nav.js',
'js/libs/fluidbook/fluidbook.touch.js',
+ 'js/libs/fluidbook/fluidbook.interact.js',
'js/libs/fluidbook/fluidbook.loader.js',
'js/libs/fluidbook/fluidbook.search.js',
'js/libs/fluidbook/fluidbook.help.js',
$this->version = $version;
if ($version == 'stable') {
- $this->assets = WS_COMPILE_ASSETS . '/_html5prod';
- wsMaintenance::updateHTML5Sources(array(), false);
+ $this->assets = WS_COMPILE_ASSETS . '/player/branches/master';
+ } else if ($version == 'dev') {
+ $this->assets = WS_COMPILE_ASSETS . '/player/local/master';
} else {
- $this->assets = WS_COMPILE_ASSETS . '/_html5';
+ list($branch, $location) = explode('|', $version);
+ $this->assets = WS_COMPILE_ASSETS . '/player/' . ($location == 'git' ? 'branches' : $location) . '/' . $branch;
}
+
+
$this->phonegap = $phonegap;
$this->standalone = $standalone || $this->phonegap;
$this->appcache = $appcache;
global $core;
if ($this->book->parametres->customLinkClass == 'WescoSalesLink') {
- $this->specialJsFiles[] = 'js/libs/interact.js';
$this->specialJsFiles[] = 'js/libs/fluidbook/special/wescosales.js';
$this->specialCSS[] = 'style/special/wescosales.css';
}