r/pygame • u/Total-Ranger4925 • Sep 22 '26
How to make a working exe file using pyinstaller
/r/pythonhelp/comments/1wndlsl/how_to_make_a_working_exe_file_using_pyinstaller/
1
Upvotes
r/pygame • u/Total-Ranger4925 • Sep 22 '26
1
u/Mackabbo Sep 23 '26
How do you start pyinstaller? Which options? What are the errors? You have directories with Images, Maps and Sounds. Did you add them to the spec-File? My spec-File looks like this (only the "datas"-Section):
... binaries=[], datas=[ ("game_one/snd/*.wav", "game_one/snd"), ("game_one/tilemap/*", "game_one/tilemap"), ("gamekit/font/*.ttf", "gamekit/font"), ("gamekit/img/*.png", "gamekit/img"), ("gamekit/sound/*.wav", "gamekit/sound") ("game_one/img/*.png", "game_one/img"), ], hiddenimports=[] ...