-
Notifications
You must be signed in to change notification settings - Fork 1
/
cx_setup.py
49 lines (42 loc) · 1.12 KB
/
cx_setup.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import sys
import cx_Freeze as cx
from setup import setup_args
build_exe_options = {
"packages": ["os", "numpy", "pyqtgraph", "PySide2"],
"includes": "cProfile",
"excludes": ["tkinter", "PyQt5", "PyQt4", "pyqtgraph.examples"],
}
shortcut_table = [
(
"DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
"Gruseloskop", # Name
"TARGETDIR", # Component_
"[TARGETDIR]gruseloskop.exe", # Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
"TARGETDIR", # WkDir
),
]
msi_data = {"Shortcut": shortcut_table}
bdist_msi_options = {"data": msi_data}
base = None
if sys.platform == "win32":
base = "Win32GUI"
cx.setup(
**setup_args,
options={"build_exe": build_exe_options, "bdist_msi": bdist_msi_options},
executables=[
cx.Executable(
"bin/gruseloskop",
targetName="gruseloskop.exe",
shortcutName="Gruseloskop",
shortcutDir="StartMenuFolder",
base=base,
)
]
)