Files
douyi_guaji_main/douyin/updater/bootstrap.py
T

16 lines
465 B
Python

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)