mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
* Use cerificate subject to verify authenticode signature * Use function instead of script variables * Switch all places to using Get-MicrosoftPublisher * Remove SignatureThumbprint * Use common subject for the Edge driver
17 lines
669 B
PowerShell
17 lines
669 B
PowerShell
####################################################################################
|
|
## File: Install-WinAppDriver.ps1
|
|
## Desc: Install Windows Application Driver (WinAppDriver)
|
|
####################################################################################
|
|
|
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
|
$downloadUrl = Resolve-GithubReleaseAssetUrl `
|
|
-Repo "microsoft/WinAppDriver" `
|
|
-Version "latest" `
|
|
-UrlMatchPattern "WindowsApplicationDriver_*.msi"
|
|
|
|
Install-Binary `
|
|
-Url $downloadUrl `
|
|
-ExpectedSubject $(Get-MicrosoftPublisher)
|
|
|
|
Invoke-PesterTests -TestFile "WinAppDriver" -TestName "WinAppDriver"
|