未验证 提交 e6981024 编写于 作者: V Van

use bnd2 at electron

上级 26e2577c
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册