Fix: Error with cx_freeze when building the windows executables

This commit is contained in:
jkarasti 2024-10-28 21:19:00 +02:00 committed by Alex Pyrgiotis
parent ed2791bbbc
commit 95d7d8a4d9
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -13,7 +13,11 @@ setup(
description="Dangerzone", description="Dangerzone",
options={ options={
"build_exe": { "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"], "excludes": ["test", "tkinter"],
"include_files": [("share", "share"), ("LICENSE", "LICENSE")], "include_files": [("share", "share"), ("LICENSE", "LICENSE")],
"include_msvcr": True, "include_msvcr": True,