From 03b4c6f713c1705dbe0883cf30d6c32773c72dc3 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 7 Jun 2023 00:57:16 +0200 Subject: [PATCH] Add scripts for backing up TmNationsForever --- .../TrackMania Nations Forever/Manage.ps1 | 15 +++++++++++++++ .../TrackMania Nations Forever/include.txt | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 create mode 100644 scripts/Windows/Software/TrackMania Nations Forever/include.txt diff --git a/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 b/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 new file mode 100644 index 00000000..89b84eab --- /dev/null +++ b/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 @@ -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; +} diff --git a/scripts/Windows/Software/TrackMania Nations Forever/include.txt b/scripts/Windows/Software/TrackMania Nations Forever/include.txt new file mode 100644 index 00000000..190afd59 --- /dev/null +++ b/scripts/Windows/Software/TrackMania Nations Forever/include.txt @@ -0,0 +1,7 @@ +ChallengeMusics +MediaTracker +MenuMusics +Painter +Scores +Skins +Tracks