Add a start menu shortcut to RetroArch

This commit is contained in:
Manuel Thalmann 2023-07-27 01:27:47 +02:00
parent 0e79d86d80
commit 3f80aee2fc

View file

@ -2,6 +2,8 @@
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {
Import-Module "KnownFolders";
Import-Module "$env:ChocolateyInstall/lib/chocolatey/tools/chocolateyInstall/helpers/chocolateyInstaller.psm1";
$path = "C:/tools/RetroArch-Win64";
$softwareName = "RetroArch";
@ -25,6 +27,9 @@ $null = New-Module {
$context.AddNextcloudSync(
"$path\system",
"/Saved Games/RetroArch/System")
"/Saved Games/RetroArch/System");
Write-Information "Creating a Start Menu Icon";
Install-ChocolateyShortcut -ShortcutFilePath "$((Get-KnownFolder -SpecialFolder CommonStartMenu).Path)/RetroArch.lnk" -TargetPath (Get-Command retroarch).Source;
}
}