forked from PyPoS/PyPoS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_2.py
44 lines (40 loc) · 1.29 KB
/
setup_2.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
from cx_Freeze import *
includefiles=["win32api.pyd","smaple.exe,"favicon.ico","pythoncom27.dll","pywintypes27.dll”,"images/cream_dust.png "]
excludes=[]
packages=[]
base = None
if sys.platform == "win32":
base = "Win32GUI"
shortcut_table = [
("DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
"Tool", # Name
"TARGETDIR", # Component_
"[TARGETDIR]\sample.exe",# Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
None, # 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}
setup(
version = "0.1",
description = "Demo Tool",
author = "Ashish",
name = "Demo Tool",
options = {'build_exe': {'include_files':includefiles}, "bdist_msi": bdist_msi_options,},
executables = [
Executable(
script="sample.py",
base=base,
icon='favicon.ico',
)
]
)