Add scripts for backing up TmNationsForever

This commit is contained in:
Manuel Thalmann 2023-06-07 00:57:16 +02:00
parent d0eff6a264
commit 03b4c6f713
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,15 @@
Import-Module "$PSScriptRoot/../../Scripts/Context.ps1" -Force;
$path = "$HOME/Documents/TmForever";
$softwareName = "TmNationsForever";
function Invoke-BackupTmNations([Context] $context) {
Write-Host "$PSScriptRoot";
Start-Process -WorkingDirectory "$path" `
-FilePath "7z" `
-ArgumentList @(
"a",
"-i@`"$PSScriptRoot/include.txt`"",
$context.SoftwareArchive($softwareName)) `
-Wait `
-NoNewWindow;
}

View file

@ -0,0 +1,7 @@
ChallengeMusics
MediaTracker
MenuMusics
Painter
Scores
Skins
Tracks