Fix: Correct Config.json file for packaged version

This commit is contained in:
MasterAcnolo
2026-01-15 09:28:46 +01:00
parent 745a73a5b0
commit 0ff4715b35
2 changed files with 8 additions and 2 deletions

View File

@@ -3,7 +3,9 @@ const { app } = require("electron");
const fs = require("fs");
const path = require("path");
const featuresPath = path.join(__dirname, "./config/config.json");
const localMode = !app.isPackaged;
const featuresPath = localMode ? path.join(__dirname, "./config/config.json") : path.join(path.join(process.resourcesPath, "config.json"));
let features = {};
@@ -20,7 +22,7 @@ module.exports = {
version: packageJson.version,
applicationPort: "8787",
debugMode: true,
localMode: !app.isPackaged,
localMode,
DiscordRPCID: "1410934537051181146",
configFeatures
}