-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathFadCrypt_Linux.spec
More file actions
193 lines (188 loc) · 6.4 KB
/
FadCrypt_Linux.spec
File metadata and controls
193 lines (188 loc) · 6.4 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# -*- mode: python ; coding: utf-8 -*-
import os
import sys
block_cipher = None
a = Analysis(
['FadCrypt.py'],
pathex=[],
binaries=[],
datas=[
('img', 'img'), # All image assets
('core', 'core'), # Include all core modules
('ui', 'ui'), # Include all UI modules
('core/fonts', 'core/fonts'), # Include fonts for snake game
('core/version.py', '.'), # Version info
('core/win_mock.py', '.'), # Mock Windows on Linux for testing
],
hiddenimports=[
# Version module
'core.version',
# Core modules
'core',
'core.application_manager',
'core.autostart_manager',
'core.config_manager',
'core.crypto_manager',
'core.password_manager',
'core.snake_game',
'core.unified_monitor',
'core.file_access_monitor',
'core.file_lock_manager',
'core.file_monitor',
'core.file_protection',
'core.activity_manager',
'core.duration_tracker',
'core.recovery_manager',
'core.single_instance_manager',
'core.statistics_manager',
'core.verbose_logger',
'core.file_encryption_manager',
'core.linux',
'core.linux.file_lock_manager_linux',
'core.linux.file_encryption_manager_linux',
'core.linux.elevated_daemon',
'core.linux.elevated_daemon_client',
'core.linux.fanotify_client',
# UI modules
'ui',
'ui.base',
'ui.base.main_window_base',
'ui.components',
'ui.components.about_panel',
'ui.components.activity_logs_panel',
'ui.components.app_grid_widget',
'ui.components.app_list_widget',
'ui.components.button_panel',
'ui.components.file_grid_widget',
'ui.components.logs_tab_widget',
'ui.components.settings_panel',
'ui.components.splash_screen',
'ui.components.system_tray',
'ui.dialogs',
'ui.dialogs.add_application_dialog',
'ui.dialogs.app_scanner_dialog',
'ui.dialogs.context_menu_password_dialog',
'ui.dialogs.edit_application_dialog',
'ui.dialogs.file_protection_auth_dialog',
'ui.dialogs.operation_logs_dialog',
'ui.dialogs.password_dialog',
'ui.dialogs.readme_dialog',
'ui.dialogs.recovery_dialog',
'ui.linux',
'ui.linux.main_window_linux',
# Windows UI modules for cross-platform testing/development
'ui.windows',
'ui.windows.main_window_windows',
'ui.windows.enhanced_stats_window',
# CLI modules
'core.cli',
'core.cli.cli_handler_base',
'core.cli.cli_handler_windows',
'core.cli.cli_handler_linux',
'core.cli.password_prompt',
'core.cli.colors',
'core.cli.tui_manager',
'core.cli.menu_navigator',
'core.cli.help_display',
'core.cli.curses_password',
'core.cli.curses_menu',
'core.cli.curses_file_browser',
# Curses library (required for CLI/TUI password input)
'curses',
'curses.ascii',
'curses.panel',
'curses.textpad',
# External dependencies - PyQt6
'PyQt6',
'PyQt6.QtWidgets',
'PyQt6.QtCore',
'PyQt6.QtGui',
'PyQt6.sip',
'PyQt6.QtNetwork',
'PyQt6.QtDBus',
# External dependencies - Other
'PIL',
'PIL.Image',
'PIL.ImageTk',
'pystray',
'pystray._xorg',
'pygame',
'pygame.mixer',
'cryptography',
'cryptography.fernet',
'cryptography.hazmat',
'cryptography.hazmat.primitives',
'cryptography.hazmat.backends',
'cryptography.hazmat.primitives.ciphers',
'cryptography.hazmat.primitives.ciphers.aead',
'cryptography.hazmat.primitives.kdf',
'cryptography.hazmat.primitives.kdf.pbkdf2',
'cryptography.hazmat.primitives.padding',
'cryptography.hazmat.primitives.hashes',
'psutil',
'watchdog',
'watchdog.observers',
'watchdog.events',
# NumPy and PyQtGraph for enhanced stats
'numpy',
'numpy.core',
'numpy.core._multiarray_umath',
'numpy._core',
'numpy._core._exceptions',
'numpy._core.multiarray',
'pyqtgraph',
'pyqtgraph.graphicsItems',
# Pygame for snake game - avoid circular imports
'pygame.base',
'pygame.constants',
'pygame.color',
'pygame.colordict',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
# Exclude unnecessary packages to reduce size (CRITICAL: Don't exclude stdlib modules needed by dependencies)
'tkinter', # Tkinter GUI (we use PyQt6)
'matplotlib', # Plotting (not used)
'IPython', # Interactive Python (not used)
'jupyter', # Jupyter (not used)
'test', # Test modules
'unittest', # Unit testing
# Note: 'pydoc' intentionally NOT excluded because some libraries import it at runtime
# 'xml.etree', # REMOVED - needed by some modules
# 'email', # REMOVED - needed by pkg_resources
# 'http', # REMOVED - needed by urllib3/requests
# 'urllib3', # REMOVED - needed by requests
# 'setuptools', # REMOVED - runtime hooks use pkg_resources
'pip', # Package installer (not needed)
'distutils', # Distribution utils (not needed)
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries, # Include binaries in single executable
a.zipfiles, # Include zipfiles in single executable
a.datas, # Include data files in single executable
[],
name='fadcrypt',
debug=False,
bootloader_ignore_signals=False,
strip=True, # Strip debug symbols - ENABLED
upx=True, # UPX compression - ENABLED
upx_exclude=[],
runtime_tmpdir=None,
console=False, # GUI app - no console on Linux
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
# NOTE: Removed COLLECT - using onefile mode for faster installation