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: await async zip extraction in download scripts
Gabriel Stein92deca76ac7c
diff --git a/scripts/download-llama-server.js b/scripts/download-llama-server.jsindex e8cb755ac..a87219153 100644--- a/scripts/download-llama-server.js+++ b/scripts/download-llama-server.js@@ -124,7 +124,7 @@ async function downloadBinary(platformArch, config, release, isForce = false) {const extractDir = path.join(BIN_DIR, `temp-llama-${platformArch}`);fs.mkdirSync(extractDir, { recursive: true });- extractArchive(zipPath, extractDir);+ await extractArchive(zipPath, extractDir);const binaryName = path.basename(config.binaryPath);let binaryPath = path.join(extractDir, config.binaryPath);diff --git a/scripts/download-nircmd.js b/scripts/download-nircmd.jsindex 5af71e375..dc4261221 100644--- a/scripts/download-nircmd.js+++ b/scripts/download-nircmd.js@@ -44,7 +44,7 @@ async function main() {console.log(" Extracting...");const extractDir = path.join(BIN_DIR, "temp-nircmd");fs.mkdirSync(extractDir, { recursive: true });- extractZip(zipPath, extractDir);+ await extractZip(zipPath, extractDir);// Copy nircmd.exe to bin directoryconst extractedPath = path.join(extractDir, "nircmd.exe");diff --git a/scripts/download-whisper-cpp.js b/scripts/download-whisper-cpp.jsindex 3321eef7f..e42702e07 100644--- a/scripts/download-whisper-cpp.js+++ b/scripts/download-whisper-cpp.js@@ -87,7 +87,7 @@ async function downloadBinary(platformArch, config, release, isForce = false) {const extractDir = path.join(BIN_DIR, `temp-whisper-${platformArch}`);fs.mkdirSync(extractDir, { recursive: true });- extractZip(zipPath, extractDir);+ await extractZip(zipPath, extractDir);const binaryPath = findBinaryInDir(extractDir, config.binaryName);if (binaryPath) {diff --git a/scripts/download-windows-fast-paste.js b/scripts/download-windows-fast-paste.jsindex 0901a42e1..4f5a59c20 100644--- a/scripts/download-windows-fast-paste.js+++ b/scripts/download-windows-fast-paste.js@@ -73,7 +73,7 @@ async function main() {fs.mkdirSync(extractDir, { recursive: true });console.log(" Extracting...");- extractZip(zipPath, extractDir);+ await extractZip(zipPath, extractDir);const binaryPath = path.join(extractDir, BINARY_NAME);if (fs.existsSync(binaryPath)) {diff --git a/scripts/lib/download-utils.js b/scripts/lib/download-utils.jsindex 98045ef48..9944c1648 100644--- a/scripts/lib/download-utils.js+++ b/scripts/lib/download-utils.js@@ -244,11 +244,11 @@ function extractTarGz(tarPath, destDir) {execSync(`tar -xzf "${tarPath}" -C "${destDir}"`, { stdio: "inherit" });}-function extractArchive(archivePath, destDir) {+async function extractArchive(archivePath, destDir) {if (archivePath.endsWith(".tar.gz") || archivePath.endsWith(".tgz")) {extractTarGz(archivePath, destDir);} else {- extractZip(archivePath, destDir);+ await extractZip(archivePath, destDir);}}