+ 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.
2 ответов
+ 2
Thanks but I tried changing the base but as I mentioned, the webview window became blank.
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