helloparthshah / StadiaWireless

Stadia Wireless enables you to use your stadia controller wirelessly. Not just with stadia, but with any game.
MIT License
447 stars 26 forks source link

How do I build this? #26

Closed flayman closed 1 year ago

flayman commented 1 year ago

I've tried to make a distribution using pyinstaller, but I can't get it working. I wanted to set the port number for the server. Could you please explain how making a binary release works? Alternatively, it would be nice if the port number was configurable instead of random.

helloparthshah commented 1 year ago

I used Auto PY to EXE to generate the release you'll need to add the static, templates and vgamepad folders as additional folders. image The command it generated is pyinstaller --noconfirm --onedir --windowed --icon "D:/Projects/pythonProjects/StadiaWireless/logo.ico" --add-data "D:/Projects/pythonProjects/StadiaWireless/static;static/" --add-data "D:/Projects/pythonProjects/StadiaWireless/templates;templates/" --add-data "D:/Projects/pythonProjects/StadiaWireless/vgamepad;vgamepad/" "D:/Projects/pythonProjects/StadiaWireless/server.py"

flayman commented 1 year ago

Thank you. This is very good information. Might I suggest you make this part of the documentation?

helloparthshah commented 1 year ago

Updated the readme to include the pyinstaller commands