Add forced startup updater
This commit is contained in:
1 parent
9ffbe47bdb
commit
d48fa4eec3
9 files changed
+493
No files matched your search
@@ -16,6 +16,7 @@ from gui.gui_core import (
|
||||
)
|
||||
from douyin.core.path_config import get_logs_dir
|
||||
from douyin.license.license_manager import require_license_or_exit
|
||||
from douyin.updater.force_update import run_startup_update_check
|
||||
from gui.components.wifi_adb_scan_dialog import open_scan_dialog # noqa: F401 re-export
|
||||
from gui.components.preview_view import (
|
||||
async_refresh_preview as _async_refresh_preview_impl,
|
||||
@@ -54,6 +55,7 @@ def format_gui_log_line(line: str) -> str: # noqa: F401 re-export for backward
|
||||
|
||||
|
||||
def main():
|
||||
run_startup_update_check(app_name="gui_app")
|
||||
require_license_or_exit()
|
||||
_bundle = setup_root_window(read_config=read_config)
|
||||
root = _bundle.root
|
||||
|
||||
@@ -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