+ 2

Convert Python webview app into exe with cx_freeze.

I have python app made using pywebview I want to to freeze this app into an exe using cx_freeze. I am not using PyInstaller as I am facing a could not execute script error. Everything is working fine with cx_freeze but my problem is that I don't want the console window to pop up. I changed the base to Win32GUI but the webview content is not showing, only a blank window with the given size(properties like confirm close, resizable are working). Also, I want a single file, and not 30-40 files. Further, the icon is not showing.

8th Nov 2019, 12:02 PM
Arnesh
Arnesh - avatar
2 odpowiedzi
+ 2
Thanks but I tried changing the base but as I mentioned, the webview window became blank.
9th Nov 2019, 3:33 PM
Arnesh
Arnesh - avatar
0
To prevent the terminal window from popping up, check this post: https://stackoverflow.com/questions/29650935/cx-freeze-help-is-there-a-way-to-not-make-console-open The other question "cx_Freeze does not support building a single file exe" But there may be some workarounds (single installer file), read on here: https://cx-freeze.readthedocs.io/en/latest/faq.html#single-file-executables
8th Nov 2019, 12:36 PM
Tibor Santa
Tibor Santa - avatar