-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.spec
More file actions
121 lines (115 loc) · 2.92 KB
/
Copy pathbuild.spec
File metadata and controls
121 lines (115 loc) · 2.92 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
# build.spec — PyInstaller build configuration for Scryptian
import os
block_cipher = None
base_dir = os.path.dirname(os.path.abspath(SPEC))
a = Analysis(
['main.py'],
pathex=[base_dir],
binaries=[(os.path.join(os.path.dirname(__import__('llama_cpp').__file__), 'lib', '*.dll'), 'llama_cpp/lib')],
datas=[
('icon.ico', '.'),
('config.py', '.'),
('bridge.py', '.'),
('llm.py', '.'),
('telemetry.py', '.'),
('tray.py', '.'),
('autostart.py', '.'),
('bootstrap.py', '.'),
# Only top-level single-file skills are bundled.
# The 'translate_pdf' bundle (folder + ~22 MB libs/) is intentionally
# EXCLUDED from the build — it ships via the store (registry + zip) and
# is downloaded on demand, keeping the installer small.
('skills/*.py', 'skills'),
('docs/assets/scryptian-notification.wav', 'docs/assets'),
('selection_watcher.py', '.'),
('pins.py', '.'),
('main_pins.py', '.'),
('skill_editor.py', '.'),
('skill_settings.py', '.'),
('.env', '.')
],
hiddenimports=[
'pystray._win32',
'llama_cpp',
'certifi',
'keyboard',
'pyperclip',
# Stdlib modules used by the store-delivered PDF skill (reportlab +
# pdfminer.six). Those libraries are NOT analyzed by PyInstaller (they
# ship in the skill zip), so any stdlib module they import at runtime
# must be force-included here or the skill fails with
# "No module named '...'".
'html',
'html.parser',
'html.entities',
'unicodedata',
'fnmatch',
'ast',
'base64',
'pprint',
'binascii',
'xml',
'xml.sax',
'xml.sax.saxutils',
'xml.parsers.expat',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
'transformers',
'torch',
'tensorflow',
'scipy',
'pandas',
'matplotlib',
'pytest',
'IPython',
'notebook',
'sphinx',
'docutils',
'setuptools',
'wheel',
'pip',
'pkg_resources',
'pyarrow',
'pydantic',
'pydantic_core',
'hf_xet',
'huggingface_hub',
'cryptography',
'grpc',
'google',
'boto3',
'botocore',
'lz4',
'zstd',
],
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
[],
name='Scryptian',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
icon='icon.ico',
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='Scryptian',
)