forked from freedomofpress/dangerzone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-windows.py
32 lines (29 loc) · 947 Bytes
/
setup-windows.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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"
),
],
)