mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-24 02:39:42 +02:00
fix(desktop): use default import for electron-updater CJS module
electron-updater is a CommonJS module — ESM named imports fail at runtime. Switch to default import with destructuring. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
* Auto-updater module using electron-updater
|
||||
* Checks for updates from GitHub releases and handles download/install
|
||||
*/
|
||||
import { autoUpdater, UpdateInfo, ProgressInfo } from 'electron-updater'
|
||||
import pkg from 'electron-updater'
|
||||
import type { UpdateInfo, ProgressInfo } from 'electron-updater'
|
||||
|
||||
const { autoUpdater } = pkg
|
||||
import { BrowserWindow } from 'electron'
|
||||
|
||||
export interface UpdateStatus {
|
||||
|
||||
Reference in New Issue
Block a user