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);