fix: updater issue

This commit is contained in:
Peng Xiao 2023-05-11 14:44:54 +08:00
parent 717dd93f37
commit 4444c3d1a6

View File

@ -28,7 +28,8 @@ export const updateClient = async () => {
export const registerUpdater = async () => {
// require it will cause some side effects and will break generate-main-exposed-meta,
// so we wrap it in a function
const { autoUpdater } = await import('electron-updater');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { autoUpdater } = require('electron-updater');
_autoUpdater = autoUpdater;