-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
有 Mac 的 ARM 版本吗?两个 dmg 和 .zip 有什么区别? #14
Comments
没有区别,根据我在多台Arm64机器上的测试,chatbox是可以在两种架构上运行,我暂时也不知道什么原因,我也是第一次使用electron。你也可以下载试一下,应该是可以正常使用的。 |
x64 架构可以在M1、M2 上无障碍运行,但性能会打折扣。我问了下 Ai 获得这样的回答: Electron 怎样编译 macOS Universal APP?
|
我也问过了,发现AI在 electron 上很多时候会给一些错误的回答,让我走了不少弯路😹 我是在 x64架构的机器上,用electeon-forge编译的arm64,但是实际测试在m1的机器上完全无法打开 |
So "chatbox_0.2.0_x64.dmg" was compiled on Intel-chip Mac OS? Is it possible to compile on Apple-silicon Mac OS and distribute the executable? Thanks |
@smutao You can download and try it out. In my personal usage, I have found that the x64 installation package is also compatible with Apple Silicon Mac OS. |
看到作者迁移到 tauri 了,应该可以试试编译通用版了吧。x64 虽然跑是能跑,但毕竟性能比起 ARM64 肯定是会差不少的。
While Apple silicon machines can run applications compiled for Intel-based Macs through a translation layer called Rosetta, this leads to a reduction in performance due to processor instruction translations. It is common practice to let the user choose the correct target when downloading the app, but you can also choose to distribute a Universal Binary. Universal Binaries include both aarch64 and x86_64 executables, giving you the best experience on both architectures. Note, however, that this increases your bundle size significantly. |
看到 Mac 有两个版本,具体是什么区别??
chatbox-0.0.7.dmg
chatbox-darwin-0.0.7.zip
我原以为是 Intel 和 ARM64 的区别,但实测下来两个版本进程都是显示 Intel。
没玩过 Electron,不知道是不是可以生成 universal 的APP?
The text was updated successfully, but these errors were encountered: