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

BUG|Nuitka在macOS平台打包不正常 #32

Closed
2 tasks done
LxHTT opened this issue Mar 28, 2023 · 10 comments
Closed
2 tasks done

BUG|Nuitka在macOS平台打包不正常 #32

LxHTT opened this issue Mar 28, 2023 · 10 comments
Labels
· 程序Bug 需要修复的程序错误! ❌忽略 永远不会解决这个问题/没能力解决

Comments

@LxHTT
Copy link
Collaborator

LxHTT commented Mar 28, 2023

  • 并非电脑自身造成
  • MCSL 2 运行在受官方支持的平台上

一般要素

问题描述

macOS没一个能用的版本

复现

每个都不行。

可能的解决方案(?)

不知道,需要测试,大众协助解决

@LxHTT LxHTT added · 程序Bug 需要修复的程序错误! · 功能建议 新功能建议/新平台适配等 ❓需要测试 需要大众测试/需要更多人手 labels Mar 28, 2023
@LxHTT LxHTT changed the title BUG|需对macOS进行特殊适配 需对macOS进行特殊适配 Mar 28, 2023
@LxHTT
Copy link
Collaborator Author

LxHTT commented Apr 5, 2023

有没有一种可能MacOS上是不支持Qt的,需要用到Object-C?(我啥也不知道

乱讲

@ghostflyby
Copy link

如果测试环境没问题,那就是打包流程的问题,我已经发现的如下:

  1. macOS 目前没有任何 32 位环境受支持,已发布的 32 位和 64 位的包事实上也都是 64 位 intel
  2. 缺失 Apple Silicon 支持
  3. 可执行文件甚至没有可执行权限
  4. 打包后的 App 不符合 App Bundle 的结构

@LxHTT
Copy link
Collaborator Author

LxHTT commented Apr 6, 2023

  • 那就可以直接删掉32位mac支持了(
  • Apple Silicon还是得后期多适配,还得考虑兼容性/转译性能(可能) 的问题
  • 既然问题大概率出现在打包,我就得找一些更懂Nuitka打包的人了

@ghostflyby
Copy link

  • 根据我的测试(file MCSL2),目前 Action 打包出来的所有所谓 32 位包实际都是 64 位的
  • 根据我的本机(Apple Silicon)打包结果,显然 nuitka 没有正确处理 bundle 目录结构,与 release 里面的包一致。而根据 nuitka3 —help,它对 Mac App 的支持是实验性的。
  • nuitka 的打包结果架构默认取决于 python 架构
  • 额外的,即使是手动运行 macOS 下 dist 目录的二进制,也会报错 segment fault 无法启动

@LxHTT
Copy link
Collaborator Author

LxHTT commented Apr 6, 2023

也就是说Nuitka无法正常打包macOS版本吧(

@LxHTT
Copy link
Collaborator Author

LxHTT commented Apr 6, 2023

也就是说Nuitka无法正常打包macOS版本吧(

我现在马上找人问

@LxHTT
Copy link
Collaborator Author

LxHTT commented Apr 6, 2023

把GH Actions有关的代码放在这里:

  - name: Build Executable on macOS
    if: runner.os == 'macOS'
    run: >
      python -m nuitka
      --standalone
      --enable-plugin=pyqt5
      --onefile
      --output-dir=build
      --assume-yes-for-download
      --disable-console
      --macos-app-mode=gui
      --macos-app-icon=MCSL2.ico
      --company-name="LxHTT"
      --product-name="MCSL 2"
      --file-version=2.0.0
      --macos-app-version=2.0.0
      --file-description="MC Server Launcher 2"
      --macos-create-app-bundle
      MCSL2.py

@LxHTT LxHTT changed the title 需对macOS进行特殊适配 BUG|Nuitka在macOS平台打包不正常 Apr 6, 2023
@LxHTT LxHTT removed the · 功能建议 新功能建议/新平台适配等 label Apr 16, 2023
@LxHTT
Copy link
Collaborator Author

LxHTT commented May 13, 2023

需要人手测试最新Release的macOS版本能否运行!

@ghostflyby
Copy link

仍然无法工作。

@LxHTT
Copy link
Collaborator Author

LxHTT commented Aug 25, 2023

由于插件系统的限制,macOS不会提供打包,需要手动下载源代码运行。

@LxHTT LxHTT closed this as completed Aug 25, 2023
@LxHTT LxHTT added ❌忽略 永远不会解决这个问题/没能力解决 and removed ❓需要测试 需要大众测试/需要更多人手 labels Aug 25, 2023
@shenjackyuanjie shenjackyuanjie pinned this issue Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· 程序Bug 需要修复的程序错误! ❌忽略 永远不会解决这个问题/没能力解决
Projects
None yet
Development

No branches or pull requests

2 participants