From 2850756e6d9048f161c320244f69338313c5247c Mon Sep 17 00:00:00 2001 From: sguenter Date: Sat, 6 Jan 2024 09:17:20 +0100 Subject: [PATCH] update of building --- electron/electron-builder.config.json | 11 +++++++++-- electron/src/index.ts | 8 +------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/electron/electron-builder.config.json b/electron/electron-builder.config.json index 4d454bb..95047fe 100644 --- a/electron/electron-builder.config.json +++ b/electron/electron-builder.config.json @@ -23,6 +23,13 @@ }, "mac": { "category": "your.app.category.type", - "target": "dmg" + "target": [ + { + "target": "mac-universal", + "arch": [ + "universal" + ] + } + ] } -} \ No newline at end of file +} diff --git a/electron/src/index.ts b/electron/src/index.ts index 3e48334..aded242 100644 --- a/electron/src/index.ts +++ b/electron/src/index.ts @@ -4,7 +4,6 @@ import type { MenuItemConstructorOptions } from 'electron'; import { app, MenuItem } from 'electron'; import electronIsDev from 'electron-is-dev'; import unhandled from 'electron-unhandled'; -import { autoUpdater } from 'electron-updater'; import { ElectronCapacitorApp, setupContentSecurityPolicy, setupReloadWatcher } from './setup'; @@ -54,16 +53,11 @@ if (electronIsDev) { // Initialize our app, build windows, and load content. await myCapacitorApp.init(); // Check for updates if we are in a packaged app. - autoUpdater.checkForUpdatesAndNotify(); })(); // Handle when all of our windows are close (platforms have their own expectations). app.on('window-all-closed', function () { - // On OS X it is common for applications and their menu bar - // to stay active until the user quits explicitly with Cmd + Q - if (process.platform !== 'darwin') { - app.quit(); - } + app.quit(); }); // When the dock icon is clicked.