Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 0c549e6

Browse files
committed
Update Bin Path
1 parent 47251c5 commit 0c549e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/desktop/main.dev.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ const runProcesses = (processes, logs) => {
4040
})
4141
.catch(() => {
4242
const plat = os.platform()
43-
const binPath = isDev ? '../lightning-desktop/bin' : 'bin'
44-
const filePath = path.join(__dirname, binPath, plat, proc.name, plat === 'win32' ? '.exe' : '')
43+
const filePath = path.join(__dirname, 'bin', plat, proc.name, plat === 'win32' ? '.exe' : '')
4544

4645
try {
47-
const instance = cp.execFile(filePath, proc.args, { cwd: binPath }, (error) => {
46+
const instance = cp.execFile(filePath, proc.args, { cwd: 'bin' }, (error) => {
4847
if (error) {
4948
logs.push(error.code ? `${ error.code }: ${ error.errno }` : JSON.stringify(error))
5049
}

0 commit comments

Comments
 (0)