GithubHelp home page GithubHelp logo

Comments (10)

LxHTT avatar LxHTT commented on May 23, 2024

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

乱讲

from mcsl2.

ghostflyby avatar ghostflyby commented on May 23, 2024

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

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

from mcsl2.

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

from mcsl2.

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

from mcsl2.

LxHTT avatar LxHTT commented on May 23, 2024

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

from mcsl2.

LxHTT avatar LxHTT commented on May 23, 2024

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

我现在马上找人问

from mcsl2.

LxHTT avatar LxHTT commented on May 23, 2024

把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

from mcsl2.

LxHTT avatar LxHTT commented on May 23, 2024

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

from mcsl2.

ghostflyby avatar ghostflyby commented on May 23, 2024

仍然无法工作。

from mcsl2.

LxHTT avatar LxHTT commented on May 23, 2024

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

from mcsl2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.