Add forced startup updater
This commit is contained in:
1 parent
9ffbe47bdb
commit
d48fa4eec3
9 files changed
+493
No files matched your search
@@ -20,6 +20,7 @@ if project_root not in sys.path:
|
||||
|
||||
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 (
|
||||
@@ -841,6 +842,7 @@ 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
|
||||
|
||||
Reference in new issue
Block a user