pyinstaller 不输出 .app

pyinstaller not outputting .app

我是运行指挥pyinstaller --onefile --windowed /myapp.py。根据文档,这应该输出 windows 的可执行文件以及 MacOS 的 .app。但是,我只得到一个输出,而不是 .app.

他们并没有在网站上明确说明这一点,但是 from the docs:

If you need to distribute your application for more than one OS, for example both Windows and Mac OS X, you must install PyInstaller on each platform and bundle your app separately on each.

所以您需要将其打包到 Mac,抱歉。