from __future__ import annotations import sys def run_startup_update_check_early(app_name: str) -> None: """Run the updater before importing the heavier app modules.""" try: from douyin.updater.force_update import run_startup_update_check run_startup_update_check(app_name=app_name) except SystemExit: raise except Exception as exc: print(f"[更新] {app_name} 早期更新检查异常:{exc}", file=sys.stderr)