[Windows] Reimplement function resolving GH asset (#8899)

* [Windows] Reimplement function resolving GH asset

* Fix tests and software report

* Fix selenium-server version check
This commit is contained in:
Vasilii Polikarpov
2023-11-28 15:08:03 +01:00
committed by GitHub
parent e8f9c10965
commit da1c04b81a
11 changed files with 104 additions and 78 deletions

View File

@@ -50,12 +50,10 @@ if (Test-IsWin19) {
throw "Unknown architecture $_"
}
$url = Get-GitHubPackageDownloadUrl `
-RepoOwner "niXman" `
-RepoName "mingw-builds-binaries" `
-BinaryName "" `
-Version $version `
-UrlFilter "*$arch-{Version}-release-$threads-$exceptions-$runtime-*.7z"
$url = Resolve-GithubReleaseAssetUrl `
-Repo "niXman/mingw-builds-binaries" `
-Version "$version" `
-Asset "$arch-*-release-$threads-$exceptions-$runtime-*.7z"
$packagePath = Start-DownloadWithRetry -Url $url -Name "$_.7z"
Expand-7ZipArchive -Path $packagePath -DestinationPath "C:\"