From eacfd142186896f630e9e8d9eb16c4f6f9373f22 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Fri, 27 Feb 2026 23:51:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E6=AD=A3/=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E5=8F=82=E6=95=B0=EF=BC=88astrbot=5Froot=EF=BC=89?= =?UTF-8?q?=E8=AF=AD=E4=B9=89=E4=B8=80=E8=87=B4=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/cli/commands/cmd_run.py | 2 +- astrbot/cli/utils/basic.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/astrbot/cli/commands/cmd_run.py b/astrbot/cli/commands/cmd_run.py index 3641d31c4..cea2e442b 100644 --- a/astrbot/cli/commands/cmd_run.py +++ b/astrbot/cli/commands/cmd_run.py @@ -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) diff --git a/astrbot/cli/utils/basic.py b/astrbot/cli/utils/basic.py index 5dbe29006..55322e7fc 100644 --- a/astrbot/cli/utils/basic.py +++ b/astrbot/cli/utils/basic.py @@ -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, )