Files
rag_agent/RAG-TEST-TOOLS/NewRag.spec

52 lines
1.2 KiB
RPMSpec
Raw Normal View History

# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_all
datas = [('PrjAttCtrlMng', 'PrjAttCtrlMng'), ('project_code_knowledge_graph.json', '.'), ('satellite_rag.faiss', '.'), ('satellite_rag_metadata.json', '.'), ('satellite_rag_system.log', '.'), ('static_analyzer.py', '.'), ('审查规则.xlsx', '.'), ('科代问题单样例.xlsx', '.')]
binaries = []
hiddenimports = []
tmp_ret = collect_all('PrjAttCtrlMng')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
a = Analysis(
['main.py'],
pathex=[],
binaries=binaries,
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='NewRag',
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,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='NewRag',
)