[英]Build a .dmg file from .py using pyinstaller on windows?
I have to build a python app for a MacOS user and I'm using Windows. 我必须为MacOS用户构建一个python应用程序,并且正在使用Windows。 I saw that using pyinstaller you can build .app files, but how do I do that on Windows?
我看到使用pyinstaller可以构建.app文件,但是如何在Windows上执行呢?
As Pyinstaller's docs states: 如Pyinstaller的文档所述:
PyInstaller is tested against Windows, Mac OS X, and GNU/Linux.
PyInstaller已针对Windows,Mac OS X和GNU / Linux进行了测试。 However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows;
但是,它不是交叉编译器:要制作Windows应用程序,请在Windows中运行PyInstaller。 to make a GNU/Linux app you run it in GNU/Linux, etc. PyInstaller has been used successfully with AIX, Solaris, and FreeBSD, but is not tested against them.
要创建GNU / Linux应用程序,请在GNU / Linux等环境中运行它。PyInstaller已成功与AIX,Solaris和FreeBSD结合使用,但尚未针对它们进行测试。
This means you can't by only using Pyinstaller. 这意味着您不能仅使用Pyinstaller。 You can try using something like a virtual machine, or containers, and use the common way (
pyinstaller <script>.py
) to do this 您可以尝试使用虚拟机或容器之类的东西,并使用常见方式(
pyinstaller <script>.py
)执行此操作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.