feat: bumps electron@28, vite@5, vite-plugin-electron@0.28.0-beta.2

This commit is contained in:
草鞋没号 committed 2024-01-03 15:51:51 +08:00
1 parent 5303923340
commit 208ab386b1
12 files changed
+164 -54

No files matched your search

+6 -4
View File
@@ -1,10 +1,12 @@
import { app, ipcMain } from 'electron'
import {
type ProgressInfo,
type UpdateDownloadedEvent,
autoUpdater
import { createRequire } from 'node:module'
import type {
ProgressInfo,
UpdateDownloadedEvent,
} from 'electron-updater'
const { autoUpdater } = createRequire(import.meta.url)('electron-updater');
export function update(win: Electron.BrowserWindow) {
// When set to false, the update download will be triggered through the API