Skip to content
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

How to force yarn install to install both darwin-x64 and darwin-arm64 on ARM Electron build? #224

Open
rathboma opened this issue Jun 14, 2024 · 1 comment

Comments

@rathboma
Copy link

Hi team,

I use electron-builder to build Beekeeper Studio. I just announced LibSQL compatibility but had to take it back because it broke my x64 Mac builds.

In electron, it's common practice to use an ARM64 Mac to build BOTH arm and x64 versions of the app. In fact you can also build a single universal binary.

However when I do this, only the darwin-arm64 package is installed, not the darwin-x86_64 package.

Is there a way to properly force both?

@rphlmr
Copy link

rphlmr commented Jul 3, 2024

@rathboma Not 100% sure it is a best practice but I do that on postinstall:

npm i --cpu x64 --os linux @libsql/client-linux@npm:@libsql/client --no-save

--cpu x64 --os darwin will download darwin-x64 build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants