diff --git a/setup-windows.py b/setup-windows.py index ac5331a..f96fda2 100644 --- a/setup-windows.py +++ b/setup-windows.py @@ -13,7 +13,11 @@ setup( description="Dangerzone", options={ "build_exe": { - "packages": ["dangerzone", "dangerzone.gui"], + # Explicitly specify pymupdf.util module to fix building the executables + # with cx_freeze. See https://github.com/marcelotduarte/cx_Freeze/issues/2653 + # for more details. + # TODO: Upgrade to cx_freeze 7.3.0 which should include a fix. + "packages": ["dangerzone", "dangerzone.gui", "pymupdf.utils"], "excludes": ["test", "tkinter"], "include_files": [("share", "share"), ("LICENSE", "LICENSE")], "include_msvcr": True,