diff --git a/scripts/Windows/Software/TrackMania United Forever/Manage.ps1 b/scripts/Windows/Software/TrackMania United Forever/Manage.ps1 new file mode 100644 index 00000000..43f75709 --- /dev/null +++ b/scripts/Windows/Software/TrackMania United Forever/Manage.ps1 @@ -0,0 +1,15 @@ +Import-Module "$PSScriptRoot/../../Scripts/Context.ps1" -Force; +$path = "$HOME/Documents/TrackMania"; +$softwareName = "TmUnitedForever"; + +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; +} diff --git a/scripts/Windows/Software/TrackMania United Forever/include.txt b/scripts/Windows/Software/TrackMania United Forever/include.txt new file mode 100644 index 00000000..5809d827 --- /dev/null +++ b/scripts/Windows/Software/TrackMania United Forever/include.txt @@ -0,0 +1,6 @@ +ChallengeMusics +MediaTracker +MenuMusics +Scores +Skins +Tracks