Helpers + Clean Download et Info

This commit is contained in:
MasterAcnolo
2025-11-09 10:35:19 +01:00
parent 4954de5f1a
commit 599e09fa9f
12 changed files with 178 additions and 326 deletions

13
server/helpers/path.js Normal file
View File

@@ -0,0 +1,13 @@
const path = require("path");
const fs = require("fs");
const { app } = require("electron");
const userYtDlp = path.join(app.getPath("userData"), "yt-dlp.exe");
const sourceYtDlp = path.join(process.resourcesPath, "yt-dlp.exe");
if (!fs.existsSync(userYtDlp)) fs.copyFileSync(sourceYtDlp, userYtDlp);
module.exports = {
userYtDlp,
sourceYtDlp
};