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

m1 mac 上打包报错 have the same architectures (arm64) and can't be in the same fat output file #186

Open
yurnery opened this issue Dec 22, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@yurnery
Copy link

yurnery commented Dec 22, 2022

electron 上我使用 electron-builder 打了一个 universal 的包, "target": { "target": "dmg", "arch": "universal" } 打包的时候报了如下的错:
have the same architectures (arm64) and can't be in the same fat output file.

我看报错的是跟 node-screenshots 相关的, 我做了如下步骤

  1. 我把项目中依赖 node-screenshots 这个 package 的代码删了之后, 就可以打 universal 的包了;
  2. 我把 arch 改为 arm64 或者 x64, 也可以正常打包

是不是这个 package 少了什么东西, 还是需要做什么配置吗

image

@nashaofu
Copy link
Owner

node-screenshots 需要升级支持 universal

@nashaofu nashaofu added the bug Something isn't working label Apr 17, 2023
@nashaofu
Copy link
Owner

升级最新版本试试,支持了 universal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants