Allow backing up RetroArch

This commit is contained in:
Manuel Thalmann 2024-08-28 13:07:58 +02:00
parent 790b8051a3
commit 0c10d680d0

View file

@ -3,15 +3,36 @@ param(
[hashtable] $Arguments [hashtable] $Arguments
) )
$null = New-Module {
param($Parameters)
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
. "$PSScriptRoot/../../../Common/Scripts/System.ps1"; . "$PSScriptRoot/../../../Common/Scripts/System.ps1";
$path = "C:/tools/RetroArch-Win64";
Start-SoftwareInstaller @PSBoundParameters ` 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 { -Installer {
Install-ChocoPackage retroarch; Install-ChocoPackage retroarch;
} ` } `
-Configurator { -Configurator {
Add-StartMenuIcon "RetroArch" "C:\tools\RetroArch-Win64\retroarch.exe"; Add-StartMenuIcon "RetroArch" "C:\tools\RetroArch-Win64\retroarch.exe";
}; Expand-BackupArtifacts -Path "RetroArch" -Target $path;
} | Out-Host;
} $PSBoundParameters;
# ToDo: Add restoration # ToDo: Add restoration