-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
59 lines (51 loc) · 1.73 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
import cx_Freeze
import os
os.environ['TCL_LIBRARY'] = "C:\\Users\\Huynh\\AppData\\Local\\Programs\\Python\\Python36\\tcl\\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\\Users\\Huynh\\AppData\\Local\\Programs\\Python\\Python36\\tcl\\tk8.6"
shortcut_table = [
("DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
"Travel Egypt", # Name
"TARGETDIR", # Component_
"[TARGETDIR]Travel Egypt.exe", # Target
None, # Arguments
None, # Description
None, # Hotkey
"icon.ico", # Icon
None, # IconIndex
False, # 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}
# executables = [cx_Freeze.Executable("main.py")]
executables = [cx_Freeze.Executable("play.py",
targetName="Travel Egypt.exe",
icon="icon.ico"
)
]
cx_Freeze.setup(
name="Travel Egypt",
options={
"build_exe": {
"packages":
["pygame"],
"include_files":
["game.py",
"character.py",
"configs.py",
"Levels.py",
"map.py",
"Level",
"Map",
"Sound"
]
},
"bdist_msi":
bdist_msi_options
},
executables = executables
)