What's the easiest way to distribute a PyQt6 app for multiple OS?
-
Hi,
Yes but be aware that you cannot virtualize macOS on non Apple hardware.
-
@SGaist actually you can, but it will be a pain.
@Mizmas, I faced the same question some time ago. I still haven't found the best answer for it but may solution is a package distribution via PyPi - i.e. application is distributed as a python package.
(Python packages were not supposed to be used this way so it gave me some challenges to have a right files and directlry structure, but overall it works fine).
Yes, my users should install Python by themselves and be able to runpip
command, but other things works more or less fine with this setup. I.e. all you need is to runpip install app-name
command and it will download and install application and all dependencies. -
@StarterKit it's a pain and currently not legal, so better avoid.
As for asking users to install Python on their system, it's likely not the target audience so it might not be an option at all.
-
@SGaist said in What's the easiest way to distribute a PyQt6 app for multiple OS?:
it's a pain and currently not legal, so better avoid.
Older versions are quite easy (on Linux): https://github.com/myspaghetti/macos-virtualbox. Legality is at least a grey area if not entirely forbidden (depending on your country).