Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How to package a python tkinter app/game and upload it to itch?

A topic by BackSavageKid created Mar 21, 2023 Views: 472 Replies: 3
Viewing posts 1 to 2
(1 edit)

While I'm not new to development I am however new to sharing my creations, I want them to be easily downloadable without much issue on the users end while still being able to easily update it. for context, I have made a Python game using the customtkinter library. I figured out how to turn it into an exe file but there are dependencies it needs to run, how would I be able to package all that into one downloadable file as well as be able to easily update it if needed?

edit: the app is a game but this problem seems more general

That may depend on the particular tool you used to compile your executable. If you happened to use Pyinstaller, you can use the --onefile prefix when compiling on the command line.

unfortunatly --onefile does not work according to the customtkinter documentation. 

https://github.com/TomSchimansky/CustomTkinter/wiki/Packaging#windows-pyinstalle...

Hm, well --onedir appears to work. If you can pack all the dependencies into a single directory, then you can pack that into a zip file for distribution as well, then update the files in the zip as needed when updating.