细节修正/路径参数(astrbot_root)语义一致化

This commit is contained in:
LIghtJUNction
2026-02-27 23:51:44 +08:00
parent b8ffecf500
commit eacfd14218
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ async def run_astrbot(astrbot_root: Path) -> None:
from astrbot.core.initial_loader import InitialLoader
if os.environ.get("DASHBOARD_ENABLE") == "True":
await check_dashboard(astrbot_root / "data")
await check_dashboard(astrbot_root)
log_broker = LogBroker()
LogManager.set_queue_handler(logger, log_broker)
+4 -4
View File
@@ -39,7 +39,7 @@ async def check_dashboard(astrbot_root: Path) -> None:
click.echo("正在安装管理面板...")
await download_dashboard(
path="data/dashboard.zip",
extract_path=str(astrbot_root),
extract_path=str(astrbot_root / "data"),
version=f"v{VERSION}",
latest=False,
)
@@ -54,7 +54,7 @@ async def check_dashboard(astrbot_root: Path) -> None:
click.echo(f"管理面板版本: {version}")
await download_dashboard(
path="data/dashboard.zip",
extract_path=str(astrbot_root),
extract_path=str(astrbot_root / "data"),
version=f"v{VERSION}",
latest=False,
)
@@ -65,8 +65,8 @@ async def check_dashboard(astrbot_root: Path) -> None:
click.echo("初始化管理面板目录...")
try:
await download_dashboard(
path=str(astrbot_root / "dashboard.zip"),
extract_path=str(astrbot_root),
path=str(astrbot_root / "data" / "dashboard.zip"),
extract_path=str(astrbot_root / "data"),
version=f"v{VERSION}",
latest=False,
)