mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: updater issue
This commit is contained in:
@@ -28,7 +28,8 @@ export const updateClient = async () => {
|
|||||||
export const registerUpdater = async () => {
|
export const registerUpdater = async () => {
|
||||||
// require it will cause some side effects and will break generate-main-exposed-meta,
|
// require it will cause some side effects and will break generate-main-exposed-meta,
|
||||||
// so we wrap it in a function
|
// 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;
|
_autoUpdater = autoUpdater;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user