scan2doc-pro / build_cli.py
Usabolfazl's picture
Upload build_cli.py with huggingface_hub
4e4db02 verified
Raw
History Blame Contribute Delete
895 Bytes
#!/usr/bin/env python3
"""Build script for Scan2Doc Pro CLI executable"""
import PyInstaller.__main__
PyInstaller.__main__.run([
'scan2doc_pro_v6.py',
'--name=Scan2Doc_CLI',
'--onefile',
'--console',
'--clean',
'--noconfirm',
# Dependencies
'--hidden-import=pytesseract',
'--hidden-import=bs4',
'--hidden-import=lxml',
'--hidden-import=lxml.etree',
'--hidden-import=docx',
'--hidden-import=docx.document',
'--hidden-import=docx.shared',
'--hidden-import=docx.enum.text',
'--hidden-import=docx.oxml.ns',
'--hidden-import=numpy',
'--hidden-import=PIL',
'--hidden-import=PIL.Image',
'--hidden-import=cv2',
'--hidden-import=fitz',
'--collect-all=cv2',
'--collect-all=numpy',
'--collect-all=PIL',
'--collect-all=docx',
'--collect-all=bs4',
'--collect-all=lxml',
'--collect-all=fitz',
])