每一小时检查更新

This commit is contained in:
yj 2024-09-20 10:17:07 +08:00
parent 6f882d030c
commit adf86ef62e
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ app.on('ready', () => {
} }
createWindow() createWindow()
updateHandle() // 检查更新 updateHandle() // 检查更新
setInterval(() => {
updateHandle() // 每一小时检查更新
}, 1000 * 60 * 60)
createTray() createTray()
// 获取当前脚本所在目录的绝对路径 // 获取当前脚本所在目录的绝对路径
const currentDirectory = __dirname; const currentDirectory = __dirname;