message: 'A new version has been downloaded. Restart to update.'
}
+ autoUpdater.on('checking-for-update', () => {
+ console.log("Checking for update...")
+ })
+
+ autoUpdater.on('update-available', () => {
+ console.log("Update available.")
+ })
+
+ autoUpdater.on('download-progress', function (progress: any) {
+ console.log(`Downloading update: ${progress.percent}`)
+ })
+
+ autoUpdater.on('error', (err: any) => {
+ console.log(String(err))
+ })
+
autoUpdater.on('update-downloaded', () => {
+ console.log("Update downloaded.")
dialog.showMessageBox(dialogConfig).then((returnValue) => {
if (returnValue.response === 0) autoUpdater.quitAndInstall()
})
setInterval(() => {
autoUpdater.checkForUpdatesAndNotify()
- }, 120000)
+ }, 5000)
console.log('Starting Crimata electron app.');
initApp(isDev);
})();
+
+https://gitlab.com/crimata/electron-app/-/package_files/9495519/download
\ No newline at end of file