From adf86ef62ed184dc317fa8459a53bf97968b772d Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 20 Sep 2024 10:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E4=B8=80=E5=B0=8F=E6=97=B6=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.js b/main.js index 5281124..e7f221a 100644 --- a/main.js +++ b/main.js @@ -129,6 +129,9 @@ app.on('ready', () => { } createWindow() updateHandle() // 检查更新 + setInterval(() => { + updateHandle() // 每一小时检查更新 + }, 1000 * 60 * 60) createTray() // 获取当前脚本所在目录的绝对路径 const currentDirectory = __dirname;