Commit 5e729fb5 authored by 韵晨龙's avatar 韵晨龙

feat: runtime兼容window

parent 5cb5117f
......@@ -14,11 +14,16 @@ function killProcessServer(server, port) {
}
function javaServer(javaPath) {
let child = null
// 判断平台
log.info(javaPath, 'javaPath')
log.info('正在启动JAVA runtime服务')
shell.cd(javaPath)
const child = shell.exec('bash standalone.sh', { async: true })
if(isMac()){
child = shell.exec('bash standalone.sh', { async: true })
}else {
child = shell.exec('standalone.bat', { async: true })
}
let isStart = false
child.stdout.on('data', function (stdout) {
log.info(stdout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment