aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src/core
Commit message (Collapse)AuthorAgeFilesLines
* fix(java): handle build metadata and underscore formats in version parsingHsiangNianian2026-01-181-2/+21
| | | | | | | | | | | | Update parse_java_version() to properly handle: - Build metadata (strip '+' and everything after) - Trailing garbage (strip '-' and everything after, e.g. -Ubuntu) - Underscore version separators (1.8.0_411 -> 1.8.0.411) This ensures Java versions are correctly parsed on all platforms: - Old format: 1.8.0_411 (Java 8 update 411) - New format: 21.0.3+13-Ubuntu (Java 21 with build metadata) - Short format: 17.0.1 (Java 17 update 1).
* fix(manifest): add find_root_version for nested inheritance resolutionHsiangNianian2026-01-181-0/+37
| | | | | | | | | | | | Add find_root_version() function to walk the inheritance chain and find the root vanilla Minecraft version from a modded version (Fabric/Forge). This is useful for determining which vanilla version's client.jar should be used when launching modded versions, as modded versions inherit from vanilla versions but don't contain their own client.jar. The function follows the inheritsFrom field recursively until reaching a version without a parent (the root vanilla version).
* fix(rules): add architecture and version checks to library rule matchingHsiangNianian2026-01-181-5/+24
| | | | | | | | | | Complete the rule_matches function to properly evaluate: - OS name (already working: osx/macos, linux, windows) - Architecture (arch field): match against env::consts::ARCH - OS version (version field): accept all versions for now (conservative) This ensures that architecture-specific libraries (e.g. natives-arm64) are correctly filtered based on the current platform.
* fix(downloader): use proper atomic ordering for thread-safe progress trackingHsiangNianian2026-01-181-11/+11
| | | | | | | | | | Replace Ordering::Relaxed with appropriate synchronization: - Ordering::AcqRel for fetch_add operations that modify shared state - Ordering::Acquire for loads that depend on other thread's writes - Ordering::Release for stores that other threads may read This ensures visibility of downloaded bytes and completed files across concurrent download tasks without data races.
* fix(auth): add token expiry check in start_gameHsiangNianian2026-01-181-1/+0
| | | | | | | | | Check if the Microsoft account token is expired before attempting to launch the game. If expired, attempt to refresh using the refresh_token. If refresh fails, return an error instructing the user to login again. Also removed #[allow(dead_code)] from is_token_expired since it's now actively used.
* fix(instance): copy directory BEFORE creating metadata in duplicate_instanceHsiangNianian2026-01-181-11/+32
| | | | | | | | Prevent race condition in duplicate_instance by copying the source game directory BEFORE creating and saving the new instance metadata. This ensures that if the copy fails, no orphaned metadata is created. Also copy the icon_path from source instance to maintain visual consistency.
* fix(auth): prevent infinite recursion in get_client()HsiangNianian2026-01-181-2/+2
| | | | | | | | | | The fallback in the reqwest client builder was calling get_client() recursively, which would cause a stack overflow if Client::builder() failed. Now uses reqwest::Client::new() as the fallback. Also fixed User-Agent to be platform-agnostic. Reviewed-by: Claude Opus 4.5
* feat: implement instance management features and enhance game launch processHsiangNianian2026-01-162-0/+326
| | | | Added functionality for managing game instances, including creating, deleting, updating, and duplicating instances. Integrated instance selection into the game launch process, allowing users to specify the instance when starting a game. Updated the main application logic to handle instance states and paths, ensuring proper directory management for each instance. Introduced a new module for instance management and updated relevant commands to support instance-specific operations.
* feat: enhance Java version management for Minecraft versionsHsiangNianian2026-01-163-31/+150
| | | | Added functionality to determine and validate the required Java version for Minecraft versions, including checks for compatibility with older versions. Implemented event emissions for version installation and deletion, and updated the UI to reflect Java version requirements and installation status. Improved version metadata handling and added support for deleting versions.
* feat: enhance Java path handling by resolving symlinks and stripping UNC ↵HsiangNianian2026-01-161-2/+8
| | | | | | prefixes Updated the Java installation and executable retrieval functions to resolve symlinks and strip UNC prefixes from paths. This improvement ensures cleaner and more reliable path handling on Windows systems, enhancing compatibility and usability.
* feat: add UNC prefix stripping for Windows paths in Java handlingHsiangNianian2026-01-161-1/+17
| | | | Implemented a helper function to strip the UNC prefix from file paths on Windows, ensuring cleaner path handling. Updated the Java candidate retrieval process to resolve symlinks and apply the new prefix stripping function, enhancing compatibility and usability on Windows systems.
* feat: improve Java command execution on WindowsHsiangNianian2026-01-162-10/+24
| | | | Enhanced the Java command execution by adding support for Windows-specific creation flags in both the installer and candidate checking functions. This change ensures better compatibility and performance when running Java commands on Windows systems.
* feat: integrate AI assistant functionality and configuration managementHsiangNianian2026-01-1612-78/+855
| | | | 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: Enhance Forge installation process by fetching installer manifest and ↵HsiangNianian2026-01-151-57/+245
| | | | improving library management for better compatibility
* feat: Add version installation and check functionality to enhance mod loader ↵HsiangNianian2026-01-151-3/+24
| | | | support in the application
* feat: Add log upload service and optional API key to LauncherConfig for ↵HsiangNianian2026-01-151-0/+4
| | | | enhanced logging capabilities
* feat(java): Implement Java catalog management and download featuresBegonia, HE2026-01-152-34/+735
| | | | | | | | - Added commands to fetch and refresh the Java catalog, cancel downloads, and manage pending downloads. - Enhanced the Java download modal in the UI to support version selection, download progress, and pending downloads. - Introduced new types for Java catalog, download progress, and pending downloads. - Updated settings store to handle Java catalog state, download progress, and pending downloads. - Improved user experience with loading states, error handling, and status notifications for Java installations.
* fix: change Java installation path to use Tauri app handle for directory accessBegonia, HE2026-01-151-8/+9
|
* Apply suggestion from @SourceryAI简律纯2026-01-151-1/+1
| | | Co-authored-by: SourceryAI <bot@sourcery.ai>
* Merge main into feat/download-java-rtBegonia, HE2026-01-1413-98/+1497
|\ | | | | | | | | | | | | - Integrate latest main branch changes (Fabric, Forge support, new UI) - Keep Adoptium Java download feature with SHA256 support - Merge improved download progress tracking with checksum verification - Update dependencies and build configuration
| * feat: enhance dark mode support across UI componentsHsiangNianian2026-01-141-0/+2
| | | | | | | | | | | | | | | | - Updated BottomBar, HomeView, LoginModal, ModLoaderSelector, SettingsView, Sidebar, StatusToast, and VersionsView components for improved dark mode styling. - Adjusted color schemes for various elements to ensure better visibility and aesthetics in dark mode. - Added a theme property to settings to enforce dark mode as the default. - Refactored version badges in VersionsView for better color differentiation. - Enhanced button and input styles for consistency in both light and dark themes.
| * feat: Enhance UI components and add visual effectsHsiangNianian2026-01-141-0/+8
| | | | | | | | | | | | | | | | | | - Updated Sidebar component styles for improved aesthetics and usability. - Refactored VersionsView component with a new layout and enhanced version filtering. - Improved DownloadMonitor and GameConsole components for better performance and visual consistency. - Added new settings for GPU acceleration and visual effects in settings store. - Introduced ParticleBackground component with customizable effects (Constellation and Saturn). - Implemented ConstellationEffect and SaturnEffect classes for dynamic background animations.
| * refactor: clean up formatting and improve readability in core modulesHsiangNianian2026-01-144-14/+31
| |
| * feat: add Fabric and Forge type definitions and update mod.rs for mod loader ↵HsiangNianian2026-01-141-0/+4
| | | | | | | | support
| * feat: enhance GameVersion struct with optional fields for better mod loader ↵HsiangNianian2026-01-141-16/+30
| | | | | | | | support
| * feat: add version merging utilities for mod loadersHsiangNianian2026-01-141-0/+244
| |
| * feat: implement Maven coordinate parsing and URL construction utilitiesHsiangNianian2026-01-142-1/+407
| |
| * feat: add Fabric and Forge loader support modules with version fetching and ↵HsiangNianian2026-01-142-0/+602
| | | | | | | | installation functionality
| * fix: prevent feature-based rules from being applied in library checksHsiangNianian2026-01-142-0/+8
| |
| * refactor: consolidate derive attributes for AccountStore structHsiangNianian2026-01-141-3/+1
| |
| * refactor: simplify default implementations for AccountStore and ↵HsiangNianian2026-01-142-11/+4
| | | | | | | | MsRefreshTokenState
| * refactor: improve code readability by formatting and restructuring function ↵HsiangNianian2026-01-144-36/+76
| | | | | | | | calls
| * Update src-tauri/src/core/downloader.rs简律纯2026-01-141-0/+7
| | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| * Update src-tauri/src/core/downloader.rs简律纯2026-01-141-4/+1
| | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| * feat: implement global progress tracking for concurrent downloadsHsiangNianian2026-01-141-59/+88
| |
| * fix: update download_threads comment to specify valid range (1-128)HsiangNianian2026-01-141-1/+2
| |
| * feat: add download_threads to LauncherConfig and update download loggingHsiangNianian2026-01-141-0/+2
| |
| * feat: display download rate and progress with concurrency supportHsiangNianian2026-01-141-3/+30
| |
* | Update src-tauri/src/core/java.rsBegonia, HE2026-01-141-1/+1
| | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* | feat(java): integrate Adoptium API for Java runtime downloadBegonia, HE2026-01-142-7/+456
|/ | | | | | | | | | | | | | | | 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
* feat: implement Microsoft account token refresh and storage management; add ↵HsiangNianian2026-01-134-0/+498
| | | | Java detection functionality
* feat: enhance Microsoft login flow with status updates and polling managementHsiangNianian2026-01-131-5/+23
|
* refactor: clean up comments and improve code formatting in authentication ↵HsiangNianian2026-01-131-7/+0
| | | | and login UI
* feat: update Microsoft account client ID and enhance login UX with clipboard ↵HsiangNianian2026-01-131-1/+1
| | | | and auto-open functionality
* feat: update Microsoft account client ID for authenticationHsiangNianian2026-01-131-1/+1
|
* feat: implement custom User-Agent client for Microsoft authentication and ↵HsiangNianian2026-01-131-38/+65
| | | | refactor request handling
* feat: update Microsoft account client ID and enhance error handling for ↵HsiangNianian2026-01-131-5/+44
| | | | authentication and profile fetch
* feat: implement Microsoft account login flow and refactor account handlingHsiangNianian2026-01-131-3/+279
|
* chore(style): format codeHsiangNianian2026-01-135-54/+69
|
* feat: Add config moduleHsiangNianian2026-01-132-0/+59
|