From e5ea1700bd5bf5fff664336eae75469aa8e8229a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=85=8E=E9=A5=BC=E6=9E=9C=E5=AD=90=E5=8D=B7=E9=B2=A8?= =?UTF-8?q?=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Sun, 27 Apr 2025 12:07:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=BB=A5=E6=B7=BB=E5=8A=A0=E9=92=88=E5=AF=B9=20Linux?= =?UTF-8?q?=20=E7=94=A8=E6=88=B7=E7=9A=84=E6=B3=A8=E6=84=8F=E4=BA=8B?= =?UTF-8?q?=E9=A1=B9=EF=BC=8C=E8=AF=B4=E6=98=8E=E8=84=9A=E6=9C=AC=E5=A6=82?= =?UTF-8?q?=E4=BD=95=E5=AE=9A=E4=BD=8D=20Cursor=20=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=EF=BC=8C=E5=B9=B6=E7=A1=AE=E4=BF=9D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=83=BD=E5=A4=9F=E9=80=9A=E8=BF=87=E5=B8=B8=E8=A7=81?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=AE=BF=E9=97=AE=20Cursor=E3=80=82=E5=90=8C?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=BF=AE=E6=AD=A3=E4=BA=86=20README=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E4=B8=AD=E6=96=87=E5=BC=95?= =?UTF-8?q?=E5=8F=B7=E6=A0=BC=E5=BC=8F=EF=BC=8C=E4=BB=A5=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=9A=84=E5=87=86=E7=A1=AE=E6=80=A7=E5=92=8C?= =?UTF-8?q?=E5=8F=AF=E8=AF=BB=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ README_CN.md | 4 +++- README_JP.md | 2 ++ scripts/run/cursor_linux_id_modifier.sh | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 40ae2fa..3df4572 100644 --- a/README.md +++ b/README.md @@ -255,6 +255,8 @@ curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_linux_id_modifier.sh | sudo bash ``` +> **Note for Linux users:** The script attempts to find your Cursor installation by checking common paths (`/usr/bin`, `/usr/local/bin`, `$HOME/.local/bin`, `/opt/cursor`, `/snap/bin`), using the `which cursor` command, and searching within `/usr`, `/opt`, and `$HOME/.local`. If Cursor is installed elsewhere or not found via these methods, the script may fail. Ensure Cursor is accessible via one of these standard locations or methods. + **Windows** ```powershell diff --git a/README_CN.md b/README_CN.md index 310307b..700cf91 100644 --- a/README_CN.md +++ b/README_CN.md @@ -195,6 +195,8 @@ curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_linux_id_modifier.sh | sudo bash ``` +> **Linux 用户请注意:** 该脚本通过检查常用路径(`/usr/bin`, `/usr/local/bin`, `$HOME/.local/bin`, `/opt/cursor`, `/snap/bin`)、使用 `which cursor` 命令以及在 `/usr`、`/opt` 和 `$HOME/.local` 目录内搜索,来尝试定位您的 Cursor 安装。如果 Cursor 安装在其他位置或通过这些方法无法找到,脚本可能会失败。请确保可以通过这些标准位置或方法之一访问到 Cursor。 + **Windows** ```powershell @@ -386,7 +388,7 @@ mv app-update.yml app-update.yml.bak touch app-update.yml chmod 444 app-update.yml -# 打开Cursor设置,将更新模式设置为“无”,该步骤必须执行,否则Cursor依然会自动检查更新 +# 打开Cursor设置,将更新模式设置为"无",该步骤必须执行,否则Cursor依然会自动检查更新 # 步骤:Settings -> Application -> Update, 将Mode设置为none # 注意: cursor-updater修改方法可能已失效。但为了以防万一,还是删除更新目录并创建阻止文件 diff --git a/README_JP.md b/README_JP.md index f2328bc..db6b4ab 100644 --- a/README_JP.md +++ b/README_JP.md @@ -279,6 +279,8 @@ curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com curl -fsSL https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run/cursor_linux_id_modifier.sh | sudo bash ``` +> **Linuxユーザーへの注意:** スクリプトは、一般的なパス(`/usr/bin`, `/usr/local/bin`, `$HOME/.local/bin`, `/opt/cursor`, `/snap/bin`)の確認、`which cursor` コマンドの使用、および `/usr`、`/opt`、`$HOME/.local` ディレクトリ内の検索によって、Cursor のインストールを見つけようとします。Cursorが他の場所にインストールされているか、これらの方法で見つからない場合、スクリプトは失敗する可能性があります。これらの標準的な場所または方法のいずれかを通じてCursorにアクセスできることを確認してください。 + **Windows** ```powershell diff --git a/scripts/run/cursor_linux_id_modifier.sh b/scripts/run/cursor_linux_id_modifier.sh index 6fc4b41..71ed2aa 100755 --- a/scripts/run/cursor_linux_id_modifier.sh +++ b/scripts/run/cursor_linux_id_modifier.sh @@ -766,6 +766,7 @@ main() { echo -e "${BLUE}================================${NC}" echo echo -e "${YELLOW}[重要提示]${NC} 本工具优先修改js文件,更加安全可靠" + echo -e "${YELLOW}[重要提示]${NC} Linux 用户请注意:脚本将尝试通过检查常用路径 (${BLUE}/usr/bin, /usr/local/bin, \\$HOME/.local/bin, /opt/cursor, /snap/bin${NC}), 使用 ${BLUE}which cursor${NC}, 及搜索 ${BLUE}/usr, /opt, \\$HOME/.local${NC} 来定位 Cursor。若无法找到,请确保 Cursor 安装在上述位置之一或可通过这些方法访问。" echo # 执行主要功能