prebuild icon indicating copy to clipboard operation
prebuild copied to clipboard

Include files not located inside build directory

Open jonathan-roy opened this issue 6 years ago • 2 comments

Hi,

How is it possible to include in the prebuilt output some files that are not located in the build directory? I am using the following structure:

  • build: node-gyp output.
  • lib: directory containing some shared libraries required by the addon.node.

When I prebuild, even if I pass --include-dir '\\.(node|dylib)$' the prebuilt output only contains the .node file.

jonathan-roy avatar Jan 18 '19 10:01 jonathan-roy

Is it possible for you to move or copy lib/ into build/? Because prebuild >= 8.2.0 recursively collects artifacts in the build/ folder (#238). With a matching --include-dir option you should then be able to include your shared libraries.

vweevers avatar Mar 03 '19 11:03 vweevers

I also have the same problem while building node-pty fro windows is not packing winpyt.exe

akarsh42 avatar Mar 16 '20 06:03 akarsh42