Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lowcode-electron
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
electron
lowcode-electron
Commits
5e729fb5
You need to sign in or sign up before continuing.
Commit
5e729fb5
authored
Aug 06, 2023
by
韵晨龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: runtime兼容window
parent
5cb5117f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
runtime.js
src/command/runtime.js
+6
-1
No files found.
src/command/runtime.js
View file @
5e729fb5
...
@@ -14,11 +14,16 @@ function killProcessServer(server, port) {
...
@@ -14,11 +14,16 @@ function killProcessServer(server, port) {
}
}
function
javaServer
(
javaPath
)
{
function
javaServer
(
javaPath
)
{
let
child
=
null
// 判断平台
// 判断平台
log
.
info
(
javaPath
,
'javaPath'
)
log
.
info
(
javaPath
,
'javaPath'
)
log
.
info
(
'正在启动JAVA runtime服务'
)
log
.
info
(
'正在启动JAVA runtime服务'
)
shell
.
cd
(
javaPath
)
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
let
isStart
=
false
child
.
stdout
.
on
(
'data'
,
function
(
stdout
)
{
child
.
stdout
.
on
(
'data'
,
function
(
stdout
)
{
log
.
info
(
stdout
)
log
.
info
(
stdout
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment