Cleaned up dependencies; changed dist commands; start message improvements

This commit is contained in:
2025-06-15 15:50:38 -05:00
parent ef56b8c84b
commit 9e4ac75a91
4 changed files with 13 additions and 25 deletions

View File

@@ -41,14 +41,14 @@ const loadIPCServer = (fpath) => {
});
ipcServer.listen(ipcServerPort, () => {
console.debug(`IPCServer is up on port ${ipcServerPort}`);
console.debug("IPCServer (start) : Started on port ", ipcServerPort, " .");
});
}
const isIPCServerUp = async () => {
const response = await fetch(`${ipcServerURL}/is-up`).catch((err) => {
console.debug(err);
console.debug("IPCServer (status) : Not up; okay to start.");
return {
text: () => {
return "no";
@@ -78,4 +78,4 @@ module.exports = {
isIPCServerUp: isIPCServerUp,
sendFilesToIPC: sendFilesToIPC,
}
};
};

View File

@@ -1,9 +1,3 @@
try {
require('electron-reloader')(module)
} catch(error) {
console.log(error);
}
const { app, ipcMain } = require('electron');
const { newton } = require('./app');
@@ -86,4 +80,4 @@ process.on('unhandledRejection', function(error = {}) {
if (error.stack != null) {
console.log(error.stack);
}
});
});