dangerzone/setup-windows.py
deeplow 0ab9f42dd9
Windows: fix "Open with" dialog showing dz description
The "open with" dialog on windows was showing the description of
Dangerzone instead of its app name. The issue was that on windows it
shows the description there.

Fixes #283
2023-01-16 11:38:08 +00:00

36 lines
1,001 B
Python

#!/usr/bin/env python3
import os
from cx_Freeze import Executable, setup
with open("share/version.txt") as f:
version = f.read().strip()
packages = ["dangerzone", "dangerzone.gui"]
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",
packages=packages,
options={
"build_exe": {
"packages": packages,
"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"
),
],
)