每一小时检查更新
This commit is contained in:
parent
6f882d030c
commit
adf86ef62e
3
main.js
3
main.js
|
|
@ -129,6 +129,9 @@ app.on('ready', () => {
|
||||||
}
|
}
|
||||||
createWindow()
|
createWindow()
|
||||||
updateHandle() // 检查更新
|
updateHandle() // 检查更新
|
||||||
|
setInterval(() => {
|
||||||
|
updateHandle() // 每一小时检查更新
|
||||||
|
}, 1000 * 60 * 60)
|
||||||
createTray()
|
createTray()
|
||||||
// 获取当前脚本所在目录的绝对路径
|
// 获取当前脚本所在目录的绝对路径
|
||||||
const currentDirectory = __dirname;
|
const currentDirectory = __dirname;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue