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

15 lines
480 B
PowerShell

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;
}