From 95d7d8a4d9ad98c4408a4936e465e862cc971818 Mon Sep 17 00:00:00 2001 From: jkarasti Date: Mon, 28 Oct 2024 21:19:00 +0200 Subject: [PATCH] Fix: Error with cx_freeze when building the windows executables --- setup-windows.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,