2024-08-28 03:18:52 +00:00
|
|
|
& {
|
2024-11-01 12:12:16 +00:00
|
|
|
. "$PSScriptRoot/../../lib/Restoration.ps1";
|
|
|
|
. "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
|
|
|
|
. "$PSScriptRoot/../../../lib/Software.ps1";
|
|
|
|
. "$PSScriptRoot/../../../lib/System.ps1";
|
2024-08-28 03:18:52 +00:00
|
|
|
$path = "$HOME/Documents/ManiaPlanet";
|
2024-08-08 02:36:35 +00:00
|
|
|
|
2024-09-30 03:00:20 +00:00
|
|
|
Start-SoftwareInstaller @args `
|
2024-08-28 03:18:52 +00:00
|
|
|
-Installer {
|
|
|
|
Install-WingetPackage Nadeo.ManiaPlanet;
|
|
|
|
Remove-DesktopIcon "ManiaPlanet*";
|
|
|
|
} `
|
|
|
|
-UserBackup {
|
|
|
|
param(
|
2024-09-23 00:10:42 +00:00
|
|
|
[string] $Name,
|
2024-08-28 03:18:52 +00:00
|
|
|
[hashtable] $Arguments
|
|
|
|
)
|
2024-08-08 02:36:35 +00:00
|
|
|
|
2024-09-23 00:10:42 +00:00
|
|
|
Add-BackupArtifacts -User $Arguments.Name -Source $path -Path "$Name" `
|
2024-08-28 03:18:52 +00:00
|
|
|
-Include @(
|
|
|
|
"Actions",
|
|
|
|
"Blocks",
|
|
|
|
"Items",
|
|
|
|
"Maps",
|
|
|
|
"Media",
|
|
|
|
"Modules",
|
|
|
|
"Packs",
|
|
|
|
"Replays",
|
|
|
|
"Scripts",
|
|
|
|
"Skins"
|
|
|
|
);
|
|
|
|
} `
|
|
|
|
-UserConfigurator {
|
|
|
|
param(
|
2024-09-23 00:10:42 +00:00
|
|
|
[string] $Name,
|
2024-08-28 03:18:52 +00:00
|
|
|
[hashtable] $Arguments
|
|
|
|
)
|
|
|
|
|
2024-09-23 00:10:42 +00:00
|
|
|
Expand-BackupArtifacts -User $Arguments.Name -Path "$Name" -Target $path;
|
2024-08-28 03:18:52 +00:00
|
|
|
};
|
2024-09-30 03:00:20 +00:00
|
|
|
} @args;
|