33 lines
1 KiB
PowerShell
33 lines
1 KiB
PowerShell
param(
|
|
$Action,
|
|
[hashtable] $Arguments
|
|
)
|
|
|
|
& {
|
|
param($Parameters)
|
|
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
|
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
|
$path = "$env:AppData/osu";
|
|
|
|
Start-SoftwareInstaller @Parameters `
|
|
-UserBackup {
|
|
param([hashtable] $Arguments)
|
|
Add-BackupArtifacts -User $Arguments.Name -Source $path -Path "osu!lazer" `
|
|
-Include @(
|
|
"files",
|
|
"rulesets",
|
|
"screenshots",
|
|
"framework.ini",
|
|
"game.ini",
|
|
"input.json"
|
|
);
|
|
} `
|
|
-UserConfigurator {
|
|
param([hashtable] $Arguments)
|
|
Install-WingetPackage "ppy.osu" -ArgumentList "--scope","user";
|
|
Remove-DesktopIcon "*osu*";
|
|
Expand-BackupArtifacts -User $Arguments.Name -Path "osu!lazer" -Target $path;
|
|
};
|
|
} $PSBoundParameters;
|