Add additional appx presence checks

This commit is contained in:
Kaenbyou Rin 2024-06-21 13:31:41 +02:00
parent faa3b7fa45
commit 5e31a6f724
4 changed files with 7 additions and 2 deletions

View File

@ -372,6 +372,7 @@ function uupGetFiles(
'build' => $updateBuild, 'build' => $updateBuild,
'sku' => $updateSku, 'sku' => $updateSku,
'hasUpdates' => $hasUpdates, 'hasUpdates' => $hasUpdates,
'appxPresent' => uupAreAppxPresent($genPack),
'files' => $files, 'files' => $files,
]; ];

View File

@ -40,7 +40,7 @@ function uupListLangsInternal($updateId) {
return [ return [
'langList' => $langList, 'langList' => $langList,
'langFancyNames' => $langListFancy, 'langFancyNames' => $langListFancy,
'appxPresent' => isset($genPack['neutral']['APP']), 'appxPresent' => uupAreAppxPresent($genPack),
]; ];
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
*/ */
function uupApiVersion() { function uupApiVersion() {
return '1.46.0'; return '1.47.0';
} }
require_once dirname(__FILE__).'/auths.php'; require_once dirname(__FILE__).'/auths.php';

View File

@ -199,3 +199,7 @@ function getAllowedFlags() {
return $flags; return $flags;
} }
function uupAreAppxPresent($genPack) {
return isset($genPack['neutral']['APP']);
}