-
Notifications
You must be signed in to change notification settings - Fork 15
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
Adds install script for Electron compatibility #31
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Helps with BlueBubblesApp
Hi @Helvio88 what are the next steps? Not hugely required right now since I can patch it in, but just curious |
Have been using in an Electron app without this patch btw. |
@KishanBagaria, Are you using Electron Builder? If so, what version? |
Yep, been working fine with the latest over the past two years. What do you see? |
@KishanBagaria this is the output when I try to build my Electron app (without the patched package.json):
|
I've been using yarn which may have different behavior. You could also try upgrading npm, node and electron-builder (atm I'm on node v16.15.0, electron-builder v23.0.6, yarn v3.) |
I'm also using yarn, just yarn 1.22.4, however, I wouldn't think that's the issue, but possibly... I'm just hesitant to use yarn v2 or 3 because technically they aren't "stable", right? |
Iirc yarn v1 worked too earlier then we moved to v2/v3. node-mac-contacts is built on NAPI which doesn't require rebuilding. We've been rebuilding native deps by passing the -o flag, like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be necessary - this should work as a function of ensuring correct electron-packager
/electron-builder
& package manager settings.
Ok, let me reconfigure electron build and see if I can bypass needing this. Thanks @KishanBagaria for the sample |
Removing Edit 1: Never-mind, it didn't fix the issue as the issue seems to lie in using electron-builder to build my app. Edit 2: Electron builder will automatically rebuild all native dependencies when |
Without this, building an Electron app will fail