diff --git a/scripts/Windows/Collections/Personal.ps1 b/scripts/Windows/Collections/Personal.ps1 index 53ef3f8f..3ebe79a3 100644 --- a/scripts/Windows/Collections/Personal.ps1 +++ b/scripts/Windows/Collections/Personal.ps1 @@ -33,4 +33,5 @@ function Restore-PersonalApps([Context] $context) { Restore-LogitechGHUB $context; Restore-TmNations $context; Restore-TmUnited $context; + Restore-ManiaPlanet $context; } diff --git a/scripts/Windows/Software/ManiaPlanet/Manage.ps1 b/scripts/Windows/Software/ManiaPlanet/Manage.ps1 index 7b460120..e16c597d 100644 --- a/scripts/Windows/Software/ManiaPlanet/Manage.ps1 +++ b/scripts/Windows/Software/ManiaPlanet/Manage.ps1 @@ -8,4 +8,12 @@ $null = New-Module { Write-Information "Backing up ManiaPlanet"; $context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`"")); } + + function Restore-ManiaPlanet([Context] $context) { + Write-Host "Restoring ManiaPlanet"; + Write-Information "Installing ManiaPlanet"; + winget install -e --id Nadeo.ManiaPlanet; + Write-Information "Restoring files"; + $context.Restore($context.SoftwareArchive($softwareName), $path); + } }