简体   繁体   English

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

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM