This repository was archived by the owner on Dec 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_msi.py
More file actions
65 lines (56 loc) · 1.39 KB
/
setup_msi.py
File metadata and controls
65 lines (56 loc) · 1.39 KB
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
from cx_Freeze import setup, Executable
from dragonlog.DragonLog import __prog_name__, __prog_desc__, __author_name__, __copyright__
base = 'Win32GUI'
build_exe_options = {
'packages': ['dragonlog'],
'excludes': [
'tkinter',
'unittest',
'cv2',
'pyzbar',
],
'zip_include_packages': ['encodings']
}
msi_data = {
'ProgId': [
(__prog_name__, None, None, __prog_desc__, 'IconId', None),
],
'Icon': [
('IconId', 'dragonlog/icons/logo.ico'),
],
}
msi_sum = {
'author': __author_name__,
'comments': __prog_desc__,
'keywords': 'Logging',
}
msi_ext = [
{
'extension': 'qlog',
'verb': 'edit',
'executable': 'DragonLog.exe',
'context': 'Edit with DragonLog',
'argument': '"%1"',
},
]
bdist_msi_options = {
'upgrade_code': '{9D8808CA-5F3B-313F-B568-E3778FEA50DD}',
'data': msi_data,
'summary_data': msi_sum,
'extensions': msi_ext,
'target_name': __prog_name__,
}
executables = [
Executable('main.py',
target_name='DragonLog',
base=base,
icon='dragonlog/icons/logo.ico',
shortcut_name=__prog_name__,
shortcut_dir='DesktopFolder',
copyright=__copyright__)
]
setup(options={
'build_exe': build_exe_options,
'bdist_msi': bdist_msi_options,
},
executables=executables)