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,