From 5bd4fb4c45efb64d7b313fd17448efa18ffc5b7c Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 24 Aug 2024 14:10:02 +0200 Subject: [PATCH] Simplify osu!lazer installation --- scripts/Windows/Software/osu!lazer/Manage.ps1 | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/scripts/Windows/Software/osu!lazer/Manage.ps1 b/scripts/Windows/Software/osu!lazer/Manage.ps1 index 8fd65598..900213b7 100644 --- a/scripts/Windows/Software/osu!lazer/Manage.ps1 +++ b/scripts/Windows/Software/osu!lazer/Manage.ps1 @@ -8,23 +8,7 @@ param( Start-SoftwareInstaller @PSBoundParameters ` -Installer { - $file = "osu!lazer.exe"; - $processName = "osu!"; - $dir = New-TemporaryDirectory; - - Push-Location $dir; - Invoke-WebRequest "https://github.com/ppy/osu/releases/latest/download/install.exe" -OutFile $file; - Start-Process -FilePath $file; - - while (-not (Get-Process -ErrorAction SilentlyContinue $processName)) { - Start-Sleep 1; - } - - Start-Sleep 10; - Get-Process $processName | Stop-Process -Force; - Pop-Location; - Remove-Item -Recurse $dir; - + Install-WingetPackage "ppy.osu"; Remove-DesktopIcon "*osu*"; };