From 33566eb44adb154c66b73e8b24e71c2d917518b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Mon, 8 Nov 2021 20:42:31 +0800 Subject: [PATCH] chore: TODO electron-updater --- src/main/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 8c0bb42..4260862 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -43,8 +43,9 @@ app.on('second-instance', () => { } }) +// @TODO // auto update -if (app.isPackaged) { +/* if (app.isPackaged) { app.whenReady() .then(() => import('electron-updater')) .then(({ autoUpdater }) => autoUpdater.checkForUpdatesAndNotify()) @@ -52,4 +53,4 @@ if (app.isPackaged) { // maybe you need to record some log files. console.error('Failed check update:', e) ) -} +} */