diff --git a/.env b/.env index bf897df..2a1e310 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -version=1.9.06 -VERSION=1.9.06 +version=1.10.01 +VERSION=1.10.01 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e96499..f7a88d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 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 +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. Fix: Some Issues | 修復一些問題 + ## v1.9.05 1. Refactor: Using match-case to refactor language mapping and menu selection logic, making the code clearer and more maintainable. | 使用 match-case 重构语言映射和菜单选择逻辑,使代码更清晰、可维护性更高。 2. Ci: Update the Python version in the ARM64 Docker build container to 3.10, making it more compatible and easier to migrate in the future. | 更新 ARM64 Docker 构建容器中的 Python 版本至 3.10,兼容性更强,方便未来迁移。 diff --git a/bypass_token_limit.py b/bypass_token_limit.py index c2a64a4..d983394 100644 --- a/bypass_token_limit.py +++ b/bypass_token_limit.py @@ -5,7 +5,7 @@ import tempfile import glob from colorama import Fore, Style, init import configparser -from new_signup import get_user_documents_path +import sys from config import get_config from datetime import datetime @@ -23,6 +23,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_workbench_cursor_path(translator=None) -> str: """Get Cursor workbench.desktop.main.js path""" system = platform.system()