fix(maturin-hook): handle broken dashboard dist symlink gracefully

The dev branch has astrbot/dashboard/dist as a symlink to
../../dashboard/dist, which is valid in the dev workspace but
becomes a broken symlink when cloned to /opt/astrbot for installation.

Fix the maturin build hook to:
- Remove broken symlinks before creating placeholder directories
- Handle symlink vs directory removal in copy_dashboard_dist()
- Always generate placeholder when dashboard build is skipped or fails
This commit is contained in:
LIghtJUNction
2026-03-25 19:01:56 +08:00
14 changed files with 458 additions and 1009 deletions

View File

@@ -86,4 +86,4 @@ AstrBot 支持接入优云智算提供的模型 API。
## 更多功能
更多功能参考 [AstrBot 官方文档](https://docs.astrbot.app)。
更多功能参考 [AstrBot 官方文档](https://docs.astrbot.app)。

View File

@@ -88,10 +88,12 @@
再点击上面的`保存`按钮。
接下来,点击权限管理,点击开通权限,输入 `im:message:send,im:message,im:message:send_as_bot`。添加筛选到的权限。
接下来,点击权限管理,点击开通权限,输入 `im:message,im:message:send_as_bot`。添加筛选到的权限。
再次输入 `im:resource:upload,im:resource` 开通上传图片相关的权限。
如果需要在群聊里使用,请额外开通 `im:message.group_at_msg:readonly``im:message.group_msg` 权限。
如果需要使用流式输出,请额外开通 `创建与更新卡片(cardkit:card:write)` 权限。
最终开通的权限如下图:
@@ -118,4 +120,4 @@
在群内发送一个 `/help` 指令,机器人将做出响应。
![成功](https://files.astrbot.app/docs/source/images/lark/image-13.png)
![成功](https://files.astrbot.app/docs/source/images/lark/image-13.png)