-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (36 loc) · 963 Bytes
/
setup.py
File metadata and controls
40 lines (36 loc) · 963 Bytes
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
33
34
35
36
37
38
39
40
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically included with cx_Freeze
# but we can specify additional packages here
build_exe_options = {
"include_files": [
("config", "config"),
("resources", "resources"),
("gui", "gui"),
("core", "core"),
("hooks", "hooks"),
],
"zip_exclude_packages": [
"PyQt6",
"qasync",
"serial",
"hidapi",
], # Keep GUI and hardware libs accessible
}
# GUI applications require a different base
base = "gui" if sys.platform == "win32" else None
executables = [
Executable(
"main.py",
base=base,
icon="resources/icon.ico",
target_name="X-Plane Dataref Bridge",
)
]
setup(
name="X-Plane Dataref Bridge",
version="1.0",
description="Hardware Interface for X-Plane Flight Simulator",
options={"build_exe": build_exe_options},
executables=executables,
)