From 72fd4aa6e0febdfcb024f5479865e5ed2b7a24f1 Mon Sep 17 00:00:00 2001 From: Andrew Gundersen Date: Thu, 15 Apr 2021 10:50:52 -0500 Subject: [PATCH] cicd --- .gitlab-ci.yml | 2 +- src/background.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a03631e..f03b700 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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}"}' diff --git a/src/background.ts b/src/background.ts index 77e704c..2f28bb2 100644 --- a/src/background.ts +++ b/src/background.ts @@ -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() -- 2.43.0