Convert Python webview app into exe with cx_freeze. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 - avatar
2 ответов
+ 2
Thanks but I tried changing the base but as I mentioned, the webview window became blank.
9th Nov 2019, 3:33 PM
Arnesh - avatar
To prevent the terminal window from popping up, check this post: 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:
8th Nov 2019, 12:36 PM
Tibor Santa
Tibor Santa - avatar