simonbuchan / native-reg

Node addon (native) module to access windows registry in process.
MIT License
21 stars 10 forks source link

Update the prebuilt target from 8.12.0 to 14.17.0 #25

Closed bn3t closed 3 years ago

bn3t commented 3 years ago

When using this module inside an electron project with electron-forge (6.0.0-beta.61) using node 14.x, I was having issues with prebuilds.

 Uncaught Exception:
Error: No native build was found for platform= win32 arch=x64 runtime= electron abi= 89 uv=1 libc=glib node= 14.17.0 electron=14.0.1 webpack=true

The solution for me was to make native-reg build with the target 14.17.0:

 "build:x64": "prebuildify --napi --target node@14.17.0 --cwd binding --arch x64",

Would you agree to do this change? I can prepare a PR for this change.

simonbuchan commented 3 years ago

It's a bit confusing? I'm targeting N-API where the whole point is it's stable. I'd rather track down why electron-forge is rejecting it, otherwise this issue will probably just keep coming up (eg v16 just went LTS)

simonbuchan commented 3 years ago

Could you check if v0.3.6 in @next fixes this? I'm noticing I never released the fix for #23, which was pretty similar looking.

bn3t commented 3 years ago

Ah indeed, maybe my local build worked because I based it on master and not on the tag. I didn't realize it was not released.

Anyways, thanks for your support. It works.

Great project by the way, Well written and works like a charm.

simonbuchan commented 3 years ago

Really should have been released by now, so I went ahead and did so, if you would prefer not to have a @next tag.

Honestly, I'm not likely to do much to this without a major re-write at this point and it seems pretty well used, so really, I might as well bump this to 1.0.0 so people aren't scared off!

simonbuchan commented 3 years ago

Just to let you know, if you pull now, you will get the v1.0.0 publish. Only effective change is bumping the node-addon-api package, which technically makes the minimum node version v12.