Adding functional usage of client self updater #10

- Added update command to the server
- Server can request nodes update
- Nodes have an 'endpoint' for updating
- Fixes to the install script
This commit is contained in:
Logan Cusano
2024-03-03 20:49:29 -05:00
parent 976c44838e
commit 956dc89107
6 changed files with 72 additions and 6 deletions

View File

@@ -24,8 +24,10 @@ export const checkForUpdates = async () => {
console.log('Update completed successfully. Restarting the application...');
// Restart the application to apply the updates
restartApplication();
return true
} else {
console.log('The application is up to date.');
return false
}
} catch (error) {
console.error('Error checking for updates:', error);