87 Commits

Author SHA1 Message Date
Abdillah Bakari
92d88d275d
fix: correctly identify storage file path when run with sudo 2025-03-07 08:35:12 +03:00
Tinyu-Zhao
8bde88472f 修复在macOS下会将系统进程CursorUIViewService识别成Cursor进程的错误 2025-03-03 09:37:20 +08:00
煎饼果子卷鲨鱼辣椒
419dadf308 壮举:增强光标MAC自动更新禁用机制
- 添加了综合方法来禁用光标自动更新MacOS
 - 实现App-update.yml文件的备份和修改
 - 改进的光标 - 上层目录处理,并使用可靠的错误检查
 - 添加了自动更新禁用的详细验证步骤
 - 在此过程中增强的记录和用户指导
2025-02-26 21:19:07 +08:00
hzz
27b2f28765 Bugfix: 修复删除 cursor-updater 目录失败的问题
问题描述:
在 Windows 系统上,如果用户已经执行过脚本,cursor-updater文件已存在,再次执行脚本删除cursor-updater目录会报错
2025-02-22 22:59:02 +08:00
煎饼果子卷鲨鱼辣椒
644d663a4e feat: Enhance Linux ID modifier with advanced file modification checks
- Improved random ID generation to ensure single-line output
- Added chattr attribute removal for immutable files before modification
- Enhanced file modification reliability by handling read-only file attributes
- Implemented pre-modification checks to prevent potential configuration errors
2025-02-19 11:19:29 +08:00
煎饼果子卷鲨鱼辣椒
e8e37b3f89 feat: Improve Cursor Mac ID modifier with advanced file modification checks
- Added comprehensive file existence and modification verification
- Implemented detailed logging for target file status
- Enhanced script reliability with pre-modification checks
- Prevented unnecessary modifications to already updated files
- Introduced more informative warning and error messages
2025-02-18 16:47:25 +08:00
煎饼果子卷鲨鱼辣椒
d83c95e413 feat: Enhance config file modification with special character escaping
- Added robust character escaping for keys and values in JSON configuration
- Used sed to safely handle special characters during file modification
- Improved reliability of modify_or_add_config function
- Prevented potential sed parsing errors with advanced escaping techniques
2025-02-18 14:53:10 +08:00
PikPikcU
706830daff
Fix syntax error near unexpected token 2025-02-16 07:31:57 +07:00
煎饼果子卷鲨鱼辣椒
dc1e0fd13c refactor: Optimize Cursor Linux ID modifier script for improved reliability
- Simplified process management with more precise process detection using pgrep
- Enhanced system ID generation with improved randomization techniques
- Implemented robust configuration file modification function
- Improved backup and file handling with better error checking
- Streamlined file permission and ownership management
- Added Linux-specific system checks and compatibility improvements
2025-02-16 00:24:58 +08:00
煎饼果子卷鲨鱼辣椒
19f4beec47 refactor: Streamline Cursor app modification script workflow
- Removed unnecessary function calls in main script execution
- Simplified post-configuration process by focusing on essential registry updates
- Removed redundant file tree display after configuration changes
2025-02-13 17:24:10 +08:00
煎饼果子卷鲨鱼辣椒
73773be6d8 fix: Correct syntax error in Cursor app modification script
- Fixed a syntax error by replacing `}` with `fi` in the directory existence check
- Ensured proper shell script syntax for conditional block termination
2025-02-13 16:47:08 +08:00
煎饼果子卷鲨鱼辣椒
dc60f1ef07 refactor: Enhance Cursor app modification script with robust backup and replacement mechanism
- Improved application replacement process with sudo-based file operations
- Added comprehensive backup creation before app modification
- Enhanced error handling during app replacement and restoration
- Simplified temporary file cleanup and permission management
- Removed code signing verification step
- Streamlined sudo usage for critical file operations
2025-02-13 16:38:47 +08:00
煎饼果子卷鲨鱼辣椒
68eff9c9d9 refactor: Improve Cursor app code signing with robust retry mechanism
- Enhanced code signing process with multi-attempt strategy
- Added detailed logging and error handling for signing failures
- Implemented signature verification before app replacement
- Provided manual recovery instructions for persistent signing issues
- Removed automatic backup creation step
2025-02-13 16:29:51 +08:00
煎饼果子卷鲨鱼辣椒
7ed6397075 refactor: Improve MachineGuid update function with enhanced error handling and recovery
- Replaced reg.exe query with PowerShell registry cmdlets for more robust access
- Added comprehensive error checking and validation for registry operations
- Implemented more detailed backup and restore mechanisms
- Enhanced logging and error reporting for MachineGuid modification process
- Improved function to return boolean status for better error tracking
2025-02-12 11:42:09 +08:00
煎饼果子卷鲨鱼辣椒
dc8807f3dc refactor: Improve MachineGuid backup and error handling robustness
- Added fallback backup location when default backup directory is unavailable
- Enhanced GUID parsing with additional null checks
- Improved backup file recovery error handling
- Added warning message for scenarios without backup file
- Refined error recovery mechanism with more comprehensive checks
2025-02-12 11:40:09 +08:00
煎饼果子卷鲨鱼辣椒
30af54da9c feat: Enhance MachineGuid modification with robust error handling and admin privileges
- Added administrator privilege check before script execution
- Improved MachineGuid update function with detailed error handling
- Implemented comprehensive registry backup and validation
- Added color-coded console output for better user feedback
- Enhanced error recovery mechanism with automatic backup restoration
- Integrated new configuration generation and MachineGuid update in main workflow
2025-02-12 11:33:26 +08:00
煎饼果子卷鲨鱼辣椒
bfd4aacecd fix: Correct shell script syntax in file modification function
- Fixed incorrect closing brace `}` with proper shell script `fi` syntax
- Corrected conditional statement termination in file processing
- Maintained consistent error handling and logging approach
2025-02-10 18:06:03 +08:00
煎饼果子卷鲨鱼辣椒
150eb4ac95 fix: Correct syntax errors in Cursor app modification script
- Replaced incorrect closing braces `}` with proper shell script `fi` syntax
- Fixed conditional statement terminations in file modification functions
- Improved script readability and prevented potential syntax errors
- Maintained consistent error handling and logging approach
2025-02-10 17:51:22 +08:00
煎饼果子卷鲨鱼辣椒
27d9b84604 refactor: Streamline Cursor app modification with simplified file handling
- Simplified file copying process using direct `cp` command
- Reduced complexity of signature removal for app and helper components
- Improved error handling and logging for file modification steps
- Optimized file permission and ownership management
- Removed LaunchServices database rebuild step
- Enhanced file content modification with more precise string manipulation
- Simplified app replacement and backup mechanism
2025-02-10 17:43:16 +08:00
煎饼果子卷鲨鱼辣椒
e59b1130ad refactor: Improve file modification logic with precise syntax corrections
- Fixed syntax errors in conditional statements by replacing `}` with `fi`
- Enhanced error handling and code readability in file modification process
- Corrected file existence and content modification checks
- Maintained consistent error logging and validation approach
2025-02-10 17:24:11 +08:00
煎饼果子卷鲨鱼辣椒
f3933dc398 refactor: Enhance Cursor app modification with robust file handling and error management
- Significantly improved file modification process with comprehensive error checking
- Added advanced file copying techniques using pv or rsync with progress tracking
- Implemented detailed validation for file copy integrity
- Enhanced signature removal process with timeout and fallback mechanisms
- Added granular logging for each modification step
- Improved error handling for Helper process signature removal
- Implemented backup and restore strategy for modified files
- Added more informative error messages and user guidance
2025-02-10 17:01:50 +08:00
煎饼果子卷鲨鱼辣椒
79fed06fd9 refactor: Improve codesign process with timeout and fallback mechanisms
- Added timeout for signature removal to prevent hanging
- Implemented fallback strategies for signature removal
- Enhanced error handling for Helper process signature removal
- Added logging for signature removal attempts and failures
2025-02-10 16:16:38 +08:00
煎饼果子卷鲨鱼辣椒
11275296b4 refactor: Enhance Cursor app modification with improved file handling and signing
- Replaced `cp` with `rsync` for more robust file copying
- Added detailed logging for file modification steps
- Improved file permission management during modification
- Enhanced codesign process with better metadata preservation
- Added LaunchServices database rebuild after modification
- Improved error handling and user guidance for signing issues
- Temporarily disabled restore feature for future refinement
2025-02-10 16:05:53 +08:00
煎饼果子卷鲨鱼辣椒
11cda5b82d feat: Add Cursor application path definition for file modification
- Defined a clear path constant for the Cursor application
- Prepared for future file modification operations
- Improved script configuration with explicit application location
2025-02-10 15:53:46 +08:00
煎饼果子卷鲨鱼辣椒
e3da5eadd1 refactor: Implement safe and comprehensive Cursor app file modification
- Introduced a new safe modification approach using temporary app copy
- Added signature removal and re-signing process for enhanced compatibility
- Implemented precise file content modification with position-based replacement
- Created automatic backup of original Cursor.app with timestamp
- Improved error handling and rollback mechanism during modification
- Enhanced file permission and ownership management
- Added detailed logging for each modification step
2025-02-10 15:45:52 +08:00
煎饼果子卷鲨鱼辣椒
41d6554ac8 refactor: Improve backup and modification process for Cursor files
- Updated backup file location to use a dedicated user directory
- Enhanced backup process with more robust file handling
- Simplified backup and file modification error handling
- Added detailed manual modification instructions for edge cases
- Improved logging and user guidance for file modifications
- Added a warning for potential post-modification issues
2025-02-10 11:51:16 +08:00
煎饼果子卷鲨鱼辣椒
4b3d154199 refactor: Simplify Cursor file modification and error handling
- Removed SIP status check and related user interaction
- Simplified file modification process with a single modification flag
- Enhanced error handling with a more concise approach
- Added detailed manual modification instructions for failed file updates
- Reduced verbosity of logging and error messages
- Improved overall script readability and maintainability
2025-02-10 11:28:29 +08:00
煎饼果子卷鲨鱼辣椒
9f42395a3e refactor: Improve MAC address modification user interaction and error handling
- Enhanced MAC address modification prompt with clearer default option
- Added robust input handling for MAC address modification choice
- Implemented informative logging for MAC address modification outcomes
- Simplified user interaction flow with case-based input processing
- Removed redundant log message and improved script logic
2025-02-10 11:22:21 +08:00
煎饼果子卷鲨鱼辣椒
5d33049d7b feat: Add SIP status check and enhance file modification safety in Cursor MAC ID modifier
- Implemented comprehensive System Integrity Protection (SIP) status check
- Added detailed user warnings and guidance for SIP-related risks
- Enhanced file backup and modification process with sudo permissions
- Improved error handling for file system permission issues
- Added safety checks and user confirmation before modifying system files
- Included informative messages about SIP status and recommended actions
2025-02-10 10:25:20 +08:00
煎饼果子卷鲨鱼辣椒
fd6872cb2d refactor: Optimize backup file discovery in restore feature
- Replaced `mapfile` with a more robust `while` loop for backup file collection
- Improved file validation during backup file discovery
- Enhanced error handling and file selection process
- Ensured only valid files are added to the backup files array
2025-02-10 10:18:21 +08:00
煎饼果子卷鲨鱼辣椒
3f3d0a6533 fix: Correct syntax errors in restore feature function
- Fixed missing `fi` statements in conditional blocks
- Resolved shell script syntax issues in `restore_feature()`
- Ensured proper control flow and error handling in backup restoration logic
2025-02-08 15:49:08 +08:00
煎饼果子卷鲨鱼辣椒
2bb74b41e0 refactor: Improve backup restoration logic in Cursor MAC ID modifier
- Enhanced restore feature with robust file discovery using `find`
- Added comprehensive error handling and validation for backup restoration
- Improved file selection process with sorted backup file list
- Implemented proper file permissions and ownership restoration
- Fixed potential edge cases in backup file selection and restoration
2025-02-08 15:39:19 +08:00
煎饼果子卷鲨鱼辣椒
4407650e67 fix: Correct syntax errors in restore feature function
- Fixed missing `fi` statements in conditional blocks
- Resolved potential shell script syntax issues in `restore_feature()`
- Ensured proper control flow and error handling in backup restoration logic
2025-02-08 10:15:31 +08:00
煎饼果子卷鲨鱼辣椒
2cc9adf8b8 refactor: Rename restore feature function for clarity
- Renamed `add_restore_feature()` to `restore_feature()`
- Simplified function name while maintaining existing functionality
- Improved code readability and consistency
2025-02-08 09:46:31 +08:00
煎饼果子卷鲨鱼辣椒
8a3ff84f08 feat: Enhance backup file restoration in Cursor MAC ID modifier
- Improved restore feature with more robust file selection mechanism
- Added validation for backup file selection
- Enhanced user interaction with numbered backup file list
- Implemented error handling for backup restoration process
- Simplified restore feature logic and user experience
2025-02-08 09:45:51 +08:00
煎饼果子卷鲨鱼辣椒
b4fd75079c feat: Add macOS system check and configuration restore feature to Cursor MAC ID modifier
- Implemented system check to ensure script runs only on macOS
- Added new restore functionality to recover previous configuration from backups
- Enhanced script with user-friendly backup file selection
- Improved error handling and system compatibility
2025-02-07 18:22:16 +08:00
煎饼果子卷鲨鱼辣椒
8dff3e96c6 feat: Enhance Cursor Linux ID modifier with improved config generation and validation
- Simplified machine ID generation by directly combining prefix and random ID
- Improved sed escape function to handle special characters
- Added JSON configuration file validation using jq
- Implemented fallback mechanism to restore backup if config is invalid
- Streamlined machine ID and device ID generation process
2025-02-07 18:16:25 +08:00
煎饼果子卷鲨鱼辣椒
4d68f4bdb7 refactor: Improve Cursor ID modifier script messaging and formatting
- Updated script header text for Linux, Mac, and Windows versions
- Refined public account promotion message
- Clarified tool description and version support
- Improved readability of promotional text
- Maintained consistent formatting across platforms
2025-02-07 12:23:39 +08:00
煎饼果子卷鲨鱼辣椒
a1625536a2 feat: Automatically disable Cursor auto-update during MAC ID modification
- Directly execute auto-update disabling after MAC address modification
- Remove interactive menu for auto-update disabling
- Add informative messages about auto-update disabling process
- Provide clear instructions for manually re-enabling updates if needed
2025-02-07 12:13:21 +08:00
煎饼果子卷鲨鱼辣椒
5fb473013b refactor: Simplify Cursor auto-update disabling process
- Streamlined auto-update disabling workflow with direct execution
- Removed interactive menu complexity
- Simplified user input handling
- Maintained core auto-update disabling logic
- Added straightforward prompt for user choice
2025-02-07 12:05:38 +08:00
煎饼果子卷鲨鱼辣椒
3041fb84ca fix: Update Cursor auto-update cache directory path
- Corrected the path for the Cursor updater cache directory
- Changed from `~/Library/Application Support/cursor-updater` to `~/Library/Application Support/Caches/cursor-updater`
- Ensures proper auto-update disabling process on macOS
2025-02-07 11:56:22 +08:00
煎饼果子卷鲨鱼辣椒
76c7832b38 refactor: Streamline Cursor auto-update disabling process
- Simplified auto-update disabling workflow with direct sudo commands
- Improved input handling with explicit input validation
- Added debug logging for input tracking
- Removed complex manual guide function
- Enhanced error handling and command execution
- Simplified file permission and creation logic
2025-02-07 11:30:23 +08:00
煎饼果子卷鲨鱼辣椒
0c59acaed6 fix: Correct syntax errors in configuration file generation function
- Fixed missing `fi` keywords in conditional blocks
- Resolved potential shell script syntax issues in `generate_new_config()`
- Maintained existing configuration file generation logic
2025-02-07 10:42:54 +08:00
煎饼果子卷鲨鱼辣椒
6e773bdd29 refactor: Improve configuration file modification robustness and error handling
- Enhanced `modify_or_add_config()` function with more robust file modification approach
- Added temporary file-based modification to prevent partial writes
- Implemented additional file permission and existence checks
- Improved error handling with more granular logging and error conditions
- Ensured clean file modification and temporary file cleanup
2025-02-07 10:34:50 +08:00
煎饼果子卷鲨鱼辣椒
89751a79c3 feat: Improve error handling in configuration modification function
- Added detailed error messages for configuration file modification failures
- Enhanced logging to provide specific guidance for manual configuration updates
- Maintained existing key replacement and addition logic
- Improved user feedback for configuration modification errors
2025-02-07 10:23:56 +08:00
煎饼果子卷鲨鱼辣椒
1ac23403e5 feat: Enhance configuration modification with error handling and file existence check
- Added file existence check before configuration modification
- Implemented error logging for file modification failures
- Added return value checks for sed operations
- Improved error handling in `modify_or_add_config()` function
- Maintained existing configuration key replacement and addition logic
2025-02-07 10:17:56 +08:00
煎饼果子卷鲨鱼辣椒
88541eaeda fix: Correct syntax error in auto-update disabling function
- Fixed missing `fi` keyword in conditional block
- Resolved potential shell script syntax issue
- Maintained existing auto-update disabling logic
2025-02-07 10:16:14 +08:00
煎饼果子卷鲨鱼辣椒
2bfac391b3 refactor: Improve logging and restart instructions in Cursor file modification script
- Updated logging messages to include specific file path in configuration update
- Simplified file modification success logging
- Added separate log message for Cursor restart instructions
- Maintained existing file modification and permission setting logic
2025-02-07 10:14:58 +08:00
煎饼果子卷鲨鱼辣椒
3970940524 feat: Improve configuration file modification with flexible key handling
- Added `modify_or_add_config()` function to handle existing and new configuration keys
- Enhanced file modification logic to support adding missing keys
- Refactored `generate_new_config()` to use new configuration modification method
- Maintained existing telemetry ID generation and file permission setting
- Improved script flexibility for configuration file updates
2025-02-07 10:08:33 +08:00
煎饼果子卷鲨鱼辣椒
cecccd2c7f feat: Enhance Cursor auto-update disabling workflow
- Implemented interactive menu for auto-update disabling
- Added option to exit auto-update configuration
- Improved error handling and user guidance
- Refined user experience with clearer prompts and input validation
- Updated final success message for MAC address modification
2025-02-07 09:59:54 +08:00