diff --git a/README.EN.md b/README.EN.md index 10f7046..d3baf2b 100644 --- a/README.EN.md +++ b/README.EN.md @@ -38,4 +38,10 @@ Please refer to our [online documentation](https://cursor-auto-free-doc.vercel.a - **2025-01-11**: Added headless mode and proxy configuration through .env file. - **2025-01-20**: Added IMAP to replace tempmail.plus. +## Special Thanks +This project has received support and help from many open source projects and community members. We would like to express our special gratitude to: + +### Open Source Projects +- [go-cursor-help](https://github.com/yuaotian/go-cursor-help) - An excellent Cursor machine code reset tool with 9.1k Stars. Our machine code reset functionality is implemented using this project, which is one of the most popular Cursor auxiliary tools. + Inspired by [gpt-cursor-auto](https://github.com/hmhm2022/gpt-cursor-auto); optimized verification and email auto-registration logic; solved the issue of not being able to receive email verification codes. diff --git a/README.md b/README.md index 253203c..9f0495e 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,11 @@ ## 感谢 linuxDo 这个开源社区(一个真正的技术社区) https://linux.do/ +## 特别鸣谢 +本项目的开发过程中得到了众多开源项目和社区成员的支持与帮助,在此特别感谢: +### 开源项目 +- [go-cursor-help](https://github.com/yuaotian/go-cursor-help) - 一个优秀的 Cursor 机器码重置工具,本项目的机器码重置功能使用该项目实现。该项目目前已获得 9.1k Stars,是最受欢迎的 Cursor 辅助工具之一。 ## 请我喝杯茶 diff --git a/cursor_pro_keep_alive.py b/cursor_pro_keep_alive.py index e9b3778..8bb6f6e 100644 --- a/cursor_pro_keep_alive.py +++ b/cursor_pro_keep_alive.py @@ -7,6 +7,7 @@ from enum import Enum from typing import Optional from exit_cursor import ExitCursor +import go_cursor_help import patch_cursor_get_machine_id from reset_machine import MachineIDResetter @@ -376,7 +377,8 @@ def check_cursor_version(): def reset_machine_id(greater_than_0_45): if greater_than_0_45: - print("重置id: 请搜索go-cursor-help") + # 提示请手动执行脚本 https://github.com/chengazhen/cursor-auto-free/blob/main/patch_cursor_get_machine_id.py + go_cursor_help.go_cursor_help() else: MachineIDResetter().reset_machine_ids() diff --git a/go_cursor_help.py b/go_cursor_help.py new file mode 100644 index 0000000..47ed69b --- /dev/null +++ b/go_cursor_help.py @@ -0,0 +1,29 @@ +import platform +import os +import subprocess +from logger import logging + +def go_cursor_help(): + system = platform.system() + logging.info(f"当前操作系统: {system}") + + base_url = "https://aizaozao.com/accelerate.php/https://raw.githubusercontent.com/yuaotian/go-cursor-help/refs/heads/master/scripts/run" + + if system == "Darwin": # macOS + cmd = f'curl -fsSL {base_url}/cursor_mac_id_modifier.sh | sudo bash' + logging.info("执行macOS命令") + os.system(cmd) + elif system == "Linux": + cmd = f'curl -fsSL {base_url}/cursor_linux_id_modifier.sh | sudo bash' + logging.info("执行Linux命令") + os.system(cmd) + elif system == "Windows": + cmd = f'irm {base_url}/cursor_win_id_modifier.ps1 | iex' + logging.info("执行Windows命令") + # 在Windows上使用PowerShell执行命令 + subprocess.run(["powershell", "-Command", cmd], shell=True) + else: + logging.error(f"不支持的操作系统: {system}") + return False + + return True