如何在 Mac 上使用 Nuitka 从 python 创建“.app”

Dan*_*Dan 5 python software-distribution nuitka

第一次在 macOS (10.14) 上尝试 Nuitka。

我做了python3 -m nuitka --standalone hello.py(也试过--clang

结果是一个奇怪的hello.dist文件夹——它甚至没有在 Finder 中显示为文件夹——它包含一堆.so文件,Python以及我的可执行文件hello.

我以为它会创建一个.app捆绑包?还有一步吗?

(我也试过https://sveinbjorn.org/platypus但这并不能真正编译 python。)

sht*_*osh 1

尝试:

python3 -m nuitka --standalone --macos-create-app-bundle hello.py