mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
fix: rename localMode => devMode for clarity
This commit is contained in:
@@ -12,7 +12,7 @@ async function createMainWindow() {
|
|||||||
return mainWindow;
|
return mainWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
const iconPath = config.localMode
|
const iconPath = config.devMode
|
||||||
? path.join(__dirname, "../build/app-icon.ico")
|
? path.join(__dirname, "../build/app-icon.ico")
|
||||||
: path.join(process.resourcesPath, "build/app-icon.ico");
|
: path.join(process.resourcesPath, "build/app-icon.ico");
|
||||||
|
|
||||||
|
|||||||
4
main.js
4
main.js
@@ -30,7 +30,7 @@ app.setName("Freedom Loader");
|
|||||||
app.setAppUserModelId("com.masteracnolo.freedomloader");
|
app.setAppUserModelId("com.masteracnolo.freedomloader");
|
||||||
app.disableHardwareAcceleration();
|
app.disableHardwareAcceleration();
|
||||||
|
|
||||||
if (!config.localMode) {
|
if (!config.devMode) {
|
||||||
const gotLock = app.requestSingleInstanceLock();
|
const gotLock = app.requestSingleInstanceLock();
|
||||||
if (gotLock) {
|
if (gotLock) {
|
||||||
app.on("second-instance", () => {
|
app.on("second-instance", () => {
|
||||||
@@ -45,7 +45,7 @@ app.whenReady().then(async () => {
|
|||||||
|
|
||||||
createSplashWindow();
|
createSplashWindow();
|
||||||
|
|
||||||
if (!config.localMode && !checkNativeDependencies()) return;
|
if (!config.devMode && !checkNativeDependencies()) return;
|
||||||
|
|
||||||
const { userYtDlp } = require("./server/helpers/path.helpers");
|
const { userYtDlp } = require("./server/helpers/path.helpers");
|
||||||
updateYtDlp(userYtDlp);
|
updateYtDlp(userYtDlp);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const config = require("../../config.js");
|
|||||||
const { logger } = require("../logger.js");
|
const { logger } = require("../logger.js");
|
||||||
|
|
||||||
// Centralized resource paths
|
// Centralized resource paths
|
||||||
const resourcesPath = config.localMode
|
const resourcesPath = config.devMode
|
||||||
? path.join(__dirname, "../../ressources")
|
? path.join(__dirname, "../../ressources")
|
||||||
: process.resourcesPath;
|
: process.resourcesPath;
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ let denoPath;
|
|||||||
|
|
||||||
const sourceYtDlp = path.join(resourcesPath, "binaries","yt-dlp.exe");
|
const sourceYtDlp = path.join(resourcesPath, "binaries","yt-dlp.exe");
|
||||||
|
|
||||||
if (config.localMode) {
|
if (config.devMode) {
|
||||||
userYtDlp = path.join(__dirname, "../../ressources/yt-dlp.exe");
|
userYtDlp = path.join(__dirname, "../../ressources/yt-dlp.exe");
|
||||||
ffmpegPath = path.join(__dirname, "../../ressources/"); // <- has ffmpeg.exe and ffprobe.exe
|
ffmpegPath = path.join(__dirname, "../../ressources/"); // <- has ffmpeg.exe and ffprobe.exe
|
||||||
denoPath = path.join(__dirname, "../../ressources/deno.exe");
|
denoPath = path.join(__dirname, "../../ressources/deno.exe");
|
||||||
|
|||||||
Reference in New Issue
Block a user