-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (59 loc) · 2.07 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import sys
from cx_Freeze import setup, Executable
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
build_exe_options = {'include_files':[("icon.ico", "icon.ico"),]}
shortcut_table = [
("DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
"PflowQuiz", # Name
"TARGETDIR", # Component_
"[TARGETDIR]pflow_quiz.exe",# Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
0, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
),
("StartMenuShortcut", # Shortcut
"StartMenuFolder", # Directory_
"PflowQuiz", # Name
"TARGETDIR", # Component_
"[TARGETDIR]pflow_quiz.exe",# Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
0, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
)
]
# Now create the table dictionary
msi_data = {"Shortcut": shortcut_table}
# Change some default MSI options and specify the use of the above defined tables
bdist_msi_options = {'data': msi_data, 'install_icon': 'icon.ico'}
setup( name = "PflowQuiz",
version = "1.0",
author = "Edson Passos",
options = {
"build_exe": {
"include_files": ["icon.ico",]
},
"bdist_msi": bdist_msi_options,
},
executables = [
Executable(
"pflow_quiz.py",
base=base,
shortcutName="PflowQuiz",
shortcutDir="DesktopFolder",
icon="icon.ico",
)
]
)