APP_MOMENT support
This commit is contained in:
parent
4b9784640c
commit
fd0b4ee514
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,3 +1,3 @@
|
|||||||
[submodule "api"]
|
[submodule "api"]
|
||||||
path = api
|
path = api
|
||||||
url = https://github.com/uup-dump-dev/api.git
|
url = https://github.com/uup-dump/api.git
|
||||||
|
@ -34,6 +34,11 @@ function generatePack($updateId) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$updateTitle = $files['updateName'];
|
||||||
|
if(preg_match('/Corpnet Required/i', $updateTitle)) {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
$isku = $files['sku'];
|
$isku = $files['sku'];
|
||||||
$ibld = $files['build'];
|
$ibld = $files['build'];
|
||||||
$files = $files['files'];
|
$files = $files['files'];
|
||||||
@ -258,6 +263,19 @@ function generatePack($updateId) {
|
|||||||
unset($file, $xml, $name, $newName, $lang, $edition);
|
unset($file, $xml, $name, $newName, $lang, $edition);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($appsToRead) && $ibld > 22620) foreach($appsToRead as $val) {
|
||||||
|
$file = $tmp.'/'.$val;
|
||||||
|
$xml = simplexml_load_file($file);
|
||||||
|
|
||||||
|
foreach($xml->Features->Feature as $ftr) {
|
||||||
|
if(@count($ftr->Dependencies)) foreach($ftr->Dependencies->Feature as $dep) {
|
||||||
|
if(isset($dep['Group']) && ($dep['Group'] == 'PreinstalledApps')) $optAppx[] = strtolower($dep['FeatureID']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
unset($file, $xml);
|
||||||
|
}
|
||||||
|
|
||||||
$appxOpt = array_flip($optAppx);
|
$appxOpt = array_flip($optAppx);
|
||||||
$paks = array();
|
$paks = array();
|
||||||
if(isset($appsToRead)) foreach($appsToRead as $val) {
|
if(isset($appsToRead)) foreach($appsToRead as $val) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require_once dirname(__FILE__).'/../api/shared/main.php';
|
require_once dirname(__FILE__).'/../api/shared/main.php';
|
||||||
|
|
||||||
function brand($script = null) {
|
function brand($script = null) {
|
||||||
$projVersion = '1.1.2';
|
$projVersion = '1.1.3';
|
||||||
return 'UUP dump standalone v'.$projVersion;
|
return 'UUP dump standalone v'.$projVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user