mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
installation script
This commit is contained in:
15
.pipelines/InstallWinAppDriver.ps1
Normal file
15
.pipelines/InstallWinAppDriver.ps1
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
|
|
||||||
|
$WinAppDriverDownloadUrl = "https://github.com/microsoft/WinAppDriver/releases/download/v1.2.1/WindowsApplicationDriver_1.2.1.msi"
|
||||||
|
|
||||||
|
# Download WiX binaries and verify their hash sums
|
||||||
|
Invoke-WebRequest -Uri $WinAppDriverDownloadUrl -OutFile "$($ENV:Temp)\WindowsApplicationDriver_1.2.1.msi"
|
||||||
|
$Hash = (Get-FileHash -Algorithm SHA256 "$($ENV:Temp)\WindowsApplicationDriver_1.2.1.msi").Hash
|
||||||
|
if ($Hash -ne 'a76a8f4e44b29bad331acf6b6c248fcc65324f502f28826ad2acd5f3c80857fe')
|
||||||
|
{
|
||||||
|
Write-Error "$WinAppDriverHash"
|
||||||
|
throw "WindowsApplicationDriver_1.2.1.msi has unexpected SHA256 hash: $Hash"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install WinAppDriver
|
||||||
|
Start-Process -Wait -FilePath "$($ENV:Temp)\WindowsApplicationDriver_1.2.1.msi" -ArgumentList "/install /quiet"
|
||||||
@@ -42,6 +42,12 @@ jobs:
|
|||||||
- task: VisualStudioTestPlatformInstaller@1
|
- task: VisualStudioTestPlatformInstaller@1
|
||||||
displayName: Ensure VSTest Platform
|
displayName: Ensure VSTest Platform
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: Download and install WinAppDriver
|
||||||
|
inputs:
|
||||||
|
targetType: filePath
|
||||||
|
filePath: '$(build.sourcesdirectory)\.pipelines\installWinAppDriver.ps1'
|
||||||
|
|
||||||
- task: ScreenResolutionUtility@1
|
- task: ScreenResolutionUtility@1
|
||||||
inputs:
|
inputs:
|
||||||
displaySettings: 'optimal'
|
displaySettings: 'optimal'
|
||||||
|
|||||||
Reference in New Issue
Block a user