diff --git a/electron/package.json b/electron/package.json index 6a79e442a..f254dea78 100644 --- a/electron/package.json +++ b/electron/package.json @@ -11,7 +11,7 @@ "files": [ "renderer/**/*", "build/*.{js,map}", - "build/core/plugin-manager/**/*", + "build/**/*.{js,map}", "core/pre-install" ], "asarUnpack": [ diff --git a/electron/utils/menu.ts b/electron/utils/menu.ts index 90c5d55c5..bfd93eaff 100644 --- a/electron/utils/menu.ts +++ b/electron/utils/menu.ts @@ -1,5 +1,5 @@ // @ts-nocheck -const { app, Menu } = require("electron"); +const { app, Menu, dialog } = require("electron"); const isMac = process.platform === "darwin"; const { autoUpdater } = require("electron-updater"); @@ -12,7 +12,13 @@ const template: (Electron.MenuItemConstructorOptions | Electron.MenuItem)[] = [ { role: "about" }, { label: "Check for Updates...", - click: () => autoUpdater.checkForUpdates(), + click: () => + autoUpdater.checkForUpdatesAndNotify().then((e) => { + if (!e || e.updateInfo.files.length === 0) + dialog.showMessageBox({ + message: `There are currently no updates available.`, + }); + }), }, { type: "separator" }, { role: "services" },