From 96ab1a2322b1fc697fb7d57e204c8e61dc95d85d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 7 Aug 2024 15:24:56 +0200 Subject: [PATCH] Add missing package for selenium --- scripts/Windows/OS/Install.ps1 | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 3ce945b8..188bdb28 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -69,7 +69,7 @@ $null = New-Module { . "$PSScriptRoot/../Software/winget/Manage.ps1"; continue; } - + if (-not (Test-PSPackage Selenium.WebDriver)) { Install-Module -AcceptLicense -Force NuGet; Import-Module NuGet; @@ -77,7 +77,7 @@ $null = New-Module { continue; } - Install-ChocoPackage firefox; + Install-ChocoPackage selenium-gecko-driver firefox; if (-not (& { wsl --status; $?; })) { wsl --install --no-launch; @@ -122,6 +122,31 @@ $null = New-Module { $arguments.Add("action", $Action); } + # Drivers + $null = New-Module { + $driverPath = "$PSScriptRoot/../Drivers"; + $mbPath = "$driverPath/ROG Zenith Extreme Alpha"; + + foreach ($component in (Get-Config "valhalla.hardware.components")) { + + switch ($component) { + ("ROG Zenith Extreme Alpha") { + . "$mbPath/MarvellEthernet/Manage.ps1" @arguments; + . "$mbPath/IntelWiFi/Manage.ps1" @arguments; + . "$mbPath/AMDChipsetX399/Manage.ps1" @arguments; + . "$driverPath/AMDChipsetX399/Manage.ps1" @arguments; + } + ("Predator Z301C") { + . "$driverPath/Predator Z301C/Manage.ps1" @arguments; + } + } + } + + if (Get-Config "valhalla.hardware.eyeX") { + . "$driverPath/Tobii EyeX/Manage.ps1" @arguments; + } + }; + # Windows Config . "$PSScriptRoot/../Software/Windows/Manage.ps1" @arguments;