aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src/utils/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* fix(windows): resolve Java executable path issues on WindowsBegonia, HE2026-01-161-0/+1
| | | | | | | | | | | | | | - Add normalize_java_path utility function with Windows-specific handling - Automatically append .exe extension when missing on Windows - Use 'where' command to locate java.exe in PATH if not found - Improve error messages with full path display for debugging - Apply path normalization in both start_game and install_forge commands This fixes the "Failed to launch java: program not found" error on Windows by properly handling Java executable paths, including relative paths, missing extensions, and PATH resolution. Reviewed-by: Claude Sonnet 4.5
* feat: integrate AI assistant functionality and configuration managementHsiangNianian2026-01-161-0/+2
| | | | Implemented new commands for managing the AI assistant, including health checks, chat interactions, and model listings for both Ollama and OpenAI. Enhanced the configuration system to support raw JSON editing and added a dedicated AssistantConfig structure for better management of assistant settings. This update significantly improves the user experience by providing comprehensive control over AI interactions and configurations.
* chore: translate commentsHsiangNianian2026-01-131-3/+2
|
* chore(style): format codeHsiangNianian2026-01-131-1/+1
|
* Implement library rules validation and zip extraction utilityHsiangNianian2026-01-131-2/+1
| | | | | | - Added `is_library_allowed` function to evaluate library permissions based on defined rules. - Introduced `rule_matches` helper function to check OS compatibility for rules. - Created `extract_zip` function to handle zip file extraction, including directory creation and skipping of META-INF entries.
* feat: add Minecraft DropOut launcher with version fetching and basic UIHsiangNianian2026-01-131-0/+34
- Implemented version manifest fetching from Mojang API. - Created launcher configuration and main launcher logic. - Added SVG and PNG icons for the application. - Developed a simple HTML/CSS interface for the launcher. - Integrated Tauri commands for backend communication. - Added utility functions for file operations and config parsing.