9 Commits

Author SHA1 Message Date
Xx
38e027cf3f feat: Enhance installation script with improved configuration and error handling
- Updated `install.sh` to allow customizable download directory and binary retention options.
- Added argument parsing for `--keep-binary` and `--download-dir` to enhance user flexibility.
- Improved binary verification process with clearer error messages and executable permission settings.
- Streamlined download process by directly saving to the specified download path.
- Enhanced user feedback with instructions for making the downloaded file executable.

These changes improve the installation experience by providing users with more control and clearer guidance during the setup process.
2024-12-11 17:53:41 +08:00
Xx
9237f883c9 feat: Enhance installation script and improve user feedback
- Corrected character encoding issues in binary verification messages in `install.sh`.
- Updated download progress display and error handling for binary downloads.
- Added a new configuration location message in `main.go` for better user guidance.
- Removed obsolete binary files from releases to streamline the project structure.

These changes improve the reliability of the installation process and enhance user experience with clearer feedback and updated messaging.
2024-12-11 17:39:13 +08:00
Xx
53be4b55fd fix: Correct binary verification message and improve download error handling in install.sh
- Fixed a character encoding issue in the binary verification message to ensure proper display.
- Updated the curl command to use a progress bar instead of verbose output, enhancing user experience during downloads.
- Improved the error message for failed binary downloads to include HTTP status information for better debugging.

These changes enhance the reliability and clarity of the installation script, providing users with more accurate feedback during the installation process.
2024-12-11 17:25:45 +08:00
Xx
e46a7ecfec chore: Update installation script and .gitignore for improved functionality
- Enhanced `install.sh` by adding network connectivity checks and executable file format validation to ensure a smoother installation process.
- Updated the installation directory creation logic to handle errors more gracefully.
- Modified the download URL to point to the correct repository branch and improved the curl command to show download progress.
- Cleaned up `.gitignore` by removing obsolete entries related to binaries and IDE configurations, streamlining the ignored files list.
- Added a new function to clean up old versions of the binary during installation.

These changes improve the reliability and user experience of the installation process.
2024-12-11 17:23:22 +08:00
Xx
bedce7425b fix: Correct closing syntax in install.sh and improve error message
- Fixed a syntax error by replacing the incorrect closing brace with `fi` in the `verify_binary` function.
- Updated the error message for setting executable permissions to ensure proper display without encoding issues.

This commit enhances the reliability of the installation script by correcting syntax and improving user feedback.
2024-12-11 17:12:51 +08:00
Xx
61392768a9 fix: Correct syntax error in install.sh
- Fixed a syntax error in the `check_requirements` function by replacing the incorrect closing brace with `fi`.
- This change ensures proper script execution and improves error handling for user permissions.

This commit addresses a critical issue in the installation script to enhance reliability.
2024-12-11 17:08:47 +08:00
Xx
af6c9f05de feat: Update installation script and improve error handling
- Updated `install.sh` to include versioning and enhanced bilingual messages for better user feedback.
- Refactored platform detection logic to dynamically set binary names based on the version.
- Added checks for system requirements, including curl installation and write permissions.
- Improved error handling with context-specific messages for better debugging.
- Cleaned up the `go.mod` file by consolidating dependency requirements.

This commit enhances the installation process and user experience by providing clearer feedback and ensuring necessary prerequisites are met.
2024-12-11 17:02:59 +08:00
Xx
2e27634c8d feat: Remove obsolete binaries and update module dependencies
- Deleted outdated binary files for Windows, Linux, and macOS platforms to streamline the project.
- Updated `go.mod` to change the module path to `cursor-id-modifier` and adjusted dependency versions for `github.com/fatih/color` and `golang.org/x/sys`.
- Modified `install.sh` to reflect new binary naming conventions and download URLs.
- Cleaned up whitespace in `main.go` for improved code readability.

This commit focuses on cleaning up the project structure and ensuring dependencies are up-to-date.
2024-12-11 16:40:22 +08:00
Vaggelis kavouras
3d288e3bd8 feat: Update module path and dependencies; enhance README
- Changed module path from `go-cursor-help` to `github.com/yuaotian/go-cursor-help` in `go.mod`.
- Updated `golang.org/x/sys` dependency version from `v0.25.0` to `v0.28.0`.
- Enhanced `README.md` with improved formatting, added badges, and clarified installation instructions.
- Included important usage guidelines and disclaimers for the Cursor Free Trial Reset Tool, emphasizing compliance with trial terms.

This commit improves module management and enhances documentation clarity for users.
2024-12-10 21:13:47 +02:00