aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src/utils
Commit message (Collapse)AuthorAgeFilesLines
* fix(windows): resolve Java executable path issues on WindowsBegonia, HE2026-01-162-0/+106
| | | | | | | | | | | | | | - 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.
* feat(java): integrate Adoptium API for Java runtime downloadBegonia, HE2026-01-141-0/+75
| | | | | | | | | | | | | | | | Add automatic Java (Temurin) download and installation feature: - Add Adoptium API v3 integration to fetch latest Java releases - Support JRE and JDK image types with version selection (8/11/17/21) - Implement platform detection for macOS, Linux, and Windows - Add SHA256 checksum verification for downloaded archives - Add tar.gz extraction support with Unix permission preservation - Handle macOS-specific Java path structure (Contents/Home/bin) - Add frontend UI with version selector and download progress - Register Tauri commands: fetch_adoptium_java, download_adoptium_java, fetch_available_java_versions Dependencies added: sha2, flate2, tar, dirs
* chore: translate commentsHsiangNianian2026-01-131-3/+2
|
* chore(style): format codeHsiangNianian2026-01-132-8/+14
|
* Implement library rules validation and zip extraction utilityHsiangNianian2026-01-132-2/+35
| | | | | | - 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.