From 8556a0dcf1bbcf40961846057dbb67392a23654c Mon Sep 17 00:00:00 2001 From: olcxja Date: Sun, 10 May 2026 16:58:16 +0200 Subject: [PATCH] Fix windows start error --- electron/build/src/index.js | 6 +++--- electron/src/index.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/electron/build/src/index.js b/electron/build/src/index.js index a8bd9fb0..ec40b3ba 100644 --- a/electron/build/src/index.js +++ b/electron/build/src/index.js @@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const electron_1 = require("@capacitor-community/electron"); const electron_2 = require("electron"); -const electron_is_dev_1 = tslib_1.__importDefault(require("electron-is-dev")); +var electron_is_dev_1 = false; const electron_unhandled_1 = tslib_1.__importDefault(require("electron-unhandled")); -const electron_updater_1 = require("electron-updater"); +//const electron_updater_1 = require("electron-updater"); const setup_1 = require("./setup"); // Graceful handling of unhandled errors. (0, electron_unhandled_1.default)(); @@ -40,7 +40,7 @@ if (electron_is_dev_1.default) { // Initialize our app, build windows, and load content. await myCapacitorApp.init(); // Check for updates if we are in a packaged app. - electron_updater_1.autoUpdater.checkForUpdatesAndNotify(); + //electron_updater_1.autoUpdater.checkForUpdatesAndNotify(); })(); // Handle when all of our windows are close (platforms have their own expectations). electron_2.app.on('window-all-closed', function () { diff --git a/electron/src/index.ts b/electron/src/index.ts index e23f2bb3..8d70f291 100644 --- a/electron/src/index.ts +++ b/electron/src/index.ts @@ -2,9 +2,9 @@ import type { CapacitorElectronConfig } from '@capacitor-community/electron'; import { getCapacitorElectronConfig, setupElectronDeepLinking } from '@capacitor-community/electron'; import type { MenuItemConstructorOptions } from 'electron'; import { app, MenuItem } from 'electron'; -import electronIsDev from 'electron-is-dev'; +var electronIsDev = false; import unhandled from 'electron-unhandled'; -import { autoUpdater } from 'electron-updater'; +//import { autoUpdater } from 'electron-updater'; import { ElectronCapacitorApp, setupContentSecurityPolicy, setupReloadWatcher } from './setup'; @@ -46,7 +46,7 @@ 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(); + //autoUpdater.checkForUpdatesAndNotify(); })(); // Handle when all of our windows are close (platforms have their own expectations).