Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.28 KB

BUILDING_EXECUTABLE.rst

File metadata and controls

42 lines (24 loc) · 1.28 KB

Creating the Executable

For Debain/Ubuntu based systems

  1. I used pyinstaller to create the executable.

After installing it and adding the changes. Inside the spaceShooter directory, simply run the command

$ pyinstaller --onefile --windowed spaceShooter.py

This will create an executable and place it inside the directory dist

  1. Place the folders assets and sounds together with the excutable inside a single folder and zip it.

For example for v0.0.2

$ ls spaceShooter/
assets  BUILDING_EXECUTABLE.rst  CONTRIBUTING.rst  LICENSE.txt  README.md  sounds  spaceShooter
$ zip -r spaceShooter-v0.0.2_linux.zip spaceShooter/

For Windows based systems

  1. cx_freeze was used to create the excutable for Windows based systems
  2. Use the setup.py file for building the executable.
  3. Go to the directory spaceShooter and then run the command
$ python setup.py build

This will create a new folder inside spaceShooter.

  1. Rename it and zip that file