From 5e31a6f72401e9692d77fe08aaed8723aa1e8a2b Mon Sep 17 00:00:00 2001 From: orin Date: Fri, 21 Jun 2024 13:31:41 +0200 Subject: [PATCH] Add additional appx presence checks --- get.php | 1 + listlangs.php | 2 +- shared/main.php | 2 +- shared/utils.php | 4 ++++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/get.php b/get.php index 97f2d3a..090c742 100644 --- a/get.php +++ b/get.php @@ -372,6 +372,7 @@ function uupGetFiles( 'build' => $updateBuild, 'sku' => $updateSku, 'hasUpdates' => $hasUpdates, + 'appxPresent' => uupAreAppxPresent($genPack), 'files' => $files, ]; diff --git a/listlangs.php b/listlangs.php index 78fe868..f63219f 100644 --- a/listlangs.php +++ b/listlangs.php @@ -40,7 +40,7 @@ function uupListLangsInternal($updateId) { return [ 'langList' => $langList, 'langFancyNames' => $langListFancy, - 'appxPresent' => isset($genPack['neutral']['APP']), + 'appxPresent' => uupAreAppxPresent($genPack), ]; } diff --git a/shared/main.php b/shared/main.php index 667539c..b58415d 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.46.0'; + return '1.47.0'; } require_once dirname(__FILE__).'/auths.php'; diff --git a/shared/utils.php b/shared/utils.php index f601a71..605e3d3 100644 --- a/shared/utils.php +++ b/shared/utils.php @@ -199,3 +199,7 @@ function getAllowedFlags() { return $flags; } + +function uupAreAppxPresent($genPack) { + return isset($genPack['neutral']['APP']); +}