2020-07-16 17:21:23 +00:00
|
|
|
diff --git a/node_modules/node-gyp-build/index.js b/node_modules/node-gyp-build/index.js
|
2020-08-07 17:27:31 +00:00
|
|
|
index b5096ed..7cd451a 100644
|
2020-07-16 17:21:23 +00:00
|
|
|
--- a/node_modules/node-gyp-build/index.js
|
|
|
|
+++ b/node_modules/node-gyp-build/index.js
|
2020-07-13 17:03:37 +00:00
|
|
|
@@ -29,6 +29,9 @@ load.path = function (dir) {
|
|
|
|
if (process.env[name + '_PREBUILD']) dir = process.env[name + '_PREBUILD']
|
|
|
|
} catch (err) {}
|
|
|
|
|
|
|
|
+ // pkg fix: native node modules are located externally to the pkg executable
|
|
|
|
+ dir = dir.replace(/^\/snapshot\/.+?\/node_modules\//, path.dirname(process.execPath) + path.sep)
|
|
|
|
+
|
|
|
|
if (!prebuildsOnly) {
|
|
|
|
var release = getFirst(path.join(dir, 'build/Release'), matchBuild)
|
|
|
|
if (release) return release
|