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 fs = require("fs");
|
||||||
const path = require("path");
|
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 = {};
|
let features = {};
|
||||||
|
|
||||||
@@ -20,7 +22,7 @@ module.exports = {
|
|||||||
version: packageJson.version,
|
version: packageJson.version,
|
||||||
applicationPort: "8787",
|
applicationPort: "8787",
|
||||||
debugMode: true,
|
debugMode: true,
|
||||||
localMode: !app.isPackaged,
|
localMode,
|
||||||
DiscordRPCID: "1410934537051181146",
|
DiscordRPCID: "1410934537051181146",
|
||||||
configFeatures
|
configFeatures
|
||||||
}
|
}
|
||||||
@@ -83,6 +83,10 @@
|
|||||||
{
|
{
|
||||||
"from": "server",
|
"from": "server",
|
||||||
"to": "server"
|
"to": "server"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "config/config.json",
|
||||||
|
"to": "config.json"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"win": {
|
"win": {
|
||||||
|
|||||||
Reference in New Issue
Block a user