From 5c01c0442c82369b175568adc6fef503d3756083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E4=BC=9F?= <8473136@qq.com> Date: Fri, 9 Aug 2024 00:18:33 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E6=9A=82=E6=97=B6=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/api/update.ts | 5 +++-- electron/main/index.ts | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/electron/api/update.ts b/electron/api/update.ts index c2231ca..3064fcd 100644 --- a/electron/api/update.ts +++ b/electron/api/update.ts @@ -1,12 +1,13 @@ -import {app, dialog, autoUpdater } from "electron"; +import {app, dialog, autoUpdater} from "electron"; const log = require('electron-log'); export const initUpdaterApi = () => { + log.info("自动更新") const server = 'https://hazel-jplav4y84-uiluck.vercel.app' const url = `${server}/update/${process.platform}/${app.getVersion()}` - autoUpdater.setFeedURL({ url }) + autoUpdater.setFeedURL({url}) setInterval(() => { }, 60000) autoUpdater.checkForUpdates() diff --git a/electron/main/index.ts b/electron/main/index.ts index a71df8f..e33c4ae 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -9,7 +9,6 @@ import {initLoggerApi} from "../api/logger"; import {initFileApi} from "../api/file"; import {getConfig} from "../storage/config"; import log from "electron-log"; -import {initUpdaterApi} from "../api/update"; // The built directory structure // // ├─┬ dist-electron