mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Fix: Correct Config.json file for packaged version
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user