Build a .dmg file from .py using pyinstaller on windows?

依然范特西╮ 提交于 2021-01-29 05:53:16

问题


I have to build a python app for a MacOS user and I'm using Windows. I saw that using pyinstaller you can build .app files, but how do I do that on Windows?


回答1:


As Pyinstaller's docs states:

PyInstaller is tested against Windows, Mac OS X, and GNU/Linux. However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows; 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.

This means you can't by only using Pyinstaller. You can try using something like a virtual machine, or containers, and use the common way (pyinstaller <script>.py) to do this



来源:https://stackoverflow.com/questions/57560284/build-a-dmg-file-from-py-using-pyinstaller-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!