0
0
mirror of https://github.com/yeongpin/cursor-free-vip.git synced 2025-04-24 08:25:23 +00:00

Merge pull request #709 from DaydreamCoding/patch-macOS-bypass_version-use-config_file

fix macOS 'bypass_version.py' get product_json_path from config_file
This commit is contained in:
Pin Studios 2025-04-21 10:55:30 +08:00 committed by GitHub
commit 5aa8dbb614
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,6 +50,8 @@ def get_product_json_path(translator=None):
elif system == "Darwin": # macOS
product_json_path = "/Applications/Cursor.app/Contents/Resources/app/product.json"
if config.has_section('MacPaths') and config.has_option('MacPaths', 'product_json_path'):
product_json_path = config.get('MacPaths', 'product_json_path')
elif system == "Linux":
# Try multiple common paths