Skip to content

Commit

Permalink
reset to v0.0.1 -- testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
AquaJo committed Aug 15, 2024
1 parent 17b45e0 commit be430df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "huefl",
"version": "0.0.4",
"version": "0.0.1",
"description": "abc",
"main": "src/index.js",
"scripts": {
Expand Down
9 changes: 5 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ if (!gotTheLock) {
mainWindow.webContents.send('log', 'Update heruntergeladen!'); // ()
// delete java process if existent before quitAndInstall!! --> using jarExec.pid
try {
process.kill(jarExec.pid);
process.kill(jarExec.pid); // could have also used spawn process for jarExec ...
console.log(`Java process with PID ${jarExec.pid} terminated.`);
} catch (error) {
console.info(
Expand Down Expand Up @@ -354,15 +354,16 @@ if (!gotTheLock) {
'./jars/Hue-Ambiance.jar',
(err, stdout, stderr) => {
if (err) {
mainWindow.webContents.send('noJavaAlert', '');
throw err;
mainWindow.webContents.send('noJavaAlert', ''); // also triggered on update due to process killing, but shouldn't matter
console.info(err);
//throw err;
}
console.log(stdout);
console.log(stderr);
}
);
//console.log(jarExec);
console.log('jarExec.pid:' + jarExec.pid);
console.log('jarExec.pid:' + jarExec.pid); // could have also used spawn process for jarExec ...
}
} else {
// TODO: No Java installed
Expand Down

0 comments on commit be430df

Please sign in to comment.