In order to provide a simple way of running the spectator without having to install Python, releases as standalone executables can be found under releases.
Make you sure you have all dependencies (see requirements.txt) as well as pyinstaller and pyinstaller-versionfile installed, before you run the build command.
First, generate a version file.
create-version-file.exe versionfile.yaml --outfile versionfile
Then, run the following command to build the executable.
pyinstaller.exe .\BF2AutoSpectator\spectate.py --onefile --clean --name="BF2AutoSpectator" --add-data="pickle/*.pickle;pickle/" --add-data="redist/*.exe;redist/" --version-file="versionfile"
This will create a BF2AutoSpectator.exe in .\dist.