简体   繁体   English

pyinstaller不输出.app

[英]pyinstaller not outputting .app

I am running the command pyinstaller --onefile --windowed /myapp.py . 我正在运行命令pyinstaller --onefile --windowed /myapp.py According to the docs, this should output executables for windows as well as .app for MacOS. 根据文档,这应该输出Windows的可执行文件以及MacOS的.app。 However, I am only getting one output and not the .app. 但是,我只得到一个输出,而不是.app。

They don't make this obvious from the website, but from the docs : 他们没有从网站上使这一点变得明显,而是从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. 如果您需要为多个操作系统(例如Windows和Mac OS X)分发应用程序,则必须在每个平台上安装PyInstaller并在每个平台上单独捆绑应用程序。

So you'll need to package it on a Mac, sorry. 因此,抱歉,您需要将其打包在Mac上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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