[Paths] Tweak resources path, set var instead of making each func
This commit is contained in:
parent
1d2d00ab25
commit
a29564c42d
1 changed files with 2 additions and 2 deletions
|
@ -12,12 +12,12 @@ const exeDir = dirname(app.getPath('exe'));
|
|||
const installPath = /^app-[0-9]+\.[0-9]+\.[0-9]+/.test(basename(exeDir)) ? join(exeDir, '..') : null;
|
||||
|
||||
const moduleData = buildInfo.newUpdater ? join(userData, 'module_data') : join(userDataVersioned, 'modules');
|
||||
|
||||
const resourcesPath = join(process.resourcesPath, '..'); // Discord uses path and require.main.filename here because ??
|
||||
|
||||
exports.getUserData = () => userData;
|
||||
exports.getUserDataVersioned = () => userDataVersioned;
|
||||
|
||||
exports.getResources = () => process.resourcesPath; // Discord uses path and require.main.filename here because ??
|
||||
exports.getResources = () => resourcesPath;
|
||||
exports.getModuleDataPath = () => moduleData;
|
||||
exports.getInstallPath = () => installPath;
|
||||
|
||||
|
|
Loading…
Reference in a new issue