]> Repos - mime-chat/commitdiff
cicd v0.9.4
authorAndrew Gundersen <gundersena@xavier.edu>
Thu, 15 Apr 2021 15:50:52 +0000 (10:50 -0500)
committerAndrew Gundersen <gundersena@xavier.edu>
Thu, 15 Apr 2021 15:50:52 +0000 (10:50 -0500)
.gitlab-ci.yml
src/background.ts

index a03631e6b3b12559b4de322e9c2d251f5fd8708f..f03b700c1c78b2afdd6d8c3598100f3179dbff84 100644 (file)
@@ -58,4 +58,4 @@ auto-release-master:
     - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when when commits are pushed to the default branch
   script:
     - echo "Release $VERSION"
-    - release-cli create --name "Release $VERSION" --tag-name v$VERSION --description Release $CI_COMMIT_TITLE' --ref $CI_COMMIT_SHA --assets-link '{"name":${APPNAME},"url":"${PACKAGE_REGISTRY_URL}/${PACKAGE}"}'
+    - release-cli create --name "Release $VERSION" --tag-name v$VERSION --description Release $CI_COMMIT_TITLE --ref $CI_COMMIT_SHA --assets-link '{"name":${APPNAME},"url":"${PACKAGE_REGISTRY_URL}/${PACKAGE}"}'
index 77e704c5ddb2f73a8c3bf2f2397f0a3c526c16c1..2f28bb2bf9d9f0c5283a70bd7c2d1dd9c4887d54 100644 (file)
@@ -5,7 +5,6 @@
 
 "use strict";
 
-const log = require("electron-log")
 const { autoUpdater } = require('electron-updater')
 
 import { initApp } from './background/init';
@@ -23,7 +22,14 @@ const isDev = require('electron-is-dev');
 (async () => {
 
     autoUpdater.requestHeaders = { 'PRIVATE-TOKEN': 'seMF_apn237iUw8puG9a' }
-    autoUpdater.logger = log;
+
+    const dialogConfig = {
+        type: 'info',
+        buttons: ['Restart', 'Later'],
+        title: 'Application Update',
+        message: releaseName,
+        detail: 'A new version has been downloaded. Restart to update.'
+    }
 
     autoUpdater.on('update-downloaded', () => {
         autoUpdater.quitAndInstall()