fix: the app bundle is missing files
This commit is contained in:
parent
7b0de2bc0f
commit
dabf0f13b1
@ -11,7 +11,7 @@
|
||||
"files": [
|
||||
"renderer/**/*",
|
||||
"build/*.{js,map}",
|
||||
"build/core/plugin-manager/**/*",
|
||||
"build/**/*.{js,map}",
|
||||
"core/pre-install"
|
||||
],
|
||||
"asarUnpack": [
|
||||
|
||||
@ -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" },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user