@@ -27,35 +27,86 @@ this is a mistake.
2727
2828### 💻 System Support
2929
30- ** Windows** ✅ AMD64 & ARM64
31- ** macOS** ✅ AMD64 & ARM64
32- ** Linux** ✅ AMD64 & ARM64
30+ ** Windows** ✅ x64
31+ ** macOS** ✅ Intel & M-series
32+ ** Linux** ✅ x64 & ARM64
3333
3434### 📥 Installation
3535
36+ #### Automatic Installation (Recommended)
37+
3638** Linux/macOS**
3739``` bash
38- curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/master/install.sh | bash
40+ curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/master/scripts/ install.sh | sudo bash
3941```
4042
41- ** Windows** (Run in PowerShell as Admin)
43+ ** Windows** (Run PowerShell as Admin)
4244``` powershell
43- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; $arch = if ([Environment]::Is64BitOperatingSystem) { if ([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture -eq 'Arm64') { 'arm64' } else { 'amd64' } } else { 'amd64' }; $ver = ( irm https://api.github .com/repos/ yuaotian/go-cursor-help/releases/latest).tag_name.TrimStart('v'); $outfile = "$env:TEMP\cursor_id_modifier.exe"; irm "https://github.com/yuaotian/go-cursor-help/releases/download/v${ver}/cursor_id_modifier_${ver}_windows_${arch}.exe" -OutFile $outfile; & $outfile; Remove-Item -Path $outfile -ErrorAction SilentlyContinue
45+ irm https://raw.githubusercontent .com/yuaotian/go-cursor-help/master/scripts/install.ps1 | iex
4446```
4547
48+ The installation script will automatically:
49+ - Request necessary privileges (sudo/admin)
50+ - Close any running Cursor instances
51+ - Backup existing configuration
52+ - Install the tool
53+ - Add it to system PATH
54+ - Clean up temporary files
55+
56+ #### Manual Installation
57+
58+ 1 . Download the latest release for your system from the [ releases page] ( https://github.com/yuaotian/go-cursor-help/releases )
59+ 2 . Extract and run with administrator/root privileges:
60+ ``` bash
61+ # Linux/macOS
62+ sudo ./cursor-id-modifier
63+
64+ # Windows (PowerShell Admin)
65+ .\c ursor-id-modifier.exe
66+ ```
67+
68+ #### Manual Configuration Method
69+
70+ 1 . Close Cursor completely
71+ 2 . Navigate to the configuration file location:
72+ - Windows: ` %APPDATA%\Cursor\User\globalStorage\storage.json `
73+ - macOS: ` ~/Library/Application Support/Cursor/User/globalStorage/storage.json `
74+ - Linux: ` ~/.config/Cursor/User/globalStorage/storage.json `
75+ 3 . Create a backup of ` storage.json `
76+ 4 . Edit ` storage.json ` and update these fields with new random UUIDs:
77+ ``` json
78+ {
79+ "telemetry.machineId" : " generate-new-uuid" ,
80+ "telemetry.macMachineId" : " generate-new-uuid" ,
81+ "telemetry.devDeviceId" : " generate-new-uuid" ,
82+ "telemetry.sqmId" : " generate-new-uuid" ,
83+ "lastModified" : " 2024-01-01T00:00:00.000Z" ,
84+ "version" : " 1.0.1"
85+ }
86+ ```
87+ 5 . Save the file and restart Cursor
88+
4689### 🔧 Technical Details
4790
48- The program modifies Cursor's ` storage.json ` config file:
91+ #### Configuration Files
92+ The program modifies Cursor's ` storage.json ` config file located at:
4993- Windows: ` %APPDATA%\Cursor\User\globalStorage\ `
5094- macOS: ` ~/Library/Application Support/Cursor/User/globalStorage/ `
5195- Linux: ` ~/.config/Cursor/User/globalStorage/ `
5296
53- Generates new unique identifiers for:
97+ #### Modified Fields
98+ The tool generates new unique identifiers for:
5499- ` telemetry.machineId `
55100- ` telemetry.macMachineId `
56101- ` telemetry.devDeviceId `
57102- ` telemetry.sqmId `
58103
104+ #### Safety Features
105+ - Automatic backup of existing configuration
106+ - Safe process termination
107+ - Atomic file operations
108+ - Error handling and rollback
109+
59110---
60111
61112# 🌏 Chinese
@@ -73,37 +124,99 @@ this is a mistake.
73124
74125### 💻 系统支持
75126
76- ** Windows** ✅ AMD64和ARM64
77- ** macOS** ✅ AMD64和ARM64
78- ** Linux** ✅ AMD64和ARM64
127+ ** Windows** ✅ x64
128+ ** macOS** ✅ Intel和M系列
129+ ** Linux** ✅ x64和ARM64
79130
80131### 📥 安装方法
81132
133+ #### 自动安装(推荐)
134+
82135** Linux/macOS**
83136``` bash
84- curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/master/install.sh | bash
137+ curl -fsSL https://raw.githubusercontent.com/yuaotian/go-cursor-help/master/scripts/ install.sh | sudo bash
85138```
86139
87140** Windows** (以管理员身份运行PowerShell)
88141``` powershell
89- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; $arch = if ([Environment]::Is64BitOperatingSystem) { if ([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture -eq 'Arm64') { 'arm64' } else { 'amd64' } } else { 'amd64' }; $ver = ( irm https://api.github .com/repos/ yuaotian/go-cursor-help/releases/latest).tag_name.TrimStart('v'); $outfile = "$env:TEMP\cursor_id_modifier.exe"; irm "https://github.com/yuaotian/go-cursor-help/releases/download/v${ver}/cursor_id_modifier_${ver}_windows_${arch}.exe" -OutFile $outfile; & $outfile; Remove-Item -Path $outfile -ErrorAction SilentlyContinue
142+ irm https://raw.githubusercontent .com/yuaotian/go-cursor-help/master/scripts/install.ps1 | iex
90143```
91144
145+ 安装脚本会自动:
146+ - 请求必要的权限(sudo/管理员)
147+ - 关闭所有运行中的Cursor实例
148+ - 备份现有配置
149+ - 安装工具
150+ - 添加到系统PATH
151+ - 清理临时文件
152+
153+ #### 手动安装
154+
155+ 1 . 从[ 发布页面] ( https://github.com/yuaotian/go-cursor-help/releases ) 下载适合您系统的最新版本
156+ 2 . 解压并以管理员/root权限运行:
157+ ``` bash
158+ # Linux/macOS
159+ sudo ./cursor-id-modifier
160+
161+ # Windows (PowerShell 管理员)
162+ .\c ursor-id-modifier.exe
163+ ```
164+
165+ #### 手动配置方法
166+
167+ 1 . 完全关闭 Cursor
168+ 2 . 找到配置文件位置:
169+ - Windows: ` %APPDATA%\Cursor\User\globalStorage\storage.json `
170+ - macOS: ` ~/Library/Application Support/Cursor/User/globalStorage/storage.json `
171+ - Linux: ` ~/.config/Cursor/User/globalStorage/storage.json `
172+ 3 . 备份 ` storage.json `
173+ 4 . 编辑 ` storage.json ` 并更新以下字段(使用新的随机UUID):
174+ ``` json
175+ {
176+ "telemetry.machineId" : " 生成新的uuid" ,
177+ "telemetry.macMachineId" : " 生成新的uuid" ,
178+ "telemetry.devDeviceId" : " 生成新的uuid" ,
179+ "telemetry.sqmId" : " 生成新的uuid" ,
180+ "lastModified" : " 2024-01-01T00:00:00.000Z" ,
181+ "version" : " 1.0.1"
182+ }
183+ ```
184+ 5 . 保存文件并重启 Cursor
185+
92186### 🔧 技术细节
93187
94- 程序修改Cursor的` storage.json ` 配置文件:
188+ #### 配置文件
189+ 程序修改Cursor的` storage.json ` 配置文件,位于:
95190- Windows: ` %APPDATA%\Cursor\User\globalStorage\ `
96191- macOS: ` ~/Library/Application Support/Cursor/User/globalStorage/ `
97192- Linux: ` ~/.config/Cursor/User/globalStorage/ `
98193
99- 生成新的唯一标识符:
194+ #### 修改字段
195+ 工具会生成新的唯一标识符:
100196- ` telemetry.machineId `
101197- ` telemetry.macMachineId `
102198- ` telemetry.devDeviceId `
103199- ` telemetry.sqmId `
104200
201+ #### 安全特性
202+ - 自动备份现有配置
203+ - 安全的进程终止
204+ - 原子文件操作
205+ - 错误处理和回滚
206+
105207## 📄 License
106208
107209MIT License
108210
109211Copyright (c) 2024
212+
213+ Permission is hereby granted, free of charge, to any person obtaining a copy
214+ of this software and associated documentation files (the "Software"), to deal
215+ in the Software without restriction, including without limitation the rights
216+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
217+ copies of the Software, and to permit persons to whom the Software is
218+ furnished to do so, subject to the following conditions:
219+
220+ The above copyright notice and this permission notice shall be included in all
221+ copies or substantial portions of the Software.
222+
0 commit comments