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
0fbd4f83
Commit
0fbd4f83
authored
Aug 05, 2023
by
阮传宙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 兼容window启动
parent
b9523143
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
17 deletions
+4
-17
shell.js
src/command/shell.js
+1
-6
process.js
src/sevice/process.js
+3
-11
No files found.
src/command/shell.js
View file @
0fbd4f83
...
@@ -33,16 +33,11 @@ function javaServer() {
...
@@ -33,16 +33,11 @@ function javaServer() {
log
.
info
(
shell
.
ls
())
log
.
info
(
shell
.
ls
())
const
child
=
shell
.
exec
(
exePath
+
' -jar syc-paas-standalone-biz.jar -spring.config.location=file:./baseServer/config/boostrap.yml &'
,
{
async
:
true
})
const
child
=
shell
.
exec
(
exePath
+
' -jar syc-paas-standalone-biz.jar -spring.config.location=file:./baseServer/config/boostrap.yml &'
,
{
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
,
'----'
)
if
(
stdout
.
includes
(
'http://localhost'
)
&&
!
isStart
)
{
if
(
stdout
.
includes
(
'http://localhost'
)
&&
!
isStart
)
{
if
(
!
isMac
())
{
ipcRenderer
.
send
(
"close"
,
MESSAGE_TYPE
.
DESIGN
);
process
.
send
(
'close'
)
}
else
{
ipcRenderer
.
send
(
"close"
,
MESSAGE_TYPE
.
DESIGN
);
}
isStart
=
true
isStart
=
true
}
}
})
})
...
...
src/sevice/process.js
View file @
0fbd4f83
...
@@ -38,23 +38,15 @@ class ProcessActivity {
...
@@ -38,23 +38,15 @@ class ProcessActivity {
if
(
args
.
length
)
{
if
(
args
.
length
)
{
forkParam
=
[
shellPath
,
args
]
forkParam
=
[
shellPath
,
args
]
}
}
let
child
=
null
if
(
utils
.
isMac
())
{
let
child
=
child
=
utilityProcess
.
fork
(...
forkParam
)
child
=
utilityProcess
.
fork
(...
forkParam
)
}
else
{
child
=
fork
(...
forkParam
)
}
child
.
on
(
'message'
,
(
data
)
=>
{
child
.
on
(
'message'
,
(
data
)
=>
{
const
childParam
=
{
data
,
child
}
const
childParam
=
{
data
,
child
}
if
(
args
.
length
||
cb
)
{
if
(
args
.
length
||
cb
)
{
return
this
.
watchGlobalMsg
(
childParam
,
cb
)
return
this
.
watchGlobalMsg
(
childParam
,
cb
)
}
}
this
.
handleDefaultProcessEnd
(
childParam
)
this
.
handleDefaultProcessEnd
(
childParam
)
if
(
data
===
'close'
)
{
this
.
ctx
.
win
.
close
()
}
})
})
}
}
...
...
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