Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(windows): use safe directory names in download script to avoid PowerShell Expand-Archive failure with bracket characters

Gabriel Stein0274cc9730ca
diff --git a/scripts/download-whisper-cpp.js b/scripts/download-whisper-cpp.js
index 4a5ed0a7b..e703b6ce7 100644
--- a/scripts/download-whisper-cpp.js
+++ b/scripts/download-whisper-cpp.js
@@ -202,7 +202,9 @@ async function downloadBinary(platformArch, config, label) {
try {
await downloadFile(url, zipPath);
- const extractDir = path.join(BIN_DIR, `temp-${label}-${platformArch}`);
+ // Remove brackets from label for safe directory names on Windows
+ const safeLabel = label.replace(/[\[\]]/g, "");
+ const extractDir = path.join(BIN_DIR, `temp-${safeLabel}-${platformArch}`);
fs.mkdirSync(extractDir, { recursive: true });
extractZip(zipPath, extractDir);