feat: Integrate go-cursor-help for machine ID reset and update README with project acknowledgments
This commit is contained in:
@@ -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-11**: Added headless mode and proxy configuration through .env file.
|
||||||
- **2025-01-20**: Added IMAP to replace tempmail.plus.
|
- **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.
|
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.
|
||||||
|
|||||||
@@ -30,7 +30,11 @@
|
|||||||
## 感谢 linuxDo 这个开源社区(一个真正的技术社区)
|
## 感谢 linuxDo 这个开源社区(一个真正的技术社区)
|
||||||
https://linux.do/
|
https://linux.do/
|
||||||
|
|
||||||
|
## 特别鸣谢
|
||||||
|
本项目的开发过程中得到了众多开源项目和社区成员的支持与帮助,在此特别感谢:
|
||||||
|
|
||||||
|
### 开源项目
|
||||||
|
- [go-cursor-help](https://github.com/yuaotian/go-cursor-help) - 一个优秀的 Cursor 机器码重置工具,本项目的机器码重置功能使用该项目实现。该项目目前已获得 9.1k Stars,是最受欢迎的 Cursor 辅助工具之一。
|
||||||
|
|
||||||
## 请我喝杯茶
|
## 请我喝杯茶
|
||||||
<img src="./screen/28613e3f3f23a935b66a7ba31ff4e3f.jpg" width="300"/> <img src="./screen/mm_facetoface_collect_qrcode_1738583247120.png" width="300"/>
|
<img src="./screen/28613e3f3f23a935b66a7ba31ff4e3f.jpg" width="300"/> <img src="./screen/mm_facetoface_collect_qrcode_1738583247120.png" width="300"/>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ from enum import Enum
|
|||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from exit_cursor import ExitCursor
|
from exit_cursor import ExitCursor
|
||||||
|
import go_cursor_help
|
||||||
import patch_cursor_get_machine_id
|
import patch_cursor_get_machine_id
|
||||||
from reset_machine import MachineIDResetter
|
from reset_machine import MachineIDResetter
|
||||||
|
|
||||||
@@ -376,7 +377,8 @@ def check_cursor_version():
|
|||||||
|
|
||||||
def reset_machine_id(greater_than_0_45):
|
def reset_machine_id(greater_than_0_45):
|
||||||
if 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:
|
else:
|
||||||
MachineIDResetter().reset_machine_ids()
|
MachineIDResetter().reset_machine_ids()
|
||||||
|
|
||||||
|
|||||||
29
go_cursor_help.py
Normal file
29
go_cursor_help.py
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user