-
-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathsetup_cx.py
More file actions
61 lines (54 loc) · 1.21 KB
/
Copy pathsetup_cx.py
File metadata and controls
61 lines (54 loc) · 1.21 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import sys
from cx_Freeze import Executable, setup
packages = [
"tkinter",
"PIL",
"pynput",
"pynput.keyboard",
"pynput.mouse",
]
if sys.platform == "linux":
packages += [
"pynput.keyboard._xorg",
"pynput.mouse._xorg",
"Xlib",
"Xlib.ext",
"Xlib.ext.xfixes",
"Xlib.ext.xtest",
"Xlib.ext.xinput",
"Xlib.keysymdef",
"Xlib.support",
"Xlib.support.unix_connect",
]
elif sys.platform == "win32":
packages += [
"pynput.keyboard._win32",
"pynput.mouse._win32",
]
packages += ["pystray"]
excludes = []
include_files = [
("src/assets", "assets"),
("src/langs", "langs"),
("src/hotkeys", "hotkeys"),
("src/macro", "macro"),
("src/utils", "utils"),
("src/windows", "windows"),
]
build_exe_options = {
"packages": packages,
"excludes": excludes,
"include_files": include_files,
}
target = Executable(
script="src/main.py",
base="gui" if sys.platform == "win32" else None,
target_name="PyMacroRecord",
icon="src/assets/logo.ico",
)
setup(
name="PyMacroRecord",
version="1.0",
options={"build_exe": build_exe_options},
executables=[target],
)