83 lines
1.6 KiB
Python
83 lines
1.6 KiB
Python
|
|
# -*- mode: python ; coding: utf-8 -*-
|
|
|
|
block_cipher = None
|
|
|
|
# 需要包含的数据文件
|
|
added_files = [
|
|
('config.ini', '.'),
|
|
('config/barcode_mappings.json', 'config/'),
|
|
('config/config.ini', 'config/'),
|
|
('templates/银豹-采购单模板.xls', 'templates/'),
|
|
('app', 'app'),
|
|
]
|
|
|
|
# 需要隐式导入的模块
|
|
hidden_imports = [
|
|
'tkinter',
|
|
'tkinter.ttk',
|
|
'tkinter.filedialog',
|
|
'tkinter.messagebox',
|
|
'tkinter.scrolledtext',
|
|
'pandas',
|
|
'numpy',
|
|
'openpyxl',
|
|
'xlrd',
|
|
'xlwt',
|
|
'xlutils',
|
|
'requests',
|
|
'configparser',
|
|
'threading',
|
|
'datetime',
|
|
'json',
|
|
're',
|
|
'subprocess',
|
|
'shutil',
|
|
'app.config.settings',
|
|
'app.services.ocr_service',
|
|
'app.services.order_service',
|
|
'app.services.tobacco_service',
|
|
'app.core.utils.dialog_utils',
|
|
'app.core.excel.converter',
|
|
]
|
|
|
|
a = Analysis(
|
|
['启动器.py'],
|
|
pathex=[],
|
|
binaries=[],
|
|
datas=added_files,
|
|
hiddenimports=hidden_imports,
|
|
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,
|
|
a.zipfiles,
|
|
a.datas,
|
|
[],
|
|
name='OCR订单处理系统',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
runtime_tmpdir=None,
|
|
console=False,
|
|
disable_windowed_traceback=False,
|
|
argv_emulation=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
)
|