File size: 895 Bytes
4e4db02
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/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',
])