From e30b26851638e0fe1a19ff02d7bd3a24bfeff755 Mon Sep 17 00:00:00 2001 From: Jonas Verhoelen Date: Fri, 25 Jun 2021 16:23:30 +0200 Subject: [PATCH] fix build for building a full release --- src/main/AppWindows.ts | 2 +- src/main/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/AppWindows.ts b/src/main/AppWindows.ts index d65dd3a..e1fbd4e 100644 --- a/src/main/AppWindows.ts +++ b/src/main/AppWindows.ts @@ -3,7 +3,7 @@ import * as url from 'url' import * as path from 'path' export const createMainWindow = (): BrowserWindow => { - let mainWindow = new BrowserWindow({ + const mainWindow = new BrowserWindow({ width: 1000, height: 600, center: true, diff --git a/src/main/index.ts b/src/main/index.ts index 2b2a642..04a99e7 100755 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -12,7 +12,8 @@ import { getSystemSettings, getUserSettings, installExtensions } from './AppUtil const isDevMode = process.env.NODE_ENV !== 'production' fixPath() -require('@electron/remote/main').initialize() +import * as remoteMain from '@electron/remote/main' +remoteMain.initialize() let mainWindow: BrowserWindow | null let searchWindow: BrowserWindow | null