dangerzone/setup-windows.py
jkarasti ed2791bbbc
Revert: "fix win build failure due to package autodiscovery"
This reverts commit 4d9f729654.

The error described in #178 doesen't happen anymore so this workaround is not needed.
2024-10-30 17:41:15 +02:00

32 lines
947 B
Python

#!/usr/bin/env python3
from cx_Freeze import Executable, setup
with open("share/version.txt") as f:
version = f.read().strip()
setup(
name="dangerzone",
version=version,
# On Windows description will show as the app's name in the "Open With" menu. See:
# https://github.com/freedomofpress/dangerzone/issues/283#issuecomment-1365148805
description="Dangerzone",
options={
"build_exe": {
"packages": ["dangerzone", "dangerzone.gui"],
"excludes": ["test", "tkinter"],
"include_files": [("share", "share"), ("LICENSE", "LICENSE")],
"include_msvcr": True,
}
},
executables=[
Executable(
"install/windows/dangerzone.py",
base="Win32GUI",
icon="share/dangerzone.ico",
),
Executable(
"install/windows/dangerzone-cli.py", base=None, icon="share/dangerzone.ico"
),
],
)