Add js runtime selection for macos

release
aandrew-me 5 days ago
parent cc987e0ee2
commit 7c865b88e9

@ -532,7 +532,20 @@ class YtDownloaderApp {
} }
if (platform() === "darwin") { 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); let jsRuntimePath = join(__dirname, "..", exeName);

Loading…
Cancel
Save