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