From e6981024b62fb1885ff9408a8ba96a0d459c21d5 Mon Sep 17 00:00:00 2001 From: Van Date: Tue, 16 Jul 2019 17:09:44 +0800 Subject: [PATCH] :recycle: use bnd2 at electron --- bnd2/electron/src/utils.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bnd2/electron/src/utils.js b/bnd2/electron/src/utils.js index cad05db..372dc2f 100644 --- a/bnd2/electron/src/utils.js +++ b/bnd2/electron/src/utils.js @@ -24,17 +24,12 @@ const getBND2Version = () => { } const startKernel = (event) => { - let bnd2 let fileName = 'bnd2.exe' if (process.platform !== 'win32') { fileName = 'bnd2' } - if (isDev()) { - bnd2 = spawn(path.join('..', fileName)) - } else { - bnd2 = spawn(path.join(homedir, '.bnd2', fileName)) - } + let bnd2 = spawn(path.join(homedir, '.bnd2', fileName)) event.sender.send('asynchronous-reply', { type: 'loaded', -- GitLab