PortValhalla/scripts/Windows/Software/TrackMania United Forever/Manage.ps1

16 lines
480 B
PowerShell
Raw Normal View History

2023-06-06 23:21:47 +00:00
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;
}