From 7c865b88e9c5481879b37f8eb5ded2b96083c566 Mon Sep 17 00:00:00 2001 From: aandrew-me Date: Fri, 21 Nov 2025 22:39:57 +0300 Subject: [PATCH] Add js runtime selection for macos --- src/renderer.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/renderer.js b/src/renderer.js index 7123491..bf136f8 100644 --- a/src/renderer.js +++ b/src/renderer.js @@ -532,7 +532,20 @@ class YtDownloaderApp { } if (platform() === "darwin") { - return ""; + const possiblePaths = [ + "/opt/homebrew/bin/deno", + "/usr/local/bin/deno", + ] + + for (const p of possiblePaths) { + if (existsSync(p)) { + return `deno:"${p}"`; + } + } + + console.log("No Deno installation found"); + + return ";" } let jsRuntimePath = join(__dirname, "..", exeName);