Skip to content

Commit 4f6b0b8

Browse files
authored
Merge pull request #28 from LinusU/electron
🐛 Fix running from ASAR archive
2 parents 444a4cd + fdb030b commit 4f6b0b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

impl/windows/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const execa = require('execa')
1+
const childProcess = require('child_process')
22
const path = require('path')
3+
const util = require('util')
34

5+
const execFile = util.promisify(childProcess.execFile)
46
const executablePath = path.join(__dirname, 'adjust_get_current_system_volume_vista_plus.exe')
57

68
async function runProgram (...args) {
7-
return (await execa(executablePath, args)).stdout
9+
return (await execFile(executablePath, args)).stdout
810
}
911

1012
async function getVolumeInfo () {

0 commit comments

Comments
 (0)