tursodatabase / tursodatabase/libsql-client-ts

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

Open
#224 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
576
Forks
69
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ARM Electron build for Beekeeper Studio and observing which darwin packages yarn installs. The issue is resolved when an ARM64 build can install both darwin-arm64 and darwin-x86_64 packages, or when the supported way to produce both builds is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
build-system, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.