mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-19 23:21:19 +00:00
Fix broken checkver script, binaries no longer added to https://github.com/SeleniumHQ/selenium/raw/trunk/common/manager/windows/ but instead uploaded to https://github.com/SeleniumHQ/selenium_manager_artifacts/releases. These binaries are released more often than Selenium itself so to get the right release we need to check which one is bundled with the stable Selenium. This script was written based on the conversation here https://github.com/SeleniumHQ/selenium/issues/11694. Once binaries are released, we won't need this script. Version number changed to match the Selenium release.
32 lines
1.7 KiB
JSON
32 lines
1.7 KiB
JSON
{
|
|
"version": "4.17.0",
|
|
"description": "Selenium Manager is a command-line tool developed in Rust to allow cross platform execution.",
|
|
"homepage": "https://www.selenium.dev/blog/2022/introducing-selenium-manager",
|
|
"license": "Apache-2.0",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/SeleniumHQ/selenium_manager_artifacts/releases/download/selenium-manager-03637c4/selenium-manager-windows.exe#/selenium-manager.exe",
|
|
"hash": "cb6e0b5ca072038e7626f77263c4b443b1f3e6c550cf3ebf09bf7d2c237a7389"
|
|
}
|
|
},
|
|
"bin": "selenium-manager.exe",
|
|
"checkver": {
|
|
"script": [
|
|
"# This script was written based on the conversation here https://github.com/SeleniumHQ/selenium/issues/11694. Once binaries are released, we won't need this script.",
|
|
"$request = ((Invoke-WebRequest -Uri 'https://github.com/SeleniumHQ/selenium/').Content -split \"`n\" | Select-String 'selenium-([\\d.]+)')",
|
|
"$selenium_ver_string = $request.Matches[0].Value",
|
|
"$selenium_ver = $request.Matches.Groups[1].Value",
|
|
"$selenium_manager_ver_string = @((Invoke-WebRequest -Uri ('https://github.com/SeleniumHQ/selenium/raw/' + $selenium_ver_string + '/common/selenium_manager.bzl')).Content -split \"`n\" | Select-String 'selenium-manager-([a-z0-9]+)').Matches.Value[0]",
|
|
"Write-Output $selenium_ver $selenium_manager_ver_string"
|
|
],
|
|
"regex": "(?<version>.+)\\s(?<managerversion>.+)"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/SeleniumHQ/selenium_manager_artifacts/releases/download/$matchManagerversion/selenium-manager-windows.exe#/selenium-manager.exe"
|
|
}
|
|
}
|
|
}
|
|
}
|