From 752aa9f88d9fca5cada8ec06123d5f9bfe22934a Mon Sep 17 00:00:00 2001 From: Seba Kerckhof Date: Thu, 11 Oct 2018 18:50:55 +0200 Subject: [PATCH 1/2] Add workaround for statSyncNoException error in electron 4.0.0-beta.1 https://github.com/electron/electron/issues/15089 --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b3cf74d..90ff7ea 100644 --- a/src/index.js +++ b/src/index.js @@ -9,7 +9,8 @@ import {addBypassChecker} from './protocol-hook'; // NB: Patch a bug in Electron that affects electron-prebuilt-compile that // we can't fix any other way. Yes it _does_ feelbadman.jpg -if ('versions' in process && process.versions.electron === "3.0.0-beta.1") { +if ('versions' in process && (process.versions.electron === "3.0.0-beta.1" + || process.versions.electron === "4.0.0-beta.1")) { const fs = require('fs'); fs.statSyncNoException = (...args) => { try { From cc931d762fc6854d1111c196c1a298f7a0928a7d Mon Sep 17 00:00:00 2001 From: Seba Kerckhof Date: Fri, 12 Oct 2018 10:33:11 +0200 Subject: [PATCH 2/2] Update index.js --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 90ff7ea..7d5c2fa 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,8 @@ import {addBypassChecker} from './protocol-hook'; // NB: Patch a bug in Electron that affects electron-prebuilt-compile that // we can't fix any other way. Yes it _does_ feelbadman.jpg if ('versions' in process && (process.versions.electron === "3.0.0-beta.1" - || process.versions.electron === "4.0.0-beta.1")) { + || process.versions.electron === "4.0.0-beta.1" + || process.versions.electron === "4.0.0-beta.2")) { const fs = require('fs'); fs.statSyncNoException = (...args) => { try {