From 0f18d8fca274ef810d77fb14e5847a9d5e5eec2e Mon Sep 17 00:00:00 2001 From: Andrew Gundersen Date: Thu, 15 Apr 2021 12:12:41 -0500 Subject: [PATCH] cicd --- package.json | 2 +- src/background.ts | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 60f4b83..56a7cf8 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/background.ts b/src/background.ts index 294c0af..1147f86 100644 --- a/src/background.ts +++ b/src/background.ts @@ -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 -- 2.43.0