Adds install script for Electron compatibility#31
Adds install script for Electron compatibility#31zlshames wants to merge 1 commit intocodebytere:mainfrom
Conversation
|
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 |
codebytere
left a comment
There was a problem hiding this comment.
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