From 2465956c60da0e1ec725b9ed96ad567241a604b1 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 12 Dec 2021 17:42:43 +0000 Subject: [PATCH] [Paths] Fix resources path --- src/paths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paths.js b/src/paths.js index bcdb794..58e4d69 100644 --- a/src/paths.js +++ b/src/paths.js @@ -12,7 +12,7 @@ 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 ?? +const resourcesPath = join(process.resourcesPath); // Discord uses path and require.main.filename here because ?? exports.getUserData = () => userData; exports.getUserDataVersioned = () => userDataVersioned;