cang-ying/scripts/eed-desktop.sh
Zhuyuan Operations ce32073d07 D205 面板功能大升级+本地漫剧管线+经验自动机制+飞书资料归档
- 面板: 会话持久化(oc_sess.json)/余额实时/文件栏(搜索+MD+拖拽)/朗读(edge-tts)/工具过程实时显示/漫剧画布
- 面板: 经验自动检索注入+存经验按钮(experience.py)
- 管线: local_motion本地运镜/IMAGE-FIRST-GUIDE/LOCAL-PIPELINE-V1
- 经验: EED-EXPER-014 面板工程+管线+飞书扒取全记录
- 资料: 飞书《清欢AIGC伪真人短剧全流程》归档
2026-08-03 22:55:02 +08:00

25 lines
834 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# eed-desktop.sh — 苍耳面板·最简桌面壳Firefox 独立窗口)
# 用法bash ~/cang-ying/scripts/eed-desktop.sh
URL="http://127.0.0.1:8765"
# 1. 面板没跑才拉起(跑着就不动它,不误伤)
if ! curl -s --max-time 2 "$URL" >/dev/null 2>&1; then
echo "🟡 面板未运行,正在启动..."
bash /home/ls/cang-ying/scripts/restart-eed.sh >/dev/null 2>&1 &
for i in $(seq 1 15); do
curl -s --max-time 2 "$URL" >/dev/null 2>&1 && break
sleep 1
done
fi
# 2. 面板就绪Firefox 独立窗口打开(贴近 App 体验)
curl -s --max-time 2 "$URL" >/dev/null 2>&1 && {
echo "🟢 打开苍耳面板..."
firefox --new-window "$URL" >/dev/null 2>&1 &
exit 0
}
echo "🔴 面板 15 秒内未就绪,请手动检查 /tmp/eed_web.log"
exit 1