MCSLTeam / MCSL2

MCSL2 | 一个简洁全能的Minecraft开服器
https://mcsl.com.cn
GNU General Public License v3.0
390 stars 41 forks source link

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

Closed LxHTT closed 1 year ago

LxHTT commented 1 year ago

一般要素

问题描述

macOS没一个能用的版本

复现

每个都不行。

可能的解决方案(?)

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

LxHTT commented 1 year ago

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

乱讲

ghostflyby commented 1 year ago

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

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

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

LxHTT commented 1 year ago

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

我现在马上找人问

LxHTT commented 1 year ago

把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 commented 1 year ago

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

ghostflyby commented 1 year ago

仍然无法工作。

LxHTT commented 1 year ago

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