mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
d126117bd3
commit
01801766b6
|
@ -100,7 +100,7 @@ async function createWindow() {
|
||||||
app.whenReady().then(() => {
|
app.whenReady().then(() => {
|
||||||
createWindow();
|
createWindow();
|
||||||
|
|
||||||
console.log(platform())
|
console.log(platform());
|
||||||
//Generate daemon binary path
|
//Generate daemon binary path
|
||||||
var daemonPath = "";
|
var daemonPath = "";
|
||||||
switch (platform().toLowerCase()) {
|
switch (platform().toLowerCase()) {
|
||||||
|
@ -125,21 +125,19 @@ console.log(platform())
|
||||||
console.log("Starting freedata-server binary");
|
console.log("Starting freedata-server binary");
|
||||||
console.log("daemonPath:", daemonPath);
|
console.log("daemonPath:", daemonPath);
|
||||||
console.log("CWD:", join(daemonPath, ".."));
|
console.log("CWD:", join(daemonPath, ".."));
|
||||||
/*
|
/*
|
||||||
var daemonProcess = spawn("freedata-server", [], {
|
var daemonProcess = spawn("freedata-server", [], {
|
||||||
cwd: join(process.env.DIST, "modem"),
|
cwd: join(process.env.DIST, "modem"),
|
||||||
shell: true
|
shell: true
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
daemonProcess = spawn(daemonPath, [], {
|
daemonProcess = spawn(daemonPath, [], {
|
||||||
shell: true
|
shell: true
|
||||||
});
|
});
|
||||||
console.log(daemonProcess)
|
console.log(daemonProcess)
|
||||||
*/
|
*/
|
||||||
daemonProcess = spawn(daemonPath, [], {
|
daemonProcess = spawn(daemonPath, [], {});
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
// return process messages
|
// return process messages
|
||||||
daemonProcess.on("error", (err) => {
|
daemonProcess.on("error", (err) => {
|
||||||
|
@ -154,7 +152,7 @@ daemonProcess = spawn(daemonPath, [], {
|
||||||
});
|
});
|
||||||
daemonProcess.stderr.on("data", (data) => {
|
daemonProcess.stderr.on("data", (data) => {
|
||||||
// daemonProcessLog.info(`${data}`);
|
// daemonProcessLog.info(`${data}`);
|
||||||
console.log(data)
|
console.log(data);
|
||||||
});
|
});
|
||||||
daemonProcess.on("close", (code) => {
|
daemonProcess.on("close", (code) => {
|
||||||
// daemonProcessLog.warn(`daemonProcess exited with code ${code}`);
|
// daemonProcessLog.warn(`daemonProcess exited with code ${code}`);
|
||||||
|
|
Loading…
Reference in a new issue