Files
karuo-ai/01_卡资(金)/金仓_存储备份/Cursor持久对话/一键安装.command
2026-07-19 00:21:46 +08:00

30 lines
1.3 KiB
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.

#!/bin/bash
cd "$(dirname "$0")"
clear
echo "══════════════════════════════════════"
echo " 可持续对话 · 一键安装"
echo "══════════════════════════════════════"
echo ""
read -p "请输入你的 Cursor 项目文件夹路径(直接拖文件夹到此处再回车): " PROJ
PROJ="${PROJ//\'/}"
PROJ="${PROJ//\"/}"
if [[ -z "$PROJ" || ! -d "$PROJ" ]]; then
echo "❌ 路径无效,请重新运行并拖入正确的项目文件夹"
read -p "按回车关闭..."
exit 1
fi
echo ""
echo "正在安装到: $PROJ"
bash install.sh --project "$PROJ"
echo ""
bash check-mcp.sh || bash verify.sh
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "若上面 check-mcp 全绿 → 安装成功"
echo " 1. Cmd+Q 完全退出 Cursor再重新打开"
echo " 2. Settings → Tools & MCP → 只有 1 个 persistent-chat 绿点"
echo " 3. 浏览器 http://127.0.0.1:13458"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "图文教程见:图文教程/零基础安装指南.md"
read -p "按回车关闭窗口..."