🔥 暂时关闭自动更新

This commit is contained in:
刘嘉伟 2024-08-09 00:18:33 +08:00
parent 7df9759194
commit 5c01c0442c
2 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,13 @@
import {app, dialog, autoUpdater } from "electron"; import {app, dialog, autoUpdater} from "electron";
const log = require('electron-log'); const log = require('electron-log');
export const initUpdaterApi = () => { export const initUpdaterApi = () => {
log.info("自动更新")
const server = 'https://hazel-jplav4y84-uiluck.vercel.app' const server = 'https://hazel-jplav4y84-uiluck.vercel.app'
const url = `${server}/update/${process.platform}/${app.getVersion()}` const url = `${server}/update/${process.platform}/${app.getVersion()}`
autoUpdater.setFeedURL({ url }) autoUpdater.setFeedURL({url})
setInterval(() => { setInterval(() => {
}, 60000) }, 60000)
autoUpdater.checkForUpdates() autoUpdater.checkForUpdates()

View File

@ -9,7 +9,6 @@ import {initLoggerApi} from "../api/logger";
import {initFileApi} from "../api/file"; import {initFileApi} from "../api/file";
import {getConfig} from "../storage/config"; import {getConfig} from "../storage/config";
import log from "electron-log"; import log from "electron-log";
import {initUpdaterApi} from "../api/update";
// The built directory structure // The built directory structure
// //
// ├─┬ dist-electron // ├─┬ dist-electron