Revert "Fetch latest ICU release version dynamically" (#27127)

This commit is contained in:
Dongbo Wang
2026-03-31 14:24:41 -07:00
committed by GitHub
parent 1b390e1fa7
commit ff37ab4539
+1 -13
View File
@@ -2152,7 +2152,7 @@ function Get-PackageDependencies
# than the build version and we know that older versions just works.
#
$MinICUVersion = 60 # runtime minimum supported
$BuildICUVersion = Get-IcuLatestRelease
$BuildICUVersion = 76 # current build version
$MaxICUVersion = $BuildICUVersion + 30 # headroom
if ($Distribution -eq 'deb') {
@@ -5809,15 +5809,3 @@ function Test-IsProductFile {
return $false
}
# Get major version from latest ICU release (latest: stable version)
function Get-IcuLatestRelease {
$response = Invoke-WebRequest -Uri "https://github.com/unicode-org/icu/releases/latest"
$tagUrl = ($response.Links | Where-Object href -like "*releases/tag/release-*")[0].href
if ($tagUrl -match 'release-(\d+)\.') {
return [int]$Matches[1]
}
throw "Unable to determine the latest ICU release version."
}