Fix config editor handling keep-open incorrectly

This commit is contained in:
stax76
2022-05-03 14:25:15 +02:00
parent a15d2cdbbe
commit cd2f2aeec8
4 changed files with 10 additions and 24 deletions

View File

@@ -6,6 +6,13 @@ $7z = 'C:\Program Files\7-Zip\7z.exe'
$targetDir = $tmpDir + "\mpv.net-$($versionInfo.FileVersion)-beta"
Copy-Item $PSScriptRoot\bin $targetDir -Recurse -Exclude 'System.Management.Automation.xml'
$folders = 'Debug', 'Release', 'x64', 'x86', 'Arm'
foreach ($folder in $folders) {
Remove-Item (Join-Path $targetDir $folder) -Recurse -ErrorAction SilentlyContinue
}
& $7z a -tzip -mx9 "$targetDir.zip" -r "$targetDir\*"
if ($LastExitCode) { throw $LastExitCode }