PortValhalla/scripts/Windows/Software/RetroArch/Manage.ps1

37 lines
1.1 KiB
PowerShell
Raw Normal View History

2024-08-08 02:36:35 +00:00
param(
$Action,
[hashtable] $Arguments
)
2024-08-28 11:07:58 +00:00
$null = New-Module {
param($Parameters)
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
$path = "C:/tools/RetroArch-Win64";
2024-08-08 02:36:35 +00:00
2024-08-28 11:07:58 +00:00
Start-SoftwareInstaller @Parameters `
-Backup {
Add-BackupArtifacts -Path "RetroArch" -Source $path `
-Include @(
"config",
"cores",
"downloads",
"playlists",
"recordings",
"screenshots",
"content_history.lpl",
"content_*_history.lpl",
"retroarch.cfg"
);
} `
-Installer {
Install-ChocoPackage retroarch;
} `
-Configurator {
Add-StartMenuIcon "RetroArch" "C:\tools\RetroArch-Win64\retroarch.exe";
Expand-BackupArtifacts -Path "RetroArch" -Target $path;
};
} $PSBoundParameters;