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(windows): resolve llama-server with where.exe without shell
stantheman0128ffe0084d77f0
diff --git a/src/helpers/llamaCppInstaller.js b/src/helpers/llamaCppInstaller.jsindex 9789ab887..577c5564d 100644--- a/src/helpers/llamaCppInstaller.js+++ b/src/helpers/llamaCppInstaller.js@@ -74,8 +74,10 @@ class LlamaCppInstaller {async getSystemBinaryPath() {return new Promise((resolve) => {- // Cross-platform command resolution- const checkCmd = this.platform === "win32" ? "where" : "which";+ // Cross-platform command resolution.+ // On Windows use where.exe with shell:false so PATH lookup does not+ // depend on cmd.exe and CRLF stdout is handled below.+ const checkCmd = this.platform === "win32" ? "where.exe" : "which";const binaryNames = this.platform === "win32" ? ["llama-server.exe"] : ["llama-server"];let found = false;@@ -83,7 +85,8 @@ class LlamaCppInstaller {for (const name of binaryNames) {const proc = spawn(checkCmd, [name], {- shell: true,+ shell: false,+ windowsHide: true,stdio: "pipe",});@@ -95,7 +98,7 @@ class LlamaCppInstaller {proc.on("close", (code) => {if (!found && code === 0 && output) {found = true;- resolve(output.trim().split("\n")[0]);+ resolve(output.trim().split(/\r?\n/)[0]);}remaining--;if (remaining === 0 && !found) {