Add a script for installing RetroArch
This commit is contained in:
parent
63875268ea
commit
12810e93d6
2 changed files with 19 additions and 0 deletions
|
@ -37,4 +37,5 @@ function Restore-PersonalApps([Context] $context) {
|
|||
Restore-Osu $context;
|
||||
Restore-OsuLazer $context;
|
||||
Restore-PuTTY $context;
|
||||
Restore-RetroArch $context;
|
||||
}
|
||||
|
|
|
@ -8,4 +8,22 @@ $null = New-Module {
|
|||
Write-Host "Backing up RetroArch";
|
||||
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`""));
|
||||
}
|
||||
|
||||
function Restore-RetroArch([Context] $context) {
|
||||
Write-Host "Restoring RetroArch";
|
||||
Write-Information "Installing RetroArch";
|
||||
choco install -y retroarch;
|
||||
Write-Information "Restoring files";
|
||||
$context.Restore($context.SoftwareArchive($softwareName), $path);
|
||||
|
||||
Write-Information "Adding cloud sync folders";
|
||||
|
||||
$context.AddNextcloudSync(
|
||||
"$path\saves",
|
||||
"/Saved Games/RetroArch/Saves");
|
||||
|
||||
$context.AddNextcloudSync(
|
||||
"$path\system",
|
||||
"/Saved Games/RetroArch/System")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue