From a3ace6746ad0d522a1045aa4a3f11d30b4ea66f6 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 2 Jul 2023 23:31:56 +0200 Subject: [PATCH] Remove unnecessary desktop shortcuts --- scripts/Windows/Software/osu!/Manage.ps1 | 1 + scripts/Windows/Software/osu!lazer/Manage.ps1 | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/Windows/Software/osu!/Manage.ps1 b/scripts/Windows/Software/osu!/Manage.ps1 index 0746440a..2cc14d9e 100644 --- a/scripts/Windows/Software/osu!/Manage.ps1 +++ b/scripts/Windows/Software/osu!/Manage.ps1 @@ -18,6 +18,7 @@ $null = New-Module { Write-Host "Restoring osu!"; Write-Information "Installing osu!"; choco install -y osu; + Remove-Item "$env:PUBLIC\Desktop\*osu*"; Write-Information "Restoring files"; $context.Restore($context.SoftwareArchive($softwareName), $path); $configName = "osu!.$env:USERNAME.cfg"; diff --git a/scripts/Windows/Software/osu!lazer/Manage.ps1 b/scripts/Windows/Software/osu!lazer/Manage.ps1 index 1c1c372a..cd7a6929 100644 --- a/scripts/Windows/Software/osu!lazer/Manage.ps1 +++ b/scripts/Windows/Software/osu!lazer/Manage.ps1 @@ -20,6 +20,7 @@ $null = New-Module { Push-Location $tempDir; Invoke-WebRequest "https://github.com/ppy/osu/releases/latest/download/install.exe" -OutFile $installerName; Start-Process -Wait -FilePath $installerName; + Remove-Item "~\Desktop\*osu*"; Pop-Location; Remove-Item -Recurse $tempDir; }