[英]How to create an ".app" from python with Nuitka on Mac
First time trying Nuitka, on macOS (10.14).第一次在 macOS (10.14) 上尝试 Nuitka。
I did python3 -m nuitka --standalone hello.py
(also tried with --clang
)我做了
python3 -m nuitka --standalone hello.py
(也试过--clang
)
The result is a weird hello.dist
folder – which doesn't even appear as a folder in Finder – which contains a bunch of .so
files, Python
and my executable hello
.结果是一个奇怪的
hello.dist
文件夹——它甚至不会作为文件夹出现在 Finder 中——它包含一堆.so
文件、 Python
和我的可执行文件hello
。
I thought it would create an .app
bundle?我认为它会创建一个
.app
包? Is there another step?还有一步吗?
(I also tried https://sveinbjorn.org/platypus but that doesn't really compile the python.) (我也试过https://sveinbjorn.org/platypus但这并没有真正编译 python。)
Try:尝试:
python3 -m nuitka --standalone --macos-create-app-bundle hello.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.