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.
This commit is contained in:
Xx
2024-12-11 17:02:59 +08:00
parent 2e27634c8d
commit af6c9f05de
9 changed files with 404 additions and 169 deletions

6
go.mod
View File

@@ -2,12 +2,10 @@ module cursor-id-modifier
go 1.21
require (
github.com/fatih/color v1.15.0
golang.org/x/sys v0.13.0
)
require github.com/fatih/color v1.15.0
require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
golang.org/x/sys v0.13.0 // indirect
)