bug fix and added install-deps command

This commit is contained in:
DJ2LS 2024-03-02 10:41:07 +01:00
parent d4275642d7
commit bab8aad126
2 changed files with 6 additions and 7 deletions

View file

@ -124,11 +124,15 @@ app.whenReady().then(() => {
default: default:
console.log("Unhandled OS Platform: ", platform()); console.log("Unhandled OS Platform: ", platform());
serverProcess = null;
serverPath = null;
break; break;
} }
serverProcess.on('error', (err) => { serverProcess.on('error', (err) => {
console.error('Failed to start server process:', err); console.error('Failed to start server process:', err);
serverProcess = null;
serverPath = null;
}); });
serverProcess.stdout.on('data', (data) => { serverProcess.stdout.on('data', (data) => {
//console.log(`stdout: ${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");
}
//) //)
}); });

View file

@ -13,7 +13,8 @@
"release": "vue-tsc --noEmit && vite build && electron-builder -p onTag", "release": "vue-tsc --noEmit && vite build && electron-builder -p onTag",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint --ext .js,.vue src", "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": { "repository": {
"type": "git", "type": "git",