# -*- mode: python ; coding: utf-8 -*- from pathlib import Path from PyInstaller.utils.hooks import collect_all block_cipher = None root = Path(SPECPATH) pw_datas, pw_binaries, pw_hidden = collect_all("playwright") a = Analysis( ["collector_entry.py"], pathex=[str(root)], binaries=pw_binaries, datas=[ (str(root / "douyin_collector_ui.html"), "."), (str(root / "splash.html"), "."), ] + pw_datas, hiddenimports=[ "collector_main", "douyin_collector_bootstrap", "douyin_collector_server", "credential_normalize", "app_paths", "playwright", "playwright.async_api", "playwright._impl", "playwright._impl._driver", "playwright._impl._transport", ] + pw_hidden, 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, [], exclude_binaries=True, name="DouyinIMCollector", debug=False, bootloader_ignore_signals=False, strip=False, upx=False, console=False, disable_windowed_traceback=False, argv_emulation=False, target_arch=None, codesign_identity=None, entitlements_file=None, ) coll = COLLECT( exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=False, upx_exclude=[], name="DouyinIMCollector", )