cicd
This commit is contained in:
parent
a166753c5b
commit
72fd4aa6e0
2 changed files with 9 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue