-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error: 'windows.h' file not found on macOS when using electron-rebuild to rebuild native-reg in Electron apps #35
Comments
Thanks for the report. This has gone back and forwards a bit, ideally there simply isn't any build or source files in the package as we can feasibly prebuild them for every platform supported by Windows, since this is N-API so there's no reason to rebuild it. I'll have to refresh myself to make sure I'm not breaking any of these earlier changes, but your suggested change looks good. I'm certainly happy to publish it as a |
Hi @simonbuchan I'm using |
|
The same issue on the latest version |
Right, looks like 1.1.0 restored |
Ok I've published 1.1.1 with your |
Hi @simonbuchan, |
Good to hear! I'm mark it as |
Hi,
native-reg
in ourElectron
project inWindows
OS versions only, while we don't use it inmacOS
versions.Electron-builder
now is usingelectron-rebuild
to rebuild the native dependencies (fix: Migrate to electron-rebuild for handling native dependencies electron-userland/electron-builder#7196), but when re-buildingnative-reg
, Here is the error I got:Windows
OS only, here is the fix that needs to add tobinding.gyp
file:binding.gyp
file should be something like this:Thanks a lot!
The text was updated successfully, but these errors were encountered: