Add script for backing up osu!
This commit is contained in:
parent
1f853fa290
commit
55d2beadae
2 changed files with 13 additions and 0 deletions
10
scripts/Windows/Software/osu!/Manage.ps1
Normal file
10
scripts/Windows/Software/osu!/Manage.ps1
Normal file
|
@ -0,0 +1,10 @@
|
|||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||
$path = "$env:LOCALAPPDATA/osu!";
|
||||
$softwareName = "osu!";
|
||||
$genericConfigName = "osu!.User.cfg";
|
||||
|
||||
function Invoke-BackupOsu([Context] $context) {
|
||||
$archive = $context.SoftwareArchive($softwareName);
|
||||
$context.Backup($path, $archive, @("-i@`"$PSScriptRoot/include.txt`""));
|
||||
& 7z rn "$archive" "osu!.$env:USERNAME.cfg" $genericConfigName;
|
||||
}
|
3
scripts/Windows/Software/osu!/include.txt
Normal file
3
scripts/Windows/Software/osu!/include.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Skins
|
||||
Songs
|
||||
osu!.*.cfg
|
Loading…
Reference in a new issue