fix: updater issue

This commit is contained in:
Peng Xiao authored and LongYinan committed 2023-05-17 14:14:38 +08:00
1 parent 1922c07c00
commit 7c90417b2b
1 file changed
+2 -1
@@ -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;