fix(updater): harden forced startup updates

This commit is contained in:
Your Name committed 2026-06-18 08:38:21 +08:00
1 parent 55d38c46ec
commit b61f766ea6
7 files changed
+270 -12

No files matched your search

+4 -2
View File
@@ -18,9 +18,12 @@ project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if project_root not in sys.path:
sys.path.insert(0, project_root)
from douyin.updater.bootstrap import run_startup_update_check_early
run_startup_update_check_early(app_name="web_gui")
from douyin.core import path_config
from douyin.license.license_manager import require_license_or_exit
from douyin.updater.force_update import run_startup_update_check
# 从子包 re-export 顶层 helper(保持兼容)
from gui.web_gui_pkg import (
@@ -842,7 +845,6 @@ class Handler(BaseHTTPRequestHandler):
def main() -> int:
run_startup_update_check(app_name="web_gui")
require_license_or_exit()
host = get_web_gui_host()
# 支持 PORT / WEB_GUI_PORT 两种环境变量,默认 8000