mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
attempt fixing github test
This commit is contained in:
parent
965dd5e29d
commit
9d2332477f
1 changed files with 3 additions and 1 deletions
|
@ -7,12 +7,14 @@ const nconf = require("nconf");
|
||||||
|
|
||||||
var appDataPath = getAppDataPath();
|
var appDataPath = getAppDataPath();
|
||||||
var configFolder = path.join(appDataPath, "FreeDATA");
|
var configFolder = path.join(appDataPath, "FreeDATA");
|
||||||
|
|
||||||
let configFile = "config.json"
|
let configFile = "config.json"
|
||||||
|
|
||||||
const isGitHubActions = process.env.GITHUB_ACTIONS === 'true';
|
const isGitHubActions = process.env.GITHUB_ACTIONS === 'true';
|
||||||
if (isGitHubActions) {
|
if (isGitHubActions) {
|
||||||
configFile = "example.json";
|
configFile = "example.json";
|
||||||
|
configFolder = appDataPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
var configPath = path.join(configFolder, configFile);
|
var configPath = path.join(configFolder, configFile);
|
||||||
|
|
||||||
console.log("AppData Path:", appDataPath);
|
console.log("AppData Path:", appDataPath);
|
||||||
|
|
Loading…
Reference in a new issue