feat: implement downloader utility for automatic yt-dlp and ffmpeg management

This commit is contained in:
Ümit Tunç
2026-05-28 08:12:29 +03:00
parent e4f4be981e
commit 916cbd055e
+5 -1
View File
@@ -2,8 +2,12 @@ const { spawn, exec } = require('child_process');
const path = require('path');
const fs = require('fs');
const https = require('https');
const { app } = require('electron');
const BIN_DIR = app && app.isPackaged
? path.join(process.resourcesPath, 'app.asar.unpacked', 'bin')
: path.join(__dirname, '..', 'bin');
const BIN_DIR = path.join(__dirname, '..', 'bin');
const YTDLP_PATH = path.join(BIN_DIR, 'yt-dlp.exe');
const FFMPEG_PATH = path.join(BIN_DIR, 'ffmpeg.exe');