fix(cli): clean failed tht installer staging

This commit is contained in:
2026-08-15 22:13:24 +02:00
parent a2d5a244de
commit 4fc03574e1
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -122,6 +122,7 @@ try {
if ($LASTEXITCODE -ne 0) { throw 'native artifact did not pass its help check' }
Replace-InstalledBinary $stagedBinary (Join-Path $installDirectory 'tht.exe')
} finally {
Remove-Item -LiteralPath $stagedBinary -Force -ErrorAction SilentlyContinue
if ($buildOutput) { Remove-Item -LiteralPath $buildOutput -Recurse -Force -ErrorAction SilentlyContinue }
}