Add Windows 11 to update names

This commit is contained in:
2025-11-21 18:23:07 +01:00
parent 6b5a6885f8
commit 0da5532141
2 changed files with 8 additions and 2 deletions

View File

@@ -344,9 +344,11 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku
if($foundType == 'server') { if($foundType == 'server') {
$updateTitle = str_replace('Windows 10', 'Windows Server', $updateTitle); $updateTitle = str_replace('Windows 10', 'Windows Server', $updateTitle);
$updateTitle = str_replace('Windows 11', 'Windows Server', $updateTitle); $updateTitle = str_replace('Windows 11', 'Windows Server', $updateTitle);
}
if(preg_match('/Server|Azure Stack HCI/i', $updateTitle) !== 1) if(preg_match('/Windows 1\d|Server|Azure Stack HCI/i', $updateTitle) !== 1) {
$updateTitle = str_replace('Update', 'Update for Microsoft server operating system', $updateTitle); $osName = $foundType != 'server' ? 'Windows 11' : 'Microsoft server operating system';
$updateTitle = str_replace('Update', "Update for $osName", $updateTitle);
} }
if($sku == 406) if($sku == 406)

View File

@@ -320,6 +320,10 @@ function branchFromBuild($build) {
$branch = 'ge_release'; $branch = 'ge_release';
break; break;
case 28000:
$branch = 'br_release';
break;
default: default:
$branch = 'rs_prerelease'; $branch = 'rs_prerelease';
break; break;