diff --git a/Makefile b/Makefile deleted file mode 100644 index f60895c..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -.PHONY: build clean test vet - -# Build the application -build: - go build -v ./cmd/cursor-id-modifier - -# Clean build artifacts -clean: - rm -f cursor-id-modifier - go clean - -# Run tests -test: - go test -v ./... - -# Run go vet -vet: - go vet ./... - -# Run all checks -all: vet test build \ No newline at end of file diff --git a/README.md b/README.md index ec98ffc..20dba40 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,21 @@ [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&logo=bookstack)](https://github.com/dacrab/cursor-id-modifier/blob/main/LICENSE) [![Stars](https://img.shields.io/github/stars/dacrab/cursor-id-modifier?style=flat-square&logo=github)](https://github.com/dacrab/cursor-id-modifier/stargazers) -[English](#-english) | [中文](#-chinese) +[🌟 English](#english) | [🌏 中文](#chinese) Cursor Logo -# 🌟 English +--- + +## 🌟 English ### 📝 Description -Resets Cursor's free trial limitation when you see: +> 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 @@ -27,81 +29,120 @@ this is a mistake. ### 💻 System Support + + + + + + +
+ **Windows** ✅ - x64 (64-bit) - x86 (32-bit) + + **macOS** ✅ - Intel (x64) - Apple Silicon (M1/M2) + + **Linux** ✅ - x64 (64-bit) - x86 (32-bit) - ARM64 -### 📥 One-Click Solution +
+ +### 🚀 One-Click Solution + +
+Linux/macOS: Copy and paste in terminal -**Linux/macOS**: Copy and paste in terminal: ```bash curl -fsSL https://raw.githubusercontent.com/dacrab/cursor-id-modifier/main/scripts/install.sh | sudo bash && cursor-id-modifier ``` +
+ +
+Windows: Copy and paste in PowerShell (Admin) -**Windows**: Copy and paste in PowerShell (Admin): ```powershell irm https://raw.githubusercontent.com/dacrab/cursor-id-modifier/main/scripts/install.ps1 | iex; cursor-id-modifier ``` +
That's it! The script will: -1. Install the tool automatically -2. Reset your Cursor trial immediately +1. ✨ Install the tool automatically +2. 🔄 Reset your Cursor trial immediately + +### 📦 Manual Installation -### 🔧 Manual Installation +> Download the appropriate file for your system from [releases](https://github.com/dacrab/cursor-id-modifier/releases/latest) -Download the appropriate file for your system from [releases](https://github.com/dacrab/cursor-id-modifier/releases/latest): +
+Windows Packages -**Windows**: - 64-bit: `cursor-id-modifier_vX.X.X_Windows_x64.zip` - 32-bit: `cursor-id-modifier_vX.X.X_Windows_x86.zip` +
+ +
+macOS Packages -**macOS**: - Intel: `cursor-id-modifier_vX.X.X_macOS_x64_intel.tar.gz` - M1/M2: `cursor-id-modifier_vX.X.X_macOS_arm64_apple_silicon.tar.gz` +
+ +
+Linux Packages -**Linux**: - 64-bit: `cursor-id-modifier_vX.X.X_Linux_x64.tar.gz` - 32-bit: `cursor-id-modifier_vX.X.X_Linux_x86.tar.gz` - ARM64: `cursor-id-modifier_vX.X.X_Linux_arm64.tar.gz` +
### 🔧 Technical Details -#### Configuration Files +
+Configuration Files + 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` +
+ +
+Modified Fields -#### Modified Fields The tool generates new unique identifiers for: - `telemetry.machineId` - `telemetry.macMachineId` - `telemetry.devDeviceId` - `telemetry.sqmId` +
+ +
+Safety Features -#### Safety Features - ✅ Safe process termination - ✅ Atomic file operations - ✅ Error handling and recovery +
--- -# 🌏 Chinese +## 🌏 Chinese ### 📝 问题描述 -当看到以下提示时重置Cursor试用期: +> 当看到以下提示时重置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 @@ -110,57 +151,97 @@ this is a mistake. ### 💻 系统支持 -**Windows** ✅ x64 & x86 -**macOS** ✅ Intel & M-series -**Linux** ✅ x64 & ARM64 + + + + + + +
-### 📥 一键解决 +**Windows** ✅ +- x64 & x86 + + + +**macOS** ✅ +- Intel & M-series + + + +**Linux** ✅ +- x64 & ARM64 + +
+ +### 🚀 一键解决 + +
+Linux/macOS: 在终端中复制粘贴 -**Linux/macOS**: 在终端中复制粘贴: ```bash curl -fsSL https://raw.githubusercontent.com/dacrab/cursor-id-modifier/main/scripts/install.sh | sudo bash && cursor-id-modifier ``` +
+ +
+Windows: 在PowerShell(管理员)中复制粘贴 -**Windows**: 在PowerShell(管理员)中复制粘贴: ```powershell irm https://raw.githubusercontent.com/dacrab/cursor-id-modifier/main/scripts/install.ps1 | iex; cursor-id-modifier ``` +
就这样!脚本会: -1. 自动安装工具 -2. 立即重置Cursor试用期 +1. ✨ 自动安装工具 +2. 🔄 立即重置Cursor试用期 ### 🔧 技术细节 -#### 配置文件 +
+配置文件 + 程序修改Cursor的`storage.json`配置文件,位于: + - Windows: `%APPDATA%\Cursor\User\globalStorage\` - macOS: `~/Library/Application Support/Cursor/User/globalStorage/` - Linux: `~/.config/Cursor/User/globalStorage/` +
+ +
+修改字段 -#### 修改字段 工具会生成新的唯一标识符: - `telemetry.machineId` - `telemetry.macMachineId` - `telemetry.devDeviceId` - `telemetry.sqmId` +
+ +
+安全特性 -#### 安全特性 - ✅ 安全的进程终止 - ✅ 原子文件操作 - ✅ 错误处理和恢复 +
-## ⭐ Star History or Repobeats +--- -[![Star History Chart](https://api.star-history.com/svg?repos=yuaotian/go-cursor-help&type=Date)](https://star-history.com/#yuaotian/go-cursor-help&Date) +## ⭐ Project Stats +
+ +[![Star History Chart](https://api.star-history.com/svg?repos=yuaotian/go-cursor-help&type=Date)](https://star-history.com/#yuaotian/go-cursor-help&Date) ![Repobeats analytics image](https://repobeats.axiom.co/api/embed/ddaa9df9a94b0029ec3fad399e1c1c4e75755477.svg "Repobeats analytics image") +
## 📄 License -MIT License +
+MIT License Copyright (c) 2024 @@ -173,4 +254,4 @@ 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. - +
diff --git a/scripts/build_all.sh b/scripts/build_all.sh old mode 100644 new mode 100755