From 4372bff1872130240ec04f4dd0a4f40cb6e33c4c Mon Sep 17 00:00:00 2001 From: Kastle <26531652+Kas-tle@users.noreply.github.com> Date: Fri, 2 Apr 2021 16:06:27 -0700 Subject: [PATCH] Update index.js --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index baf0279..df4b73a 100644 --- a/src/index.js +++ b/src/index.js @@ -7,8 +7,8 @@ const Store = require('electron-store') const store = new Store() let proxy // Defined later when an option is chosen -const resourcesPath = fs.existsSync('resources/app') - ? 'resources/app/' // Packaged with electron-forge +const resourcesPath = fs.existsSync(process.resourcesPath.concat('/app/')) + ? process.resourcesPath.concat('/app/') // Packaged with electron-forge : './' // npm start