From 848797e824e8f4face158774d5129a181d27d9bc Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Fri, 12 Jul 2024 17:51:04 +0800 Subject: [PATCH] build: disable devTools on prod mode --- src/main/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index 80d98e03..4bd293ab 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -28,7 +28,8 @@ function createWindow(): void { ...(process.platform === 'linux' ? { icon } : {}), webPreferences: { preload: join(__dirname, '../preload/index.js'), - sandbox: false + sandbox: false, + devTools: !app.isPackaged } })