From c3ab2b62ee21e1dd4ebca8a2a10a385807feed27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=A7=91=E5=8F=A1?= Date: Mon, 3 Mar 2025 20:34:14 +0800 Subject: [PATCH] docs: Update README.md with instructions for manually disabling macOS auto-updates (references #255) --- README.md | 17 ++++++++++++++--- README_CN.md | 22 +++++++++++++++++++++- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2eb894c..f2fb96d 100644 --- a/README.md +++ b/README.md @@ -84,11 +84,22 @@ Select `1` to automatically complete the disable operation. **macOS:** ```bash +# NOTE: As tested, this method only works for version 0.45.11 and below. # Close Cursor pkill -f "Cursor" -# Remove update directory and create blocking file -rm -rf ~/Library/Application\ Support/cursor-updater -touch ~/Library/Application\ Support/cursor-updater +# Replacing app-update.yml with a blank/read-only file +cd /Applications/Cursor.app/Contents/Resources +mv app-update.yml app-update.yml.bak +touch app-update.yml +chmod 444 app-update.yml + +# Go to Settings -> Application -> Update, set Mode to none. +# This must be done to prevent Cursor from checking for updates. + +# NOTE: The cursor-updater modification method may no longer be effective +# In any case, remove update directory and create blocking file +rm -rf ~/Library/Application\ Support/Caches/cursor-updater +touch ~/Library/Application\ Support/Caches/cursor-updater ``` **Linux:** diff --git a/README_CN.md b/README_CN.md index 20170ed..7b9cb46 100644 --- a/README_CN.md +++ b/README_CN.md @@ -271,8 +271,28 @@ Windows 用户可以手动禁用自动更新功能: 2. 删除目录:`C:\Users\用户名\AppData\Local\cursor-updater` 3. 创建同名文件:`cursor-updater`(不带扩展名) -macOS/Linux 用户可以尝试在系统中找到类似的`cursor-updater`目录进行相同操作。 +Linux用户可以尝试在系统中找到类似的`cursor-updater`目录进行相同操作。 +MacOS用户按照以下步骤操作: + +```bash +# 注意:经测试,此方法仅适用于0.45.11及以下版本,不支持0.46.*版本 +# 关闭所有 Cursor 进程 +pkill -f "Cursor" + +# 备份app-update.yml并创建空的只读文件代替原文件 +cd /Applications/Cursor.app/Contents/Resources +mv app-update.yml app-update.yml.bak +touch app-update.yml +chmod 444 app-update.yml + +# 打开Cursor设置,将更新模式设置为“无”,该步骤必须执行,否则Cursor依然会自动检查更新 +# 步骤:Settings -> Application -> Update, 将Mode设置为none + +# 注意: cursor-updater修改方法可能已失效。但为了以防万一,还是删除更新目录并创建阻止文件 +rm -rf ~/Library/Application\ Support/Caches/cursor-updater +touch ~/Library/Application\ Support/Caches/cursor-updater +```