mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
bug fix and added install-deps command
This commit is contained in:
parent
d4275642d7
commit
bab8aad126
2 changed files with 6 additions and 7 deletions
|
@ -124,11 +124,15 @@ app.whenReady().then(() => {
|
|||
|
||||
default:
|
||||
console.log("Unhandled OS Platform: ", platform());
|
||||
serverProcess = null;
|
||||
serverPath = null;
|
||||
break;
|
||||
}
|
||||
|
||||
serverProcess.on('error', (err) => {
|
||||
console.error('Failed to start server process:', err);
|
||||
serverProcess = null;
|
||||
serverPath = null;
|
||||
});
|
||||
serverProcess.stdout.on('data', (data) => {
|
||||
//console.log(`stdout: ${data}`);
|
||||
|
@ -139,12 +143,6 @@ serverProcess.stderr.on('data', (data) => {
|
|||
});
|
||||
|
||||
|
||||
} else {
|
||||
serverProcess = null;
|
||||
serverPath = null;
|
||||
console.log("Server binary doesn't exist in setup folder");
|
||||
}
|
||||
|
||||
//)
|
||||
});
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
"release": "vue-tsc --noEmit && vite build && electron-builder -p onTag",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint --ext .js,.vue src",
|
||||
"lint-fix": "eslint --ext .js,.vue --fix src"
|
||||
"lint-fix": "eslint --ext .js,.vue --fix src",
|
||||
"install-deps": "npm install && npm update"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Reference in a new issue