🔥 暂时关闭自动更新
This commit is contained in:
parent
7df9759194
commit
5c01c0442c
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user