Skip to content

Commit

Permalink
fix(get-binary): update path to use unpacked asar path if applicable
Browse files Browse the repository at this point in the history
check out: electron/electron#9459 for more details
  • Loading branch information
web-mech committed Nov 17, 2019
1 parent 2341826 commit ea40cad
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/get-binary.js
@@ -1,8 +1,8 @@
'use strict'

const { fixPathForAsarUnpack } = require('electron-util')
const { readFileSync, existsSync } = require('fs')
const path = require('path')

const binPath = path.join(__dirname, '..', 'bin')
const detailsPath = path.join(binPath, 'details')

Expand All @@ -15,5 +15,5 @@ module.exports = () => {

return details.path
? details.path
: path.resolve(__dirname, '..', 'bin', details.exec)
: fixPathForAsarUnpack(path.resolve(__dirname, '..', 'bin', details.exec))
}
27 changes: 27 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -159,6 +159,7 @@
"youtube"
],
"dependencies": {
"electron-util": "~0.13.0",
"execa": "~3.2.0",
"hh-mm-ss": "~1.2.0",
"mkdirp": "~0.5.1",
Expand Down

0 comments on commit ea40cad

Please sign in to comment.