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

Two native modules have the same architectures (x86_64) and can't be in the same fat output file error #7155

Closed
harlandjp opened this issue Sep 24, 2022 · 7 comments

Comments

@harlandjp
Copy link

harlandjp commented Sep 24, 2022

  • Electron-Builder Version: 23.5.1
  • Node Version: v16.17.0
  • Electron Version:20.0.2
  • Electron Type (current, beta, nightly): current
  • Target: MacOS universal

I'm trying to package my app with a npm package (active-win) that includes a native universal module, but I get the following error:

node_modules/active-win have the same architectures (x86_64) and can't be in the same fat output file

Looking around, it seems this has been addressed in @electron/universal's latest version, which electron-builder doesn't use yet. Can you update the dependency please?

@mmaietta
Copy link
Collaborator

mmaietta commented Oct 7, 2022

x64ArchFiles is already supported in electron-builder: https://www.electron.build/configuration/mac

@mmaietta mmaietta closed this as completed Oct 7, 2022
@cyspath
Copy link

cyspath commented Dec 8, 2022

@harlandjp were you able to get it to work with x64ArchFiles? I tried this flag yet builder still tries to bundle it

@pantelispanayiotou
Copy link

pantelispanayiotou commented Feb 13, 2023

Running in to the same issue. I am not able to use the flag cause electron builder 23.6.0 support it but it references an older version of electron universal. Are there any workarounds? We can't use an alpha build.

@mmaietta
Copy link
Collaborator

Alpha build should be promoted to regular in the near future.

My main concern (and reason for long alpha cycle) was regarding some changes to electron-updater, specifically changes that added rpm/deb auto-update support - it consolidated spawn logic that is also used by AppImages and NSIS. Latest alpha release resolves related electron-updater issue: #7393

Unfortunately, due to the way changesets work, both electron-updater and electron-builder alpha states are "linked"

@idevelop
Copy link

@mmaietta any update on promoting the alpha build to production?

@mmaietta
Copy link
Collaborator

Out of curiosity, 24.4.0 is next, not specifically latest tag. Do you need it as latest?

Can bump it to latest easily, I honestly forgot lost track of this request

@mmaietta
Copy link
Collaborator

Done

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

5 participants