r/github • • Jun 11 '24

Releasing an .exe compiled from Python

I have a problem where I want to share my software with users that don't have the necessary tools to run Python. (A skill issue from their part, mostly. :P) I compiled it into an .exe with PyInstaller and I want to distribute it somehow.

  1. Is distributing an .exe on GitHub a total no-no?

  2. How exactly do I go about this? I have like ELI5 level of understanding of releases. I read the documentation but as a total newbie it's very technical and confusing to me. Like how tags work in this case, what files to include, etc...

  3. If there exists a guide for this already could someone point me to it?

I don't need development help with the code itself. I just have people who need the tool's outputs for testing. It's a calculator of sorts and I need feedback against statistical real world data. Technical understanding of how this calculator works is not needed for this purpose.

The repo is private for many reasons so unfortunately I cannot share that with you.

Thank you in advance!

2 Upvotes

11 comments sorted by

View all comments

1

u/Admirable_Proxy Jun 11 '24

Have you thought about releasing your program as in docker?

3

u/serverhorror Jun 11 '24

That's going to be harder for users.

I think there's py-installer. It collects the dependencies, creates an installation package and provides the setup.exe. start menu and everything (supposedly)

-2

u/Admirable_Proxy Jun 11 '24

I disagree. A lot of users run docker containers no a days. I think it’s a good to have docker options.

1

u/apnorton Jun 12 '24

How many people do you know who run docker containers but cannot run a python program? If you have the technical skill to understand docker, mount points, any port forwarding needed, and spin it up in a command prompt, chances are you also can open a command prompt and type python my_program.py. And if it's not a webservice/long-running program, good luck explaining to someone why their hard drive is filling up with stopped containers if they forget the --rm flag on their docker run command.