-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyinstaller-mac.spec
90 lines (75 loc) · 3.33 KB
/
pyinstaller-mac.spec
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
81
82
83
84
85
86
87
88
89
90
#from PyInstaller.build import Tree
# -*- mode: python -*-
ui_tree = Tree('oPB/ui', prefix='oPB/ui', excludes=['*.qss'])
help_tree = Tree('oPB/help', prefix='help')
#lang_tree = Tree('/usr/local/opt/qt5/translations', 'translations', excludes=['assistant*.*', 'designer*.*', 'linguist*.*', 'qscintilla*.*'])
lang_tree = [('translations/qt_de.qm', '/usr/local/opt/qt5/translations/qt_de.qm', 'DATA'),
('translations/qt_help_de.qm', '/usr/local/opt/qt5/translations/qt_help_de.qm', 'DATA'),
('translations/qtbase_de.qm', '/usr/local/opt/qt5/translations/qtbase_de.qm', 'DATA')]
bundle_version = '8.5.0'
opsipackagebuilder_a = Analysis(['opsipackagebuilder.py'],
pathex=['.'],
# hiddenimports=['sip', 'PyQt5.QtPrintSupport', 'PyQt5.QtSql'],
hookspath=None,
runtime_hooks=None)
helpviewer_a = Analysis(['helpviewer.py'],
pathex=['.'],
# hiddenimports=['sip', 'PyQt5.QtPrintSupport', 'PyQt5.QtSql'],
hookspath=None,
runtime_hooks=None)
opsipackagebuilder_pyz = PYZ(opsipackagebuilder_a.pure)
opsipackagebuilder_exe = EXE( opsipackagebuilder_pyz,
opsipackagebuilder_a.scripts,
opsipackagebuilder_a.dependencies,
exclude_binaries=True,
name='opsipackagebuilder',
debug=False,
strip=False,
upx=False,
console=False,
icon='images/prog_icons/mac/opsipackagebuilder.icns')
helpviewer_pyz = PYZ(helpviewer_a.pure)
helpviewer_exe = EXE(helpviewer_pyz,
helpviewer_a.scripts,
helpviewer_a.dependencies,
exclude_binaries=True,
name='helpviewer',
debug=False,
strip=False,
upx=False,
console=False,
icon='images/prog_icons/mac/help.icns')
opsipackagebuilder_coll = COLLECT(opsipackagebuilder_exe,
opsipackagebuilder_a.binaries,
opsipackagebuilder_a.zipfiles,
opsipackagebuilder_a.datas,
ui_tree,
lang_tree,
help_tree,
[('ui/opsipackagebuilder_rc.py', 'oPB/ui/opsipackagebuilder_rc.py', 'DATA')],
[('ui/stylesheet.qss', 'oPB/ui/stylesheet.qss', 'DATA')],
[('ui/stylesheet-mac.qss', 'oPB/ui/stylesheet-mac.qss', 'DATA')],
strip=None,
upx=False,
name='opsipackagebuilder')
helpviewer_coll = COLLECT(helpviewer_exe,
helpviewer_a.binaries,
helpviewer_a.zipfiles,
helpviewer_a.datas,
ui_tree,
lang_tree,
help_tree,
[('ui/opsipackagebuilder_rc.py', 'oPB/ui/opsipackagebuilder_rc.py', 'DATA')],
[('ui/stylesheet.qss', 'oPB/ui/stylesheet.qss', 'DATA')],
[('ui/stylesheet-mac.qss', 'oPB/ui/stylesheet-mac.qss', 'DATA')],
strip=None,
upx=False,
name='helpviewer')
app1 = BUNDLE(opsipackagebuilder_coll,
name=os.path.join('dist', 'opsiPackageBuilder.app'),
appname="opsiPackageBuilder",
version = bundle_version)
app2 = BUNDLE(helpviewer_coll,
name=os.path.join('dist', 'opbHelpViewer.app'),
appname="oPB HelpViewer",
version = bundle_version)