Last active
August 23, 2023 03:03
-
-
Save terremoth/13d78ac7f93a37da35f6263cf43a949a to your computer and use it in GitHub Desktop.
Python pygame + tkinter to .exe with icon and not showing console (prompt) examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# suppose the main file to load is main.py and the icon file is called main.ico, the process is this: | |
python -m nuitka --enable-plugin=tk-inter --onefile --disable-console --windows-icon-from-ico=main.ico main.py | |
pyinstaller --onefile --icon=main.ico --noconsole main.py | |
cxfreeze -c main.py --icon=main.ico --base-name=Win32GUI --target-dir distcx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is supposed to work on windows, maybe on linux the command line params be different