APP_MOMENT support

This commit is contained in:
abbodi1406 2023-10-18 13:59:54 +03:00
parent 4b9784640c
commit fd0b4ee514
3 changed files with 23 additions and 5 deletions

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "api"]
path = api
url = https://github.com/uup-dump-dev/api.git
url = https://github.com/uup-dump/api.git

View File

@ -34,6 +34,11 @@ function generatePack($updateId) {
return 0;
}
$updateTitle = $files['updateName'];
if(preg_match('/Corpnet Required/i', $updateTitle)) {
return 2;
}
$isku = $files['sku'];
$ibld = $files['build'];
$files = $files['files'];
@ -258,6 +263,19 @@ function generatePack($updateId) {
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);
$paks = array();
if(isset($appsToRead)) foreach($appsToRead as $val) {

View File

@ -2,7 +2,7 @@
require_once dirname(__FILE__).'/../api/shared/main.php';
function brand($script = null) {
$projVersion = '1.1.2';
$projVersion = '1.1.3';
return 'UUP dump standalone v'.$projVersion;
}