-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathKickViewerBOT-macOS.spec
More file actions
131 lines (122 loc) · 3.42 KB
/
KickViewerBOT-macOS.spec
File metadata and controls
131 lines (122 loc) · 3.42 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
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
import os
import sys
# Try to get tls_client dependencies path
try:
import tls_client
tls_client_deps = os.path.join(os.path.dirname(tls_client.__file__), 'dependencies')
tls_client_binaries = [
(os.path.join(tls_client_deps, 'tls-client-32.dll'), 'tls_client/dependencies'),
(os.path.join(tls_client_deps, 'tls-client-64.dll'), 'tls_client/dependencies'),
(os.path.join(tls_client_deps, 'tls-client-amd64.so'), 'tls_client/dependencies'),
(os.path.join(tls_client_deps, 'tls-client-arm64.dylib'), 'tls_client/dependencies'),
(os.path.join(tls_client_deps, 'tls-client-arm64.so'), 'tls_client/dependencies'),
(os.path.join(tls_client_deps, 'tls-client-x86.dylib'), 'tls_client/dependencies'),
(os.path.join(tls_client_deps, 'tls-client-x86.so'), 'tls_client/dependencies'),
]
except ImportError:
tls_client_binaries = []
# Use the current Python environment's site-packages (works for venv and CI)
import site
site_packages = site.getsitepackages()[0]
# Build data list - only include actual data files, not Python packages
datas = [
('backend', '.'),
]
# Add fake_useragent data files if they exist
fake_useragent_data = os.path.join(site_packages, 'fake_useragent', 'data')
if os.path.exists(fake_useragent_data):
datas.append((fake_useragent_data, 'fake_useragent/data'))
a = Analysis(
['backend/main.py'],
pathex=[],
binaries=tls_client_binaries,
datas=datas,
hiddenimports=[
# Flask and related
'flask',
'flask_cors',
'flask_socketio',
'socketio',
'werkzeug',
'gevent',
'gevent.socket',
'gevent.select',
'gevent._socket3',
'gevent.resolver.thread',
'gevent.resolver.ares',
'gevent.resolver.blocking',
'gevent.event',
'gevent.queue',
'dns',
'dns.dnssec',
'dns.e164',
'dns.hash',
'dns.namedict',
'dns.tsigkeyring',
'dns.update',
'dns.version',
'dns.zone',
# Network and HTTP
'requests',
'urllib3',
'certifi',
'charset_normalizer',
'idna',
# Websockets
'websockets',
'websockets.legacy',
'websockets.legacy.client',
'websockets.legacy.server',
# Streaming
'streamlink',
'streamlink.plugins',
'fake_useragent',
# TLS Client
'tls_client',
'tls_client.dependencies',
# UI
'rich',
'rich.console',
'rich.progress',
'rich.table',
# Monitoring
'psutil',
# Other
'cffi',
'engineio',
'engineio.async_drivers',
'engineio.async_drivers.gevent',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
cipher=block_cipher,
noarchive=False,
)
# Collect all submodules and data
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='KickViewerBOT',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='frontend/public/favicon.ico'
)