Fix update (#534)
``` [2022-03-01 08:24:54.075] [error] TypeError: autoUpdater.checkForUpdate is not a function at Function.checkForUpdate (C:\Program Files\Cider\resources\app.asar\src\main\base\utils.ts:161:27) at processTicksAndRejections (node:internal/process/task_queues:96:5) at IpcMainImpl.<anonymous> (C:\Program Files\Cider\resources\app.asar\src\main\base\browserwindow.ts:976:13) [2022-03-01 08:24:54.075] [error] (node:29508) UnhandledPromiseRejectionWarning: TypeError: autoUpdater.checkForUpdate is not a function at Function.checkForUpdate (C:\Program Files\Cider\resources\app.asar\src\main\base\utils.ts:161:27) at processTicksAndRejections (node:internal/process/task_queues:96:5) at IpcMainImpl.<anonymous> (C:\Program Files\Cider\resources\app.asar\src\main\base\browserwindow.ts:976:13) [2022-03-01 08:24:54.075] [error] (node:29508) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4) ```
This commit is contained in:
parent
a539e25b70
commit
aec0651ba0
1 changed files with 2 additions and 2 deletions
|
@ -158,6 +158,6 @@ export class utils {
|
||||||
|
|
||||||
log.transports.file.level = "debug"
|
log.transports.file.level = "debug"
|
||||||
autoUpdater.logger = log
|
autoUpdater.logger = log
|
||||||
await autoUpdater.checkForUpdate()
|
await autoUpdater.checkForUpdatesAndNotify()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue