Skip to content

Commit

Permalink
disable prebuildify
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Nov 10, 2023
1 parent c3a9f35 commit ae6c130
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions patches/electron-rebuild+3.2.9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
diff --git a/node_modules/electron-rebuild/lib/src/module-rebuilder.js b/node_modules/electron-rebuild/lib/src/module-rebuilder.js
index 0d78dbe..60ee50d 100644
--- a/node_modules/electron-rebuild/lib/src/module-rebuilder.js
+++ b/node_modules/electron-rebuild/lib/src/module-rebuilder.js
@@ -123,7 +123,7 @@ class ModuleRebuilder {
await fs.outputFile(this.metaPath, this.metaData);
}
async rebuild(cacheKey) {
- return (await this.findPrebuildifyModule(cacheKey)) ||
+ return
(await this.findPrebuildInstallModule(cacheKey)) ||
(await this.rebuildNodeGypModule(cacheKey));
}
diff --git a/node_modules/electron-rebuild/lib/src/module-walker.js b/node_modules/electron-rebuild/lib/src/module-walker.js
index b36e35c..09c6d03 100644
--- a/node_modules/electron-rebuild/lib/src/module-walker.js
+++ b/node_modules/electron-rebuild/lib/src/module-walker.js
@@ -57,6 +57,7 @@ class ModuleWalker {
return;
}
d('exploring', modulePath);
+
let childPackageJson;
try {
childPackageJson = await (0, read_package_json_1.readPackageJson)(modulePath, true);
diff --git a/node_modules/electron-rebuild/lib/src/rebuild.js b/node_modules/electron-rebuild/lib/src/rebuild.js
index 41e3a3e..3f63287 100644
--- a/node_modules/electron-rebuild/lib/src/rebuild.js
+++ b/node_modules/electron-rebuild/lib/src/rebuild.js
@@ -101,6 +101,7 @@ class Rebuilder {
await this.moduleWalker.findAllModulesIn(nodeModulesPath);
}
for (const modulePath of this.moduleWalker.modulesToRebuild) {
+ await this.rebuildModuleAt(modulePath)
this.rebuilds.push(() => this.rebuildModuleAt(modulePath));
}
this.rebuilds.push(() => this.rebuildModuleAt(this.buildPath));
@@ -117,6 +118,7 @@ class Rebuilder {
if (!(await fs.pathExists(path.resolve(modulePath, 'binding.gyp')))) {
return;
}
+
const moduleRebuilder = new module_rebuilder_1.ModuleRebuilder(this, modulePath);
this.lifecycle.emit('module-found', path.basename(modulePath));
if (!this.force && await moduleRebuilder.alreadyBuiltByRebuild()) {

0 comments on commit ae6c130

Please sign in to comment.