Always install latest version

This commit is contained in:
Mikhail Timofeev
2020-11-06 02:52:23 +03:00
parent f07a74c694
commit b084d6241b

View File

@@ -3,8 +3,9 @@
## Desc: Install Windows Application Driver (WinAppDriver)
####################################################################################
$InstallerName = "WindowsApplicationDriver_1.2.1.msi"
$InstallerUrl = "https://github.com/Microsoft/WinAppDriver/releases/download/v1.2.1/${InstallerName}"
$LatestReleaseUrl = 'https://api.github.com/repos/microsoft/WinAppDriver/releases/latest'
$InstallerUrl = (Invoke-RestMethod -Uri $LatestReleaseUrl).assets.browser_download_url
$InstallerName = "WindowsApplicationDriver.msi"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Binary -Url $InstallerUrl -Name $InstallerName