]> Repos - mime-chat/commitdiff
cicd
authorAndrew Gundersen <gundersena@xavier.edu>
Thu, 15 Apr 2021 17:12:41 +0000 (12:12 -0500)
committerAndrew Gundersen <gundersena@xavier.edu>
Thu, 15 Apr 2021 17:12:41 +0000 (12:12 -0500)
package.json
src/background.ts

index 60f4b83adb9d76a51db9daa827c8b2f5098bff73..56a7cf86f68f8508a5dce61ac101ac6caa44ae3b 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "Crimata",
-  "version": "0.9.4",
+  "version": "0.9.5",
   "private": true,
   "description": "Cross-platform messenger application built with electron, vue3, and TS.",
   "author": {
index 294c0af9e908957d760e3addb187b6c71ffef488..1147f86ab4aeb51391dfe22b460bf344a08bb5f1 100644 (file)
@@ -30,7 +30,24 @@ const isDev = require('electron-is-dev');
         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()
         })
@@ -40,9 +57,11 @@ const isDev = require('electron-is-dev');
 
     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