-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
80 lines (75 loc) · 2.61 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import sys
from cx_Freeze import Executable, setup
base = 'Win32GUI' if sys.platform == 'win32' else None
options = {
'build_exe':
{
'includes': 'atexit',
'packages': ['requests', 'idna', 'timeago', 'sqlalchemy'],
'excludes': [],
'include_msvcr': True,
},
'bdist_mac':
{
'iconfile': 'dist/app.icns',
'custom_info_plist': 'dist/mac.plist',
},
'bdist_dmg':
{
'applications_shortcut': True,
'volume_label': 'ContentBlockchainProject Demo',
},
'bdist_msi':
{
'data':
{
'Shortcut': [
("DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
"Content Blockchain 2", # Name
"TARGETDIR", # Component_
"[TARGETDIR]coblo2.exe", # Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
),
("StartupShortcut", # Shortcut
"StartupFolder", # Directory_
"Content Blockchain 2", # Name
"TARGETDIR", # Component_
"[TARGETDIR]coblo2.exe", # Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
),
]
}
}
}
executables = [
Executable(
'main.py',
base=base,
initScript=None,
icon='app.ico',
targetName='coblo2.exe',
shortcutName='Content Blockchain 2',
shortcutDir='DesktopFolder',
copyright='Copyright (C) 2018 The Content Blockchain Project',
)
]
setup(
name='Coblo2',
version='1.0.2',
description='Content Blockchain Demo 2',
options=options,
executables=executables
)