mirror of
https://git.axenov.dev/mirrors/cursor-free-vip.git
synced 2025-12-26 05:30:36 +03:00
feat: Add GitHub-based trial reset with improved organization
This commit is contained in:
29
main.py
29
main.py
@@ -10,6 +10,12 @@ import platform
|
||||
import requests
|
||||
import subprocess
|
||||
from config import get_config
|
||||
import time
|
||||
from cursor_register import CursorRegistration
|
||||
from cursor_register_github import main as register_github
|
||||
from cursor_register_google import main as register_google
|
||||
from github_trial_reset import reset_trial as github_reset_trial
|
||||
from utils import MachineIDResetter
|
||||
|
||||
# Only import windll on Windows systems
|
||||
if platform.system() == 'Windows':
|
||||
@@ -369,24 +375,23 @@ def main():
|
||||
print(f"{Fore.CYAN}{'═' * 50}{Style.RESET_ALL}")
|
||||
return
|
||||
elif choice == "1":
|
||||
import reset_machine_manual
|
||||
reset_machine_manual.run(translator)
|
||||
print_menu()
|
||||
resetter = MachineIDResetter()
|
||||
resetter.reset()
|
||||
print(f"{Fore.GREEN}Machine ID reset complete!{Fore.RESET}")
|
||||
elif choice == "2":
|
||||
import cursor_register
|
||||
cursor_register.main(translator)
|
||||
print_menu()
|
||||
if github_reset_trial():
|
||||
print(f"{Fore.GREEN}GitHub trial reset completed successfully!{Fore.RESET}")
|
||||
else:
|
||||
print(f"{Fore.RED}GitHub trial reset failed.{Fore.RESET}")
|
||||
elif choice == "3":
|
||||
import cursor_register_google
|
||||
cursor_register_google.main(translator)
|
||||
registration = CursorRegistration()
|
||||
registration.register()
|
||||
print_menu()
|
||||
elif choice == "4":
|
||||
import cursor_register_github
|
||||
cursor_register_github.main(translator)
|
||||
register_github()
|
||||
print_menu()
|
||||
elif choice == "5":
|
||||
import cursor_register_manual
|
||||
cursor_register_manual.main(translator)
|
||||
register_google()
|
||||
print_menu()
|
||||
elif choice == "6":
|
||||
import quit_cursor
|
||||
|
||||
Reference in New Issue
Block a user