Add a script for installing ManiaPlanet
This commit is contained in:
parent
64cd0adf85
commit
7437b99c0f
2 changed files with 9 additions and 0 deletions
|
@ -33,4 +33,5 @@ function Restore-PersonalApps([Context] $context) {
|
||||||
Restore-LogitechGHUB $context;
|
Restore-LogitechGHUB $context;
|
||||||
Restore-TmNations $context;
|
Restore-TmNations $context;
|
||||||
Restore-TmUnited $context;
|
Restore-TmUnited $context;
|
||||||
|
Restore-ManiaPlanet $context;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,12 @@ $null = New-Module {
|
||||||
Write-Information "Backing up ManiaPlanet";
|
Write-Information "Backing up ManiaPlanet";
|
||||||
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`""));
|
$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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue