summarylogtreecommitdiffstats
path: root/electron-is-dev-env.patch
diff options
context:
space:
mode:
authorMartin Rodriguez Reboredo2023-06-01 11:18:05 -0300
committerMartin Rodriguez Reboredo2023-06-01 11:18:05 -0300
commitabcb208e7f37770a6998544cb496873bbd6d0dae (patch)
tree214f54600ce0b82714ab3a302b587599c9c72b01 /electron-is-dev-env.patch
parenteafb2108d0e206af1fdbacd6ef7bde9b0b8c4dd9 (diff)
downloadaur-heroic-games-launcher-electron.tar.gz
Update to 2.8.0
Diffstat (limited to 'electron-is-dev-env.patch')
-rw-r--r--electron-is-dev-env.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/electron-is-dev-env.patch b/electron-is-dev-env.patch
index 54e5835be4df..dd9e5e52a3d8 100644
--- a/electron-is-dev-env.patch
+++ b/electron-is-dev-env.patch
@@ -1,11 +1,13 @@
--- a/src/backend/main.ts
+++ b/src/backend/main.ts
-@@ -200,7 +200,7 @@ async function createWindow(): Promise<B
+@@ -208,7 +208,9 @@ async function initializeWindow(): Promi
detectVCRedist(mainWindow)
}
-- if (!app.isPackaged) {
-+ if (!app.isPackaged && process.env.HEROIC_NO_REACT_DEVTOOLS !== undefined) {
+- if (!app.isPackaged && process.env.CI !== 'e2e') {
++ if (!app.isPackaged &&
++ process.env.CI !== 'e2e' &&
++ process.env.HEROIC_NO_REACT_DEVTOOLS != undefined) {
if (!process.env.HEROIC_NO_REACT_DEVTOOLS) {
import('electron-devtools-installer').then((devtools) => {
const { default: installExtension, REACT_DEVELOPER_TOOLS } = devtools