7 Commits

Author SHA1 Message Date
CC11001100
ec954b3130 fix: improve panic recovery in main function
- Move panic recovery defer to the beginning of main function to ensure it can catch panics from all subsequent function calls

- Remove unused setupErrorRecovery function

- Add explanatory comment for the defer placement

This change ensures proper error handling throughout the entire program execution, rather than just within the setupErrorRecovery function scope.
2025-04-08 17:28:39 +08:00
煎饼果子卷鲨鱼辣椒
4683460ed5 refactor: update ID generation methods and remove obsolete test file
- Renamed the GenerateMacMachineID method to GenerateSQMID and updated its implementation to generate a new SQM ID in UUID format.
- Enhanced the ID generation logic by introducing a buffer pool for efficient memory management.
- Removed the generator_test.go file as it was no longer needed, streamlining the codebase.
- Updated the generateNewConfig function to utilize the new SQMID generation method, ensuring consistency across ID generation processes.
2025-01-01 18:59:12 +08:00
煎饼果子卷鲨鱼辣椒
df71df76e2 refactor: update project references from 'dacrab' to 'yuaotian'
- Changed module path in go.mod and updated all relevant URLs in README, CHANGELOG, and installation scripts to reflect the new GitHub repository.
- Updated import paths in the main.go file to align with the new module name.
- Adjusted API calls in installation scripts to fetch the latest release from the new repository location.
2024-12-30 19:43:59 +08:00
Vaggelis kavouras
96af6471e4 fix: improve user feedback and error handling in installation scripts and language support
- Removed unnecessary print statement in main.go to streamline output.
- Updated language strings in lang.go to include newline characters for better formatting.
- Enhanced PowerShell installation script (install.ps1) with improved error handling and user prompts for admin rights.
- Modified shell installation script (install.sh) to provide clearer error messages and find matching assets for different architectures.
2024-12-29 00:04:28 +02:00
Vaggelis kavouras
947d11fbc6 refactor: streamline configuration management and enhance UI interactions
- Updated go.mod and go.sum to include necessary dependencies.
- Refactored README.md for clearer installation instructions and improved formatting.
- Enhanced main.go with better error handling and user feedback during execution.
- Improved configuration management in config.go, ensuring atomic writes and better error handling.
- Updated language support in lang.go for clearer user messages.
- Enhanced process management in manager.go to ensure more reliable process termination.
- Improved UI display methods for better user experience.
- Removed outdated test file generator_test.go to clean up the codebase.
- Updated install.ps1 script for better output formatting and error handling.
2024-12-28 23:52:24 +02:00
dacrab
9d41a9a2c7 feat: add cyberpunk logo and auto-execute after install 2024-12-27 13:50:01 +02:00
dacrab
992941fc68 feat: add version flag and fix gitignore 2024-12-27 12:50:02 +02:00