Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix: use recursive search for binary in extracted zip archives
Gabriel Stein433b01a4f261
diff --git a/scripts/download-whisper-cpp.js b/scripts/download-whisper-cpp.jsindex 68fb3a2d2..3321eef7f 100644--- a/scripts/download-whisper-cpp.js+++ b/scripts/download-whisper-cpp.js@@ -5,6 +5,7 @@ const {downloadFile,extractZip,fetchLatestRelease,+ findBinaryInDir,parseArgs,setExecutable,cleanupFiles,@@ -88,13 +89,13 @@ async function downloadBinary(platformArch, config, release, isForce = false) {fs.mkdirSync(extractDir, { recursive: true });extractZip(zipPath, extractDir);- const binaryPath = path.join(extractDir, config.binaryName);- if (fs.existsSync(binaryPath)) {+ const binaryPath = findBinaryInDir(extractDir, config.binaryName);+ if (binaryPath) {fs.copyFileSync(binaryPath, outputPath);setExecutable(outputPath);console.log(` [server] ${platformArch}: Extracted to ${config.outputName}`);} else {- console.error(` [server] ${platformArch}: Binary not found in archive`);+ console.error(` [server] ${platformArch}: Binary "${config.binaryName}" not found in archive`);return false;}