This commit is contained in:
eric
2026-03-28 18:10:43 -05:00
parent 513c2b7b8c
commit 8001baabf8
15 changed files with 227 additions and 489 deletions

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
"""启动前环境分析Python 依赖、ffmpeg、Node/npm、端口提示Windows / Linux 通用)。"""
"""启动前环境分析Python 依赖、ffmpeg、Node/npm、端口提示Linux"""
from __future__ import annotations
import importlib.util
@@ -56,11 +56,11 @@ def print_env_report(
ok = False
if fp:
print(f"│ ✓ ffplay: {fp}")
elif sys.platform != "win32":
else:
print("│ ⚠ 未找到 ffplayHDMI 全屏播放需要完整 ffmpeg 套件)")
if need_npm:
npm = shutil.which("npm") or shutil.which("npm.cmd")
npm = shutil.which("npm")
if npm:
print(f"│ ✓ npm: {npm}")
else: