build: enhance tsconfig type check (#2732)

(cherry picked from commit b383ce36cd)
This commit is contained in:
Himself65
2023-06-09 01:42:58 +08:00
committed by himself65
parent d9c67e4723
commit 62caa555de
34 changed files with 111 additions and 68 deletions

View File

@@ -29,13 +29,14 @@ export const quitAndInstall = async () => {
let lastCheckTime = 0;
export const checkForUpdatesAndNotify = async (force = true) => {
if (!_autoUpdater) {
return; // ?
return void 0;
}
// check every 30 minutes (1800 seconds) at most
if (force || lastCheckTime + 1000 * 1800 < Date.now()) {
lastCheckTime = Date.now();
return await _autoUpdater.checkForUpdatesAndNotify();
}
return void 0;
};
export const registerUpdater = async () => {