mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 04:22:06 +08:00

- Updated go.mod and go.sum to include necessary dependencies. - Refactored README.md for clearer installation instructions and improved formatting. - Enhanced main.go with better error handling and user feedback during execution. - Improved configuration management in config.go, ensuring atomic writes and better error handling. - Updated language support in lang.go for clearer user messages. - Enhanced process management in manager.go to ensure more reliable process termination. - Improved UI display methods for better user experience. - Removed outdated test file generator_test.go to clean up the codebase. - Updated install.ps1 script for better output formatting and error handling.
246 lines
5.5 KiB
Markdown
246 lines
5.5 KiB
Markdown
# 🚀 Cursor Free Trial Reset Tool
|
||
|
||
<div align="center">
|
||
|
||
[](https://github.com/dacrab/go-cursor-help/releases/latest)
|
||
[](https://github.com/dacrab/go-cursor-help/blob/master/LICENSE)
|
||
[](https://github.com/dacrab/go-cursor-help/stargazers)
|
||
|
||
[🌟 English](#english) | [🌏 中文](#chinese)
|
||
|
||
<img src="https://ai-cursor.com/wp-content/uploads/2024/09/logo-cursor-ai-png.webp" alt="Cursor Logo" width="120"/>
|
||
|
||
</div>
|
||
|
||
---
|
||
|
||
## 🌟 English
|
||
|
||
### 📝 Description
|
||
|
||
> Resets Cursor's free trial limitation when you see:
|
||
|
||
```text
|
||
Too many free trial accounts used on this machine.
|
||
Please upgrade to pro. We have this limit in place
|
||
to prevent abuse. Please let us know if you believe
|
||
this is a mistake.
|
||
```
|
||
|
||
### 💻 System Support
|
||
|
||
<table>
|
||
<tr>
|
||
<td>
|
||
|
||
**Windows** ✅
|
||
- x64 (64-bit)
|
||
- x86 (32-bit)
|
||
|
||
</td>
|
||
<td>
|
||
|
||
**macOS** ✅
|
||
- Intel (x64)
|
||
- Apple Silicon (M1/M2)
|
||
|
||
</td>
|
||
<td>
|
||
|
||
**Linux** ✅
|
||
- x64 (64-bit)
|
||
- x86 (32-bit)
|
||
- ARM64
|
||
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
### 🚀 One-Click Solution
|
||
|
||
**Linux/macOS**: Copy and paste in terminal
|
||
```bash
|
||
curl -fsSL https://raw.githubusercontent.com/dacrab/go-cursor-help/master/scripts/install.sh | sudo bash
|
||
```
|
||
|
||
**Windows**: Copy and paste in PowerShell (Admin)
|
||
```powershell
|
||
irm https://raw.githubusercontent.com/dacrab/go-cursor-help/master/scripts/install.ps1 | iex
|
||
```
|
||
|
||
That's it! The script will:
|
||
1. ✨ Install the tool automatically
|
||
2. 🔄 Reset your Cursor trial immediately
|
||
|
||
### 📦 Manual Installation
|
||
|
||
> Download the appropriate file for your system from [releases](https://github.com/dacrab/go-cursor-help/releases/latest)
|
||
|
||
<details>
|
||
<summary>Windows Packages</summary>
|
||
|
||
- 64-bit: `cursor-id-modifier_windows_x64.exe`
|
||
- 32-bit: `cursor-id-modifier_windows_x86.exe`
|
||
</details>
|
||
|
||
<details>
|
||
<summary>macOS Packages</summary>
|
||
|
||
- Intel: `cursor-id-modifier_darwin_x64_intel`
|
||
- M1/M2: `cursor-id-modifier_darwin_arm64_apple_silicon`
|
||
</details>
|
||
|
||
<details>
|
||
<summary>Linux Packages</summary>
|
||
|
||
- 64-bit: `cursor-id-modifier_linux_x64`
|
||
- 32-bit: `cursor-id-modifier_linux_x86`
|
||
- ARM64: `cursor-id-modifier_linux_arm64`
|
||
</details>
|
||
|
||
### 🔧 Technical Details
|
||
|
||
<details>
|
||
<summary><b>Configuration Files</b></summary>
|
||
|
||
The program modifies Cursor's `storage.json` config file located at:
|
||
|
||
- Windows: `%APPDATA%\Cursor\User\globalStorage\storage.json`
|
||
- macOS: `~/Library/Application Support/Cursor/User/globalStorage/storage.json`
|
||
- Linux: `~/.config/Cursor/User/globalStorage/storage.json`
|
||
</details>
|
||
|
||
<details>
|
||
<summary><b>Modified Fields</b></summary>
|
||
|
||
The tool generates new unique identifiers for:
|
||
- `telemetry.machineId`
|
||
- `telemetry.macMachineId`
|
||
- `telemetry.devDeviceId`
|
||
- `telemetry.sqmId`
|
||
</details>
|
||
|
||
<details>
|
||
<summary><b>Safety Features</b></summary>
|
||
|
||
- ✅ Safe process termination
|
||
- ✅ Atomic file operations
|
||
- ✅ Error handling and recovery
|
||
</details>
|
||
|
||
---
|
||
|
||
## 🌏 Chinese
|
||
|
||
### 📝 问题描述
|
||
|
||
> 当看到以下提示时重置Cursor试用期:
|
||
|
||
```text
|
||
Too many free trial accounts used on this machine.
|
||
Please upgrade to pro. We have this limit in place
|
||
to prevent abuse. Please let us know if you believe
|
||
this is a mistake.
|
||
```
|
||
|
||
### 💻 系统支持
|
||
|
||
<table>
|
||
<tr>
|
||
<td>
|
||
|
||
**Windows** ✅
|
||
- x64 & x86
|
||
|
||
</td>
|
||
<td>
|
||
|
||
**macOS** ✅
|
||
- Intel & M-series
|
||
|
||
</td>
|
||
<td>
|
||
|
||
**Linux** ✅
|
||
- x64 & ARM64
|
||
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
### 🚀 一键解决
|
||
|
||
**Linux/macOS**: 在终端中复制粘贴
|
||
```bash
|
||
curl -fsSL https://raw.githubusercontent.com/dacrab/go-cursor-help/master/scripts/install.sh | sudo bash
|
||
```
|
||
|
||
**Windows**: 在PowerShell(管理员)中复制粘贴
|
||
```powershell
|
||
irm https://raw.githubusercontent.com/dacrab/go-cursor-help/master/scripts/install.ps1 | iex
|
||
```
|
||
|
||
就这样!脚本会:
|
||
1. ✨ 自动安装工具
|
||
2. 🔄 立即重置Cursor试用期
|
||
|
||
### 🔧 技术细节
|
||
|
||
<details>
|
||
<summary><b>配置文件</b></summary>
|
||
|
||
程序修改Cursor的`storage.json`配置文件,位于:
|
||
|
||
- Windows: `%APPDATA%\Cursor\User\globalStorage\`
|
||
- macOS: `~/Library/Application Support/Cursor/User/globalStorage/`
|
||
- Linux: `~/.config/Cursor/User/globalStorage/`
|
||
</details>
|
||
|
||
<details>
|
||
<summary><b>修改字段</b></summary>
|
||
|
||
工具会生成新的唯一标识符:
|
||
- `telemetry.machineId`
|
||
- `telemetry.macMachineId`
|
||
- `telemetry.devDeviceId`
|
||
- `telemetry.sqmId`
|
||
</details>
|
||
|
||
<details>
|
||
<summary><b>安全特性</b></summary>
|
||
|
||
- ✅ 安全的进程终止
|
||
- ✅ 原子文件操作
|
||
- ✅ 错误处理和恢复
|
||
</details>
|
||
|
||
---
|
||
|
||
## ⭐ Project Stats
|
||
|
||
<div align="center">
|
||
|
||
[](https://star-history.com/#yuaotian/go-cursor-help&Date)
|
||
|
||

|
||
|
||
</div>
|
||
|
||
## 📄 License
|
||
|
||
<details>
|
||
<summary><b>MIT License</b></summary>
|
||
|
||
Copyright (c) 2024
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
of this software and associated documentation files (the "Software"), to deal
|
||
in the Software without restriction, including without limitation the rights
|
||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
copies of the Software, and to permit persons to whom the Software is
|
||
furnished to do so, subject to the following conditions:
|
||
|
||
The above copyright notice and this permission notice shall be included in all
|
||
copies or substantial portions of the Software.
|
||
</details>
|