attempt fixing github test

This commit is contained in:
DJ2LS 2024-01-23 11:42:47 +01:00
parent 965dd5e29d
commit 9d2332477f

View file

@ -7,12 +7,14 @@ const nconf = require("nconf");
var appDataPath = getAppDataPath();
var configFolder = path.join(appDataPath, "FreeDATA");
let configFile = "config.json"
const isGitHubActions = process.env.GITHUB_ACTIONS === 'true';
if (isGitHubActions) {
configFile = "example.json";
configFolder = appDataPath;
}
var configPath = path.join(configFolder, configFile);
console.log("AppData Path:", appDataPath);