Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
756f4da4
Commit
756f4da4
authored
Jun 28, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill API process
parent
14dca061
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
main.ts
Breeze.UI/main.ts
+6
-4
No files found.
Breeze.UI/main.ts
View file @
756f4da4
...
...
@@ -9,6 +9,8 @@ const path = require('path');
const
url
=
require
(
'url'
);
const
os
=
require
(
'os'
);
var
apiProcess
;
let
serve
;
const
args
=
process
.
argv
.
slice
(
1
);
serve
=
args
.
some
(
val
=>
val
===
"--serve"
);
...
...
@@ -66,6 +68,7 @@ app.on('window-all-closed', function () {
// On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if
(
process
.
platform
!==
'darwin'
)
{
apiProcess
.
kill
();
app
.
quit
();
}
});
...
...
@@ -79,16 +82,15 @@ app.on('activate', function () {
});
function
startApi
()
{
var
apiProcess
;
const
spawn
=
require
(
'child_process'
).
spawn
;
const
exec
=
require
(
'child_process'
).
exec
;
//Start Breeze Daemon
let
apipath
=
path
.
join
(
__dirname
,
'.
.//..
//daemon//Breeze.Daemon'
);
let
apipath
=
path
.
join
(
__dirname
,
'.
//assets
//daemon//Breeze.Daemon'
);
if
(
os
.
platform
()
===
'win32'
)
{
apipath
=
path
.
join
(
__dirname
,
'.
\\
assets
\\
daemon
\\
Breeze.Daemon.exe'
);
}
apiProcess
=
spawn
(
apipath
+
' light -testnet'
,
{
apiProcess
=
exec
(
apipath
+
' light -testnet'
,
{
detached
:
true
});
...
...
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