Skip to content

Commit

Permalink
Merge pull request #20 from Kas-tle/master
Browse files Browse the repository at this point in the history
Use process.resourcesPath so that macOS can find the resource directory
  • Loading branch information
Heath123 authored Apr 7, 2021
2 parents 33ba69d + 4372bff commit 1475be8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 1475be8

Please sign in to comment.