-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathQuickADB.spec
More file actions
68 lines (59 loc) · 1.72 KB
/
QuickADB.spec
File metadata and controls
68 lines (59 loc) · 1.72 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
66
67
68
# quickadb.spec
# -*- mode: python ; coding: utf-8 -*-
import sys
from PyInstaller.utils.hooks import collect_submodules, collect_data_files, collect_dynamic_libs
block_cipher = None
hiddenimports = (
collect_submodules('main') +
collect_submodules('modules') +
collect_submodules('res') +
collect_submodules('themes') +
collect_submodules('util') +
collect_submodules('PIL')
)
datas = [
('platform-tools/*', 'platform-tools'),
('res/*', 'res'),
('themes/*', 'themes'),
('util/*', 'util'),
]
datas += collect_data_files('PIL')
binaries = []
binaries += collect_dynamic_libs('PIL')
a = Analysis(
['main.py'],
pathex=['.'],
binaries=binaries,
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
# Linux compatibility: Exclude libraries that often cause "symbol lookup error" on newer distros (like Arch)
# when the app is built on an older distro.
# The CI workflow builds on Ubuntu 22.04. A bit old, but usually helps with compatibility.
if sys.platform == 'linux':
excluded_binaries = ['libreadline.so.8', 'libcrypt.so.1', 'libz.so.1', 'libgcc_s.so.1']
a.binaries = [x for x in a.binaries if x[0] not in excluded_binaries]
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='QuickADB',
console=False,
disable_windowed_traceback=False,
hide_console='hide-early',
debug=False,
strip=False,
upx=True,
icon='res/toolicon.ico',
)