Skip to content

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

fix(ci): prevent prebuild hook from deleting x64 binaries on arm64 CI runners

Gabriel Steinc810d2b20544
diff --git a/scripts/lib/download-utils.js b/scripts/lib/download-utils.js
index 9944c1648..d3b6491fe 100644
--- a/scripts/lib/download-utils.js
+++ b/scripts/lib/download-utils.js
@@ -273,9 +273,10 @@ function findBinaryInDir(dir, binaryName, maxDepth = 5, currentDepth = 0) {
function parseArgs() {
const args = process.argv;
- let targetPlatform = process.platform;
- let targetArch = process.arch;
+ let targetPlatform = process.env.TARGET_PLATFORM || process.platform;
+ let targetArch = process.env.TARGET_ARCH || process.arch;
+ // CLI args override env vars
const platformIndex = args.indexOf("--platform");
if (platformIndex !== -1 && args[platformIndex + 1]) {
targetPlatform = args[platformIndex + 1];