Allow backing up RetroArch
This commit is contained in:
parent
4dcf4a6d6a
commit
b3e3a84c1e
1 changed files with 29 additions and 11 deletions
|
@ -3,15 +3,33 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
& {
|
||||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
param($Parameters)
|
||||||
|
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||||
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
|
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||||
|
$path = "C:/tools/RetroArch-Win64";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @Parameters `
|
||||||
-Installer {
|
-Backup {
|
||||||
Install-ChocoPackage retroarch;
|
Add-BackupArtifacts -Path "RetroArch" -Source $path `
|
||||||
} `
|
-Include @(
|
||||||
-Configurator {
|
"config",
|
||||||
Add-StartMenuIcon "RetroArch" "C:\tools\RetroArch-Win64\retroarch.exe";
|
"cores",
|
||||||
};
|
"downloads",
|
||||||
|
"playlists",
|
||||||
# ToDo: Add restoration
|
"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;
|
||||||
|
|
Loading…
Reference in a new issue