-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhacxgent-acp.spec
More file actions
60 lines (54 loc) · 1.83 KB
/
hacxgent-acp.spec
File metadata and controls
60 lines (54 loc) · 1.83 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
# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_all
# Collect all dependencies (including hidden imports and binaries) from builtins modules
core_builtins_deps = collect_all('hacxgent.core.tools.builtins')
acp_builtins_deps = collect_all('hacxgent.acp.tools.builtins')
# Extract hidden imports and binaries, filtering to ensure only strings are in hiddenimports
hidden_imports = []
for item in core_builtins_deps[2] + acp_builtins_deps[2]:
if isinstance(item, str):
hidden_imports.append(item)
binaries = core_builtins_deps[1] + acp_builtins_deps[1]
a = Analysis(
['hacxgent/acp/entrypoint.py'],
pathex=[],
binaries=binaries,
datas=[
# By default, pyinstaller doesn't include the .md files
('hacxgent/core/prompts/*.md', 'hacxgent/core/prompts'),
('hacxgent/core/tools/builtins/prompts/*.md', 'hacxgent/core/tools/builtins/prompts'),
# We also need to add all setup files
('hacxgent/setup/*', 'hacxgent/setup'),
# This is necessary because tools are dynamically called in hacxgent, meaning there is no static reference to those files
('hacxgent/core/tools/builtins/*.py', 'hacxgent/core/tools/builtins'),
('hacxgent/acp/tools/builtins/*.py', 'hacxgent/acp/tools/builtins'),
],
hiddenimports=hidden_imports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='hacxgent-acp',
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,
)