From 8daed09ab8bb5a62d0a2b8cad52a060e3c03f0d5 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 2 Jul 2023 16:05:04 +0200 Subject: [PATCH] Add a script for restoring reWASD --- scripts/Windows/Collections/Personal.ps1 | 1 + scripts/Windows/Software/reWASD/Manage.ps1 | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/scripts/Windows/Collections/Personal.ps1 b/scripts/Windows/Collections/Personal.ps1 index 125dc728..ee6a9f88 100644 --- a/scripts/Windows/Collections/Personal.ps1 +++ b/scripts/Windows/Collections/Personal.ps1 @@ -38,4 +38,5 @@ function Restore-PersonalApps([Context] $context) { Restore-OsuLazer $context; Restore-PuTTY $context; Restore-RetroArch $context; + Restore-reWASD $context; } diff --git a/scripts/Windows/Software/reWASD/Manage.ps1 b/scripts/Windows/Software/reWASD/Manage.ps1 index cda5b718..e86a42d1 100644 --- a/scripts/Windows/Software/reWASD/Manage.ps1 +++ b/scripts/Windows/Software/reWASD/Manage.ps1 @@ -8,4 +8,10 @@ $null = New-Module { Write-Host "Backing up reWASD"; $context.Backup($path, $context.SoftwareArchive($softwareName), @("-x@`"$PSScriptRoot/exclude.txt`"")); } + + function Restore-reWASD([Context] $context) { + Write-Host "Restoring reWASD"; + Read-Host "Please hit enter once you have installed reWASD"; + $context.Restore($context.SoftwareArchive($softwareName), $path); + } }