Add a start menu shortcut to RetroArch
This commit is contained in:
parent
0e79d86d80
commit
3f80aee2fc
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
Import-Module "KnownFolders";
|
||||||
|
Import-Module "$env:ChocolateyInstall/lib/chocolatey/tools/chocolateyInstall/helpers/chocolateyInstaller.psm1";
|
||||||
$path = "C:/tools/RetroArch-Win64";
|
$path = "C:/tools/RetroArch-Win64";
|
||||||
$softwareName = "RetroArch";
|
$softwareName = "RetroArch";
|
||||||
|
|
||||||
|
@ -25,6 +27,9 @@ $null = New-Module {
|
||||||
|
|
||||||
$context.AddNextcloudSync(
|
$context.AddNextcloudSync(
|
||||||
"$path\system",
|
"$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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue