🔥 暂时关闭自动更新
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');
|
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()
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user