-2

Just finished making my first python game based on the space invaders game. Now I don't know exactly how to share it with my friends. I know that I should use py2app, but I haven't found good online instructions on how to do so.

This is how the project file looks like:

I'd appreciate it if someone could help me out.

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
arian_lrd
  • 13
  • 2
  • 3
    If they are your friends, encouraging them to get python and pygame is a friendly thing to do. As you have discovered, programming is fun. Why not share the joy? You can use the game as an incentive. – John Coleman Dec 03 '21 at 14:39

2 Answers2

1

pip install pyinstaller - this module can generate executables of python scripts.
Then simply run: pyinstaller main.py or whatever the main file is named and it will generate an executable including all needed modules (you can find the generated package in new created dist folder).

Alexandru DuDu
  • 998
  • 1
  • 7
  • 19
0

You can try using Py2exe, which, as the name suggests, compiles Python programs to an executable format.

Edit: Just noticed you were using MacOS, here is a Py2app tutorial instead.

Astro Orbis
  • 67
  • 2
  • 12