Add a script for installing ManiaPlanet

This commit is contained in:
Manuel Thalmann 2023-07-02 14:00:33 +02:00
parent 64cd0adf85
commit 7437b99c0f
2 changed files with 9 additions and 0 deletions

View file

@ -33,4 +33,5 @@ function Restore-PersonalApps([Context] $context) {
Restore-LogitechGHUB $context;
Restore-TmNations $context;
Restore-TmUnited $context;
Restore-ManiaPlanet $context;
}

View file

@ -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);
}
}