Skip to content

Commit 8c3e6a7

Browse files
committed
Add manual auto-update disable instructions in README files and update cursor_win_id_modifier.ps1 script
- Introduced a new section in both English and Chinese README files detailing how users can manually disable the auto-update feature for Windows and macOS/Linux. - Updated the cursor_win_id_modifier.ps1 script to prompt users for disabling auto-update, providing a more interactive experience and handling the creation of a blocking file. - Enhanced documentation to improve user guidance and control over the application settings.
1 parent e6cfcac commit 8c3e6a7

File tree

3 files changed

+61
-2
lines changed

3 files changed

+61
-2
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,17 @@ The tool generates new unique identifiers for:
181181
- `telemetry.sqmId`
182182
</details>
183183

184+
<details>
185+
<summary><b>Manual Auto-Update Disable</b></summary>
186+
187+
Windows users can manually disable the auto-update feature:
188+
1. Close all Cursor processes
189+
2. Delete directory: `C:\Users\username\AppData\Local\cursor-updater`
190+
3. Create a file with the same name: `cursor-updater` (without extension)
191+
192+
macOS/Linux users can try to locate similar `cursor-updater` directory in their system and perform the same operation.
193+
</details>
194+
184195
<details>
185196
<summary><b>Safety Features</b></summary>
186197

README_CN.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,17 @@ irm https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaoti
176176
- `telemetry.sqmId`
177177
</details>
178178

179+
<details>
180+
<summary><b>手动禁用自动更新</b></summary>
181+
182+
Windows用户可以手动禁用自动更新功能:
183+
1. 关闭所有Cursor进程
184+
2. 删除目录:`C:\Users\用户名\AppData\Local\cursor-updater`
185+
3. 创建同名文件:`cursor-updater`(不带扩展名)
186+
187+
macOS/Linux用户可以尝试在系统中找到类似的`cursor-updater`目录进行相同操作。
188+
</details>
189+
179190
<details>
180191
<summary><b>安全特性</b></summary>
181192

scripts/run/cursor_win_id_modifier.ps1

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ Write-Host "$BLUE[调试]$NC macMachineId: $MAC_MACHINE_ID"
160160
Write-Host "$BLUE[调试]$NC devDeviceId: $UUID"
161161
Write-Host "$BLUE[调试]$NC sqmId: $SQM_ID"
162162

163-
164-
165163
# 显示文件树结构
166164
Write-Host ""
167165
Write-Host "$GREEN[信息]$NC 文件结构:"
@@ -179,7 +177,46 @@ if ($backupFiles) {
179177
} else {
180178
Write-Host "│ └── (空)"
181179
}
180+
181+
# 询问是否要禁用自动更新
182182
Write-Host ""
183+
Write-Host "$YELLOW[询问]$NC 是否要禁用 Cursor 自动更新功能?"
184+
Write-Host "0) 否 - 保持默认设置 (按回车键)"
185+
Write-Host "1) 是 - 禁用自动更新"
186+
$choice = Read-Host "请输入选项 (1 或直接回车)"
187+
188+
if ($choice -eq "1") {
189+
Write-Host ""
190+
Write-Host "$GREEN[信息]$NC 正在处理自动更新..."
191+
$updaterPath = "$env:LOCALAPPDATA\cursor-updater"
192+
193+
if (Test-Path $updaterPath) {
194+
try {
195+
# 强制删除目录
196+
Remove-Item -Path $updaterPath -Force -Recurse -ErrorAction Stop
197+
Write-Host "$GREEN[信息]$NC 成功删除 cursor-updater 目录"
198+
199+
# 创建同名文件
200+
New-Item -Path $updaterPath -ItemType File -Force | Out-Null
201+
Write-Host "$GREEN[信息]$NC 成功创建阻止文件"
202+
}
203+
catch {
204+
Write-Host "$RED[错误]$NC 处理 cursor-updater 时出错: $_"
205+
}
206+
}
207+
else {
208+
# 直接创建阻止文件
209+
New-Item -Path $updaterPath -ItemType File -Force | Out-Null
210+
Write-Host "$GREEN[信息]$NC 成功创建阻止文件"
211+
}
212+
}
213+
elseif ($choice -ne "") {
214+
Write-Host "$YELLOW[信息]$NC 保持默认设置,不进行更改"
215+
}
216+
else {
217+
Write-Host "$YELLOW[信息]$NC 保持默认设置,不进行更改"
218+
}
219+
183220
# 显示公众号信息
184221
Write-Host ""
185222
Write-Host "$GREEN================================$NC"

0 commit comments

Comments
 (0)