Add support of Windows Server cumulative updates for absolutely no reason

This commit is contained in:
mkuba50 2019-03-17 18:04:51 +01:00
parent 40eb74fa09
commit 2db17c34a2
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -169,8 +169,14 @@ function composeFetchUpdRequest($device, $encData, $arch, $flight, $ring, $build
$branch = branchFromBuild($build);
if($sku == 7 || $sku == 8) {
$mainProduct = 'Server.OS';
} else {
$mainProduct = 'Client.OS.rs2';
}
$products = array(
'PN=Client.OS.rs2.'.$arch.'&Branch='.$branch.'&PrimaryOSProduct=1&Repairable=1&V='.$build,
'PN='.$mainProduct.'.'.$arch.'&Branch='.$branch.'&PrimaryOSProduct=1&Repairable=1&V='.$build,
'PN=Windows.Appraiser.'.$arch.'&Repairable=1&V='.$build,
'PN=Windows.AppraiserData.'.$arch.'&Repairable=1&V='.$build,
'PN=Windows.EmergencyUpdate.'.$arch.'&Repairable=1&V='.$build,