From 0ff4715b3515a2bbf459fe5cb3a950d1c78a7310 Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Thu, 15 Jan 2026 09:28:46 +0100 Subject: [PATCH] Fix: Correct Config.json file for packaged version --- config.js | 6 ++++-- package.json | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 0df8abb..b4ffc4a 100644 --- a/config.js +++ b/config.js @@ -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 } \ No newline at end of file diff --git a/package.json b/package.json index 07fc418..d19f5ab 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,10 @@ { "from": "server", "to": "server" + }, + { + "from": "config/config.json", + "to": "config.json" } ], "win": {