]> Repos - mime-chat/commitdiff
cicd
authorAndrew Gundersen <gundersena@xavier.edu>
Thu, 15 Apr 2021 16:29:39 +0000 (11:29 -0500)
committerAndrew Gundersen <gundersena@xavier.edu>
Thu, 15 Apr 2021 16:29:39 +0000 (11:29 -0500)
.gitlab-ci.yml
src/background.ts

index f03b700c1c78b2afdd6d8c3598100f3179dbff84..4a8dbe8f7ce2a0b64889dddecb6fadb2adba963d 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 2f28bb2bf9d9f0c5283a70bd7c2d1dd9c4887d54..294c0af9e908957d760e3addb187b6c71ffef488 100644 (file)
@@ -27,12 +27,13 @@ const isDev = require('electron-is-dev');
         type: 'info',
         buttons: ['Restart', 'Later'],
         title: 'Application Update',
-        message: releaseName,
-        detail: 'A new version has been downloaded. Restart to update.'
+        message: 'A new version has been downloaded. Restart to update.'
     }
 
     autoUpdater.on('update-downloaded', () => {
-        autoUpdater.quitAndInstall()
+        dialog.showMessageBox(dialogConfig).then((returnValue) => {
+            if (returnValue.response === 0) autoUpdater.quitAndInstall()
+        })
     })
 
     autoUpdater.checkForUpdatesAndNotify()