From a43659141b2908cfa99c602e91ccf710e3c2f3f8 Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Tue, 24 Sep 2024 02:04:46 +0300 Subject: [PATCH] Patch update --- patches/0004-Dev-Tools-from-config.patch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/patches/0004-Dev-Tools-from-config.patch b/patches/0004-Dev-Tools-from-config.patch index 300d14e..a86ca5e 100644 --- a/patches/0004-Dev-Tools-from-config.patch +++ b/patches/0004-Dev-Tools-from-config.patch @@ -1,14 +1,15 @@ diff --git a/main/config.js b/main/config.js --- a/main/config.js +++ b/main/config.js -@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) { +@@ -4,9 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) { + }; Object.defineProperty(exports, "__esModule", { value: true }); exports.applyCommonConfig = exports.config = void 0; - const package_json_1 = __importDefault(require("../package.json")); +const devTools = process.env.DEV_TOOLS && process.env.DEV_TOOLS > 0; + const package_json_1 = __importDefault(require("../package.json")); exports.config = { - enableDevTools: false, + enableDevTools: devTools, enableWebSecurity: true, enableAutoUpdate: true, - bypassCSP: false, + enableUpdateByProbability: false,