forked from pandel/opsiPackageBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyinstaller-linux.spec
72 lines (63 loc) · 2.77 KB
/
pyinstaller-linux.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
# -*- mode: python -*-
ui_tree = Tree('oPB/ui', prefix='oPB/ui', excludes=['*.qss'])
help_tree = Tree('oPB/help', prefix='help')
#lang_tree = Tree('/usr/share/qt5/translations', 'translations', excludes=['assistant*.*', 'designer*.*', 'linguist*.*', 'qscintilla*.*'])
lang_tree = [('translations/qt_de.qm', '/usr/share/qt5/translations/qt_de.qm', 'DATA'),
('translations/qt_en.qm', '/usr/share/qt5/translations/qt_en.qm', 'DATA'),
('translations/qthelp_de.qm', '/usr/share/qt5/translations/qthelp_de.qm', 'DATA'),
('translations/qthelp_en.qm', '/usr/share/qt5/translations/qthelp_en.qm', 'DATA'),
('translations/qtbase_de.qm', '/usr/share/qt5/translations/qtbase_de.qm', 'DATA'),
('translations/qtbase_en.qm', '/usr/share/qt5/translations/qtbase_en.qm', 'DATA')]
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=True,
icon='images/prog_icons/opb/package_256x256.png')
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/help/256x256.png')
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')],
strip=None,
upx=False,
name='opsipackagebuilder')
helpviewer_coll = COLLECT(helpviewer_exe,
helpviewer_a.binaries,
helpviewer_a.zipfiles,
helpviewer_a.datas,
lang_tree,
help_tree,
strip=None,
upx=False,
name='helpviewer')