Removed Cyberpunk | Spicy | Vilbrequin Theme, Info Fix, Fix Progress Bar. Centralized Ressources

This commit is contained in:
MasterAcnolo
2025-11-14 23:41:03 +01:00
parent c2e4e12512
commit cdca4a82ab
16 changed files with 805 additions and 4256 deletions

View File

@@ -4,15 +4,20 @@ const { app } = require("electron");
const config = require("../../config");
let userYtDlp;
let ffmpegPath;
const sourceYtDlp = path.join(process.resourcesPath, "yt-dlp.exe");
if (config.localMode === true) {
userYtDlp = path.join(__dirname, "../../ressources/yt-dlp.exe");
if (config.localMode) {
userYtDlp = path.join(__dirname, "../../ressources/yt-dlp.exe");
ffmpegPath = path.join(__dirname, "../../ressources/ffmpeg.exe");
} else {
userYtDlp = path.join(app.getPath("userData"), "yt-dlp.exe");
ffmpegPath = path.join(process.resourcesPath, "ffmpeg.exe");
userYtDlp = path.join(app.getPath("userData"), "yt-dlp.exe");
if (!fs.existsSync(userYtDlp)) fs.copyFileSync(sourceYtDlp, userYtDlp);
if (!fs.existsSync(userYtDlp)) {
fs.copyFileSync(sourceYtDlp, userYtDlp);
}
}
module.exports = { userYtDlp, sourceYtDlp };
module.exports = { userYtDlp, sourceYtDlp, ffmpegPath };