diff --git a/electron/api/update.ts b/electron/api/update.ts index 6c8df1d..743aa73 100644 --- a/electron/api/update.ts +++ b/electron/api/update.ts @@ -2,6 +2,7 @@ import {app, dialog, autoUpdater, BrowserWindow} from "electron"; const log = require('electron-log'); + export const initUpdaterApi = (win: BrowserWindow) => { //更新测试打开 Object.defineProperty(app, 'isPackaged', {