Skip to content

Commit a76b0ed

Browse files
committed
Add instructions to disable auto-update feature in README files and update script
- Introduced a new section in both English and Chinese README files detailing methods to disable the auto-update feature for Cursor, including a built-in script and manual steps for Windows, macOS, and Linux. - Updated the cursor_win_id_modifier.ps1 script to prompt users for disabling auto-update, enhancing user interaction and control over application settings. - Included warnings about the need for manual updates after disabling the auto-update feature, improving overall user guidance.
1 parent f7345ea commit a76b0ed

File tree

3 files changed

+98
-1
lines changed

3 files changed

+98
-1
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,53 @@
2020
>
2121
> Please check your Cursor version before using this tool.
2222
23+
24+
<details >
25+
<summary><b>🔒 Disable Auto-Update Feature</b></summary>
26+
27+
> To prevent Cursor from automatically updating to unsupported new versions, you can choose to disable the auto-update feature.
28+
29+
#### Method 1: Using Built-in Script (Recommended)
30+
31+
When running the reset tool, the script will ask if you want to disable auto-updates:
32+
```text
33+
[Question] Do you want to disable Cursor auto-update feature?
34+
0) No - Keep default settings (Press Enter)
35+
1) Yes - Disable auto-update
36+
```
37+
38+
Select `1` to automatically complete the disable operation.
39+
40+
#### Method 2: Manual Disable
41+
42+
**Windows:**
43+
1. Close all Cursor processes
44+
2. Delete directory: `%LOCALAPPDATA%\cursor-updater`
45+
3. Create a file with the same name (without extension) in the same location
46+
47+
**macOS:**
48+
```bash
49+
# Close Cursor
50+
pkill -f "Cursor"
51+
# Remove update directory and create blocking file
52+
rm -rf ~/Library/Application\ Support/cursor-updater
53+
touch ~/Library/Application\ Support/cursor-updater
54+
```
55+
56+
**Linux:**
57+
```bash
58+
# Close Cursor
59+
pkill -f "Cursor"
60+
# Remove update directory and create blocking file
61+
rm -rf ~/.config/cursor-updater
62+
touch ~/.config/cursor-updater
63+
```
64+
65+
> ⚠️ **Note:** After disabling auto-updates, you'll need to manually download and install new versions. It's recommended to update only after confirming the new version is compatible.
66+
67+
68+
</details>
69+
2370
---
2471

2572
### 📝 Description
@@ -356,3 +403,4 @@ The above copyright notice and this permission notice shall be included in all
356403
copies or substantial portions of the Software.
357404

358405
</details>
406+

README_CN.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,52 @@
2020
>
2121
> 使用前请确认您的 Cursor 版本。
2222
23+
<details>
24+
<summary><b>🔒 禁用自动更新功能</b></summary>
25+
26+
> 为防止 Cursor 自动更新到不支持的新版本,您可以选择禁用自动更新功能。
27+
28+
#### 方法一:使用内置脚本(推荐)
29+
30+
在运行重置工具时,脚本会询问是否要禁用自动更新:
31+
```text
32+
[询问] 是否要禁用 Cursor 自动更新功能?
33+
0) 否 - 保持默认设置 (按回车键)
34+
1) 是 - 禁用自动更新
35+
```
36+
37+
选择 `1` 即可自动完成禁用操作。
38+
39+
#### 方法二:手动禁用
40+
41+
**Windows:**
42+
1. 关闭所有 Cursor 进程
43+
2. 删除目录:`%LOCALAPPDATA%\cursor-updater`
44+
3. 在相同位置创建同名文件(不带扩展名)
45+
46+
**macOS:**
47+
```bash
48+
# 关闭 Cursor
49+
pkill -f "Cursor"
50+
# 删除更新目录并创建阻止文件
51+
rm -rf ~/Library/Application\ Support/cursor-updater
52+
touch ~/Library/Application\ Support/cursor-updater
53+
```
54+
55+
**Linux:**
56+
```bash
57+
# 关闭 Cursor
58+
pkill -f "Cursor"
59+
# 删除更新目录并创建阻止文件
60+
rm -rf ~/.config/cursor-updater
61+
touch ~/.config/cursor-updater
62+
```
63+
64+
> ⚠️ **注意:** 禁用自动更新后,需要手动下载并安装新版本。建议在确认新版本可用后再更新。
65+
66+
67+
</details>
68+
2369
---
2470

2571
### 📝 问题描述
@@ -290,6 +336,9 @@ macOS/Linux 用户可以尝试在系统中找到类似的`cursor-updater`目录
290336
- ✅ 错误处理和恢复
291337
</details>
292338

339+
340+
341+
293342
## 联系方式
294343

295344
<div align="center">

scripts/run/cursor_win_id_modifier.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Write-Host ""
296296
Write-Host "$YELLOW[询问]$NC 是否要禁用 Cursor 自动更新功能?"
297297
Write-Host "0) 否 - 保持默认设置 (按回车键)"
298298
Write-Host "1) 是 - 禁用自动更新"
299-
$choice = Read-Host "请输入选项 (1 或直接回车)"
299+
$choice = Read-Host "请输入选项 (1)"
300300

301301
if ($choice -eq "1") {
302302
Write-Host ""

0 commit comments

Comments
 (0)