Repository navigation
Expand file tree
/
Copy pathargus-overview.spec
More file actions
104 lines (92 loc) · 2.18 KB
/
Copy pathargus-overview.spec
File metadata and controls
104 lines (92 loc) · 2.18 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# -*- mode: python ; coding: utf-8 -*-
"""
PyInstaller spec file for Argus Overview (Linux)
Build with: pyinstaller argus-overview.spec
Output: dist/argus-overview (executable for AppImage packaging)
"""
from pathlib import Path
block_cipher = None
# Paths
src_path = Path('src')
icon_path = Path('assets/icon.png')
# Data files to include
datas = [
# Sound files for intel alerts
(str(src_path / 'argus_overview' / 'intel' / 'sounds' / '*.wav'), 'argus_overview/intel/sounds'),
# README and docs
('README.md', '.'),
('CHANGELOG.md', '.'),
]
# Hidden imports that PyInstaller might miss
hiddenimports = [
'PySide6.QtCore',
'PySide6.QtGui',
'PySide6.QtWidgets',
'PySide6.QtMultimedia',
'argus_overview.platform.linux',
'argus_overview.platform.base',
'pynput.keyboard._xorg',
'pynput.mouse._xorg',
'pynput._util',
'pynput._util.xorg',
'pynput._util.xorg_keysyms',
'Xlib',
'Xlib.display',
'Xlib.X',
'Xlib.Xatom',
'Xlib.ext',
'Xlib.ext.xtest',
]
# Exclude these modules (not needed, reduce size)
excludes = [
'tkinter',
'matplotlib',
'scipy',
'pandas',
'_tkinter',
'IPython',
'jupyter',
]
a = Analysis(
['src/main.py'],
pathex=[str(src_path)],
binaries=[],
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=excludes,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
[], # Don't include binaries in EXE - put them in COLLECT
name='Argus-Overview',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False, # UPX disabled on Linux due to compatibility issues
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=str(icon_path) if icon_path.exists() else None,
)
# Create a directory for AppImage packaging
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
name='Argus-Overview',
)