Update metadata and generated packs

This commit is contained in:
mkuba50 2019-04-09 17:52:51 +02:00
parent 451d9e38c9
commit a90dc04636
11 changed files with 15 additions and 7 deletions

View File

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

File diff suppressed because one or more lines are too long

View File

@ -18,19 +18,23 @@ limitations under the License.
// Composes DeviceAttributes parameter needed to fetch data // Composes DeviceAttributes parameter needed to fetch data
function composeDeviceAttributes($flight, $ring, $build, $arch, $sku) { function composeDeviceAttributes($flight, $ring, $build, $arch, $sku) {
$branch = branchFromBuild($build); $branch = branchFromBuild($build);
$blockUpgrades = 0;
$flightEnabled = 1;
$isRetail = 0;
if($ring == 'RETAIL') { if($ring == 'RETAIL') {
$flightEnabled = 0; $flightEnabled = 0;
$isRetail = 1; $isRetail = 1;
} else {
$flightEnabled = 1;
$isRetail = 0;
} }
if($sku == 125 || $sku == 126)
$blockUpgrades = 1;
$attrib = array( $attrib = array(
'App=WU_OS', 'App=WU_OS',
'AppVer='.$build, 'AppVer='.$build,
'AttrDataVer=60', 'AttrDataVer=61',
'BlockFeatureUpdates='.$blockUpgrades,
'BranchReadinessLevel=CB', 'BranchReadinessLevel=CB',
'CurrentBranch='.$branch, 'CurrentBranch='.$branch,
'DefaultUserRegion=191', 'DefaultUserRegion=191',
@ -90,6 +94,10 @@ function branchFromBuild($build) {
$branch = 'rs5_release'; $branch = 'rs5_release';
break; break;
case 18362:
$branch = '19h1_release';
break;
default: default:
$branch = 'rs_prerelease'; $branch = 'rs_prerelease';
break; break;
@ -176,7 +184,7 @@ function composeFetchUpdRequest($device, $encData, $arch, $flight, $ring, $build
} }
$products = array( $products = array(
'PN='.$mainProduct.'.'.$arch.'&Branch='.$branch.'&PrimaryOSProduct=1&Repairable=1&V='.$build, 'PN='.$mainProduct.'.'.$arch.'&Branch='.$branch.'&PrimaryOSProduct=1&Repairable=1&V='.$build.'&ReofferUpdate=1',
'PN=Windows.Appraiser.'.$arch.'&Repairable=1&V='.$build, 'PN=Windows.Appraiser.'.$arch.'&Repairable=1&V='.$build,
'PN=Windows.AppraiserData.'.$arch.'&Repairable=1&V='.$build, 'PN=Windows.AppraiserData.'.$arch.'&Repairable=1&V='.$build,
'PN=Windows.EmergencyUpdate.'.$arch.'&Repairable=1&V='.$build, 'PN=Windows.EmergencyUpdate.'.$arch.'&Repairable=1&V='.$build,