diff --git a/Makefile b/Makefile index b7fb27cd..12617a38 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ TARGET_ARCH ?= $(HOST_ARCH) # --------------------------------------------------------------------- # Electron # --------------------------------------------------------------------- -patches: +patches: node_modules_patches/allow-electron-forks-of-modules-that-use-pre-gyp.patch node_modules/node-pre-gyp/lib/util/versioning.js # patch from https://github.com/mapbox/node-pre-gyp/pull/279/files , required for lzma-native in electron child processes # we only apply the patch if it hasn't been applied if ! [ -f node_modules/node-pre-gyp/lib/util/versioning.js.orig ]; \ diff --git a/node_modules_patches/allow-electron-forks-of-modules-that-use-pre-gyp.patch b/node_modules_patches/allow-electron-forks-of-modules-that-use-pre-gyp.patch index 1dccb6f7..5ab099e2 100644 --- a/node_modules_patches/allow-electron-forks-of-modules-that-use-pre-gyp.patch +++ b/node_modules_patches/allow-electron-forks-of-modules-that-use-pre-gyp.patch @@ -10,7 +10,7 @@ + // TODO PR something to electron to pass in the version number for forks + // https://github.com/electron/electron/issues/9058 + try { electron_version = require('electron/package.json').version; } -+ catch (_) {} ++ catch (_) { electron_version = '1.7.13'; } + } + return get_electron_abi(runtime, electron_version); } else {