#!/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', ])