The included dist folders and .exe files are compiled using PyInstaller on Windows 11. To create an executable for another operating system perform the following steps on your machine:
- Make sure you have Python 3.11 installed
- Download the AuditoryLearning.py file as well as the control and resources files to a single filespace on your machine
- Using the terminal, either in an IDE or stand alone, install Python Arcade using the command
pip install arcade
on Mac and Linux - Next, install the packager using
pip install arcade pyinstaller
- Open the AuditoryLearning.py file in a text editor of your choice and make sure to comment out the variables following the comment
# Constants for number of different targets
and to uncomment the variables under the comment# Control constants
- Run the packager by running
PyInstaller AuditoryLearning.py --add-data "control:control"
in the terminal. - Once the package is made, rename the file and executable to include Control
- Revert the changes made in step 5
- Run the packager for the main version by running
PyInstaller AuditoryLearning.py --add-data "resources:resources"
in the terminal.