-
Notifications
You must be signed in to change notification settings - Fork 116
/
windows.spec
executable file
·133 lines (128 loc) · 6.29 KB
/
windows.spec
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
# -*- mode: python ; coding: utf-8 -*-
import sys
from PyInstaller.utils.hooks import collect_data_files
block_cipher = None
a = Analysis(
['src\\pygpt_net\\app.py'],
pathex=[
'src\\',
'src\\pygpt_net\\'
],
binaries=[],
datas=collect_data_files('opentelemetry.sdk', 'pinecode') + collect_data_files('chromadb', include_py_files=True, includes=['**/*.py', '**/*.sql']) + [ # chromadb, pinecode hack
('src\\pygpt_net\\data\\config\\presets\\*', 'data\\config\\presets'),
('src\\pygpt_net\\data\\config\\config.json', 'data\\config'),
('src\\pygpt_net\\data\\config\\models.json', 'data\\config'),
('src\\pygpt_net\\data\\config\\modes.json', 'data\\config'),
('src\\pygpt_net\\data\\config\\settings.json', 'data\\config'),
('src\\pygpt_net\\data\\config\\settings_section.json', 'data\\config'),
('src\\pygpt_net\\data\\icons\\*', 'data\\icons'),
('src\\pygpt_net\\data\\icons\\chat\\*', 'data\\icons\\chat'),
('src\\pygpt_net\\data\\locale\\*', 'data\\locale'),
('src\\pygpt_net\\data\\audio\\*', 'data\\audio'),
('src\\pygpt_net\\data\\css\\*', 'data\\css'),
('src\\pygpt_net\\data\\fonts\\Lato\\*', 'data\\fonts\\Lato'),
('src\\pygpt_net\\data\\fonts\\SpaceMono\\*', 'data\\fonts\\SpaceMono'),
('src\\pygpt_net\\data\\fonts\\MonaspaceArgon\\*', 'data\\fonts\\MonaspaceArgon'),
('src\\pygpt_net\\data\\fonts\\MonaspaceKrypton\\*', 'data\\fonts\\MonaspaceKrypton'),
('src\\pygpt_net\\data\\fonts\\MonaspaceNeon\\*', 'data\\fonts\\MonaspaceNeon'),
('src\\pygpt_net\\data\\fonts\\MonaspaceRadon\\*', 'data\\fonts\\MonaspaceRadon'),
('src\\pygpt_net\\data\\fonts\\MonaspaceXenon\\*', 'data\\fonts\\MonaspaceXenon'),
('src\\pygpt_net\\data\\js\\highlight\\styles\\*', 'data\\js\\highlight\\styles'),
('src\\pygpt_net\\data\\prompts.csv', 'data'),
('src\\pygpt_net\\data\\logo.png', 'data'),
('src\\pygpt_net\\data\\icon.ico', 'data'),
('src\\pygpt_net\\data\\icon_tray_idle.ico', 'data'),
('src\\pygpt_net\\data\\icon_tray_busy.ico', 'data'),
('src\\pygpt_net\\data\\icon_tray_error.ico', 'data'),
('src\\pygpt_net\\CHANGELOG.txt', '.'),
('src\\pygpt_net\\LICENSE', '.'),
('src\\pygpt_net\\data\\icon.png', '.'),
('src\\pygpt_net\\data\\icon.ico', '.'),
('README.md', '.'),
('src\\pygpt_net\\__init__.py', '.'),
('venv\\Lib\\site-packages\\onnxruntime\\capi\\*', 'onnxruntime\\capi\\'), # onnxruntime
('venv\\Lib\\site-packages\\llama_index\\legacy\\VERSION', 'llama_index\\legacy\\'), # llama-index hack
('venv\\Lib\\site-packages\\llama_index\\legacy\\_static\\nltk_cache\\corpora\\stopwords\\*', 'llama_index\\legacy\\_static\\nltk_cache\\corpora\\stopwords\\'), # llama-index hack
('venv\\Lib\\site-packages\\llama_index\\legacy\\_static\\nltk_cache\\tokenizers\\punkt\\*', 'llama_index\\legacy\\_static\\nltk_cache\\tokenizers\\punkt\\'), # llama-index hack
('venv\\Lib\\site-packages\\llama_index\\legacy\\_static\\nltk_cache\\tokenizers\\punkt\\PY3\\*', 'llama_index\\legacy\\_static\\nltk_cache\\tokenizers\\punkt\\PY3\\'), # llama-index hack
('venv\\Lib\\site-packages\\llama_index\\core\\_static\\nltk_cache\\corpora\\stopwords\\*', 'llama_index\\core\\_static\\nltk_cache\\corpora\\stopwords\\'), # llama-index hack
('venv\\Lib\\site-packages\\llama_index\\core\\_static\\nltk_cache\\tokenizers\\punkt\\*', 'llama_index\\core\\_static\\nltk_cache\\tokenizers\\punkt\\'), # llama-index hack
('venv\\Lib\\site-packages\\llama_index\\core\\_static\\nltk_cache\\tokenizers\\punkt\\PY3\\*', 'llama_index\\core\\_static\\nltk_cache\\tokenizers\\punkt\\PY3\\'), # llama-index hack
('venv\\Lib\\site-packages\\llama_index\\core\\agent\\react\\templates\\*', 'llama_index\\core\\agent\\react\\templates\\'), # llama-index agents hack
('venv\\Lib\\site-packages\\langchain\\chains', 'langchain\\chains'), # langchain/llama hack
('venv\\Lib\\site-packages\\opentelemetry_sdk-1.27.0.dist-info\\*', 'opentelemetry_sdk-1.27.0.dist-info'), # chromadb hack
('venv\\Lib\\site-packages\\pinecone\\__version__', 'pinecone'), # pinecode hack
],
hiddenimports=[
'chromadb.api.segment',
'chromadb.db.impl',
'chromadb.db.impl.sqlite',
'chromadb.migrations',
'chromadb.migrations.sysdb',
'chromadb.migrations.embeddings_queue',
'chromadb.segment.impl.manager',
'chromadb.segment.impl.manager.local',
'chromadb.segment.impl.metadata',
'chromadb.segment.impl.metadata.sqlite',
'chromadb.segment.impl.vector',
'chromadb.segment.impl.vector.batch',
'chromadb.segment.impl.vector.brute_force_index',
'chromadb.segment.impl.vector.hnsw_params',
'chromadb.segment.impl.vector.local_hnsw',
'chromadb.segment.impl.vector.local_persistent_hnsw',
'chromadb.telemetry.posthog',
'chromadb.telemetry.product.posthog',
'httpx',
'httpx-socks',
'pinecode',
'opentelemetry',
'opentelemetry.sdk',
'onnxruntime',
'tokenizers',
'tiktoken_ext',
'tiktoken_ext.openai_public',
'pydub',
'tweepy'],
collectsubmodules=['chromadb', 'chromadb.migrations', 'chromadb.telemetry', 'chromadb.api','chromadb.db', 'httpx', 'httpx-socks', 'nbconvert'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
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 + [('msvcp100.dll', 'C:\\Windows\\System32\\msvcp100.dll', 'BINARY'),
('msvcr100.dll', 'C:\\Windows\\System32\\msvcr100.dll', 'BINARY')]
if sys.platform == 'win32' else a.binaries,
exclude_binaries=True,
name='pygpt',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='src\\pygpt_net\\data\\icon.ico',
version='version.rc'
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='Windows',
)