From 56f9a86e7a7e21f301cf3a0eb9394f559fcadb6d Mon Sep 17 00:00:00 2001 From: yeongpin Date: Wed, 16 Apr 2025 11:33:17 +0800 Subject: [PATCH] Update version to 1.10.02, enhance CHANGELOG with new project guidelines, and implement a function to retrieve user Documents folder path in reset_machine_manual.py and totally_reset_cursor.py. --- .env | 4 ++-- CHANGELOG.md | 11 +++++++++++ reset_machine_manual.py | 15 ++++++++++++++- totally_reset_cursor.py | 15 ++++++++++++++- 4 files changed, 41 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 2a1e310..6720ee8 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -version=1.10.01 -VERSION=1.10.01 +version=1.10.02 +VERSION=1.10.02 diff --git a/CHANGELOG.md b/CHANGELOG.md index f7a88d6..7acc397 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## v1.10.02 +1. Remove: Remove All Auto generating fake Google email accounts and OAuth access | 移除所有自動生成假 Google 電子郵件帳戶和 OAuth 訪問 +2. Follow GitHub Terms of Service | 遵守 GitHub Terms of Service +3. Follow Cursor Terms of Service | 遵守 Cursor Terms of Service +4. All are for educational purposes, currently the repo does not violate any laws | 全都是教育用途,目前 repo 沒有違反任何法律 +5. This project adopts CC BY-NC-ND 4.0 , do not use for commercial purposes | 本專案採用 CC BY-NC-ND 4.0,拒絕任何商業用途 +6. Use & Cherish | 切用且珍惜 +7. Same as v1.10.01 | 與 v1.10.01 相同 +8. Fix: reset machine ID no module name 'new_signup' | 修復機器 ID 重置 no module name 'new_signup' +9. Fix: Some Issues | 修復一些問題 + ## v1.10.01 1. Remove: Remove All Auto generating fake Google email accounts and OAuth access | 移除所有自動生成假 Google 電子郵件帳戶和 OAuth 訪問 2. Follow GitHub Terms of Service | 遵守 GitHub Terms of Service diff --git a/reset_machine_manual.py b/reset_machine_manual.py index 4c34b68..7125b4f 100644 --- a/reset_machine_manual.py +++ b/reset_machine_manual.py @@ -12,7 +12,6 @@ import glob from colorama import Fore, Style, init from typing import Tuple import configparser -from new_signup import get_user_documents_path import traceback from config import get_config from datetime import datetime @@ -31,6 +30,20 @@ EMOJI = { "WARNING": "⚠️", } +def get_user_documents_path(): + """Get user Documents folder path""" + if sys.platform == "win32": + return os.path.join(os.path.expanduser("~"), "Documents") + elif sys.platform == "darwin": + return os.path.join(os.path.expanduser("~"), "Documents") + else: # Linux + # Get actual user's home directory + sudo_user = os.environ.get('SUDO_USER') + if sudo_user: + return os.path.join("/home", sudo_user, "Documents") + return os.path.join(os.path.expanduser("~"), "Documents") + + def get_cursor_paths(translator=None) -> Tuple[str, str]: """ Get Cursor related paths""" system = platform.system() diff --git a/totally_reset_cursor.py b/totally_reset_cursor.py index 7bf0ffb..9d1767f 100644 --- a/totally_reset_cursor.py +++ b/totally_reset_cursor.py @@ -11,7 +11,6 @@ import tempfile from colorama import Fore, Style, init from typing import Tuple import configparser -from new_signup import get_user_documents_path import traceback from config import get_config import glob @@ -30,6 +29,20 @@ EMOJI = { "WARNING": "⚠️", } +def get_user_documents_path(): + """Get user Documents folder path""" + if sys.platform == "win32": + return os.path.join(os.path.expanduser("~"), "Documents") + elif sys.platform == "darwin": + return os.path.join(os.path.expanduser("~"), "Documents") + else: # Linux + # Get actual user's home directory + sudo_user = os.environ.get('SUDO_USER') + if sudo_user: + return os.path.join("/home", sudo_user, "Documents") + return os.path.join(os.path.expanduser("~"), "Documents") + + def get_cursor_paths(translator=None) -> Tuple[str, str]: """ Get Cursor related paths""" system = platform.system()