# -*- mode: python ; coding: utf-8 -*-
"""
PyInstaller 打包配置文件 for 数字资产管理器 (Tkinter 桌面版)
打包命令: pyinstaller build_exe.spec
输出: dist/数字资产管理器.exe
"""

import os

ENTRY_SCRIPT = os.path.join(SPECPATH, 'digital_assets_ui.py')

a = Analysis(
    [ENTRY_SCRIPT],
    pathex=[SPECPATH],
    binaries=[],
    datas=[],
    hiddenimports=['digital_assets_manager', 'sqlite3', 'json', 'datetime'],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=['tkinter.test', 'lib2to3', 'pydoc', 'unittest', 'email', 'html', 'xml'],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=None,
    noarchive=False,
)

pyz = PYZ(a.pure, a.zipped_data, cipher=None)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.zipfiles,
    a.datas,
    [],
    name='数字资产管理器',
    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,
    icon=None,
)
