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:
commit
5aa8dbb614
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user