From 518554f7888bed79d4d305027b8a00107115e20b Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 18 Apr 2026 22:19:49 +0200 Subject: [PATCH] fix: keep PowerShell window open after setup completes or errors Co-Authored-By: Claude Opus 4.6 --- setup-windows.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup-windows.ps1 b/setup-windows.ps1 index 78a53bc..a3cab54 100644 --- a/setup-windows.ps1 +++ b/setup-windows.ps1 @@ -5,6 +5,7 @@ # https://www.python.org/downloads/ $ErrorActionPreference = "Stop" +trap { Write-Host "`n$_" -ForegroundColor Red; Read-Host "Press Enter to close"; exit 1 } $root = Split-Path -Parent $MyInvocation.MyCommand.Path Write-Host "=== 8-cut Windows Setup ===" -ForegroundColor Cyan @@ -89,3 +90,4 @@ python -c "import sklearn, librosa, torchaudio; print('All imports OK')" Write-Host "`n=== Setup complete ===" -ForegroundColor Cyan Write-Host "Run 8-cut with: .venv\Scripts\python.exe main.py" Write-Host "Or double-click: 8cut.bat" +Read-Host "`nPress Enter to close"