fix(packaging): keep distribution minimal
This commit is contained in:
1 parent
c97e4edc74
commit
b74baef555
18 files changed
+492
-49
No files matched your search
+3
-2
@@ -8,9 +8,10 @@ _project_root = os.path.dirname(_script_dir)
|
||||
if _project_root not in sys.path:
|
||||
sys.path.insert(0, _project_root)
|
||||
|
||||
from douyin.updater.bootstrap import run_startup_update_check_early
|
||||
if __name__ == "__main__":
|
||||
from douyin.updater.bootstrap import run_startup_update_check_early
|
||||
|
||||
run_startup_update_check_early(app_name="gui_app")
|
||||
run_startup_update_check_early(app_name="gui_app")
|
||||
|
||||
# 抽离:ADB/配置/参数结构体到 gui_core.py(便于后续模块化)
|
||||
from gui.gui_core import (
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
_BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
if str(_BASE_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(_BASE_DIR))
|
||||
|
||||
from douyin.updater.bootstrap import run_startup_update_check_early
|
||||
|
||||
|
||||
run_startup_update_check_early(app_name="gui_app")
|
||||
|
||||
from douyin.core.version import print_version_banner # noqa: E402
|
||||
from gui.gui_app import main # noqa: E402
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
print_version_banner("gui_app")
|
||||
except Exception:
|
||||
pass
|
||||
main()
|
||||
+3
-2
@@ -18,9 +18,10 @@ 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
|
||||
if __name__ == "__main__":
|
||||
from douyin.updater.bootstrap import run_startup_update_check_early
|
||||
|
||||
run_startup_update_check_early(app_name="web_gui")
|
||||
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
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
_BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
if str(_BASE_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(_BASE_DIR))
|
||||
|
||||
from douyin.updater.bootstrap import run_startup_update_check_early
|
||||
|
||||
|
||||
run_startup_update_check_early(app_name="web_gui")
|
||||
|
||||
from douyin.core.version import print_version_banner # noqa: E402
|
||||
from gui.web_gui import main # noqa: E402
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
print_version_banner("web_gui")
|
||||
except Exception:
|
||||
pass
|
||||
raise SystemExit(main())
|
||||
Reference in new issue
Block a user