aboutsummaryrefslogtreecommitdiffstatshomepage
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-182-2/+30
| | | | | | | | | 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(forge): check if installer created version JSON before manual creationHsiangNianian2026-01-181-4/+22
| | | | | | | The Forge installer may or may not create the version.json file depending on the installer version. Check if the file exists after running the installer before manually creating it to avoid overwriting any installer-generated configuration.
* 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
* chore: add regex dependency version 1.12.2 to Cargo.tomlHsiangNianian2026-01-181-0/+1
|
* Update README.md简律纯2026-01-171-1/+1
|
* Update README.md简律纯2026-01-171-1/+1
|
* chore: update image asset to improve visual qualityHsiangNianian2026-01-161-0/+0
| | | | Replaced the existing image asset with a higher quality version to enhance the overall visual presentation of the project. This change ensures that the asset meets current design standards.
* chore: bump version to 0.1.26 in Cargo.toml and tauri.conf.jsonv0.1.26HsiangNianian2026-01-162-2/+2
| | | | Updated the version number in both Cargo.toml and tauri.conf.json to reflect the new release version 0.1.26. This change ensures consistency across project configuration files.
* chore: update pre-commit configuration for Rust hooks to specify manifest pathHsiangNianian2026-01-161-1/+7
| | | | Modified the .pre-commit-config.yaml file to include the `--manifest-path` argument for Rust hooks (fmt, cargo-check, clippy) and defined file patterns for Rust source files. This change enhances the configuration by ensuring that the hooks operate on the correct project files, improving the development workflow.
* style: auto format and lint fix [skip ci]HsiangNianian2026-01-161-1/+6
|
* Merge pull request #55 from HsiangNianian/feat/Instance/Profile-System简律纯2026-01-1617-109/+1065
|\
| * chore: update pre-commit configuration to skip specific hooksfeat/Instance/Profile-SystemHsiangNianian2026-01-161-1/+2
| | | | | | | | Modified the .pre-commit-config.yaml file to add a skip option for formatting, cargo-check, and clippy hooks. This change optimizes the pre-commit setup by allowing selective execution of hooks, enhancing the efficiency of the development workflow.
| * chore: update pre-commit configuration for Rust hooksHsiangNianian2026-01-161-14/+6
| | | | | | | | Modified the .pre-commit-config.yaml file to replace the Rust pre-commit repository and update the hooks for formatting and linting. This change enhances the configuration by using the latest version of the Rust pre-commit hooks and streamlining the setup for Rust projects.
| * chore: update pre-commit configuration to include Rust as system languageHsiangNianian2026-01-161-1/+2
| | | | | | | | Modified the .pre-commit-config.yaml file to add 'rust' to the system_language setting, ensuring that pre-commit hooks are properly configured for Rust projects. This change enhances the versatility of the pre-commit setup.
| * chore: update pre-commit configuration to specify language for clippy checksHsiangNianian2026-01-161-0/+2
| | | | | | | | Modified the .pre-commit-config.yaml file to explicitly set the language for clippy checks to 'system', ensuring consistent behavior across different environments. This change enhances the clarity of the configuration.
| * chore: simplify GitHub Actions workflow by removing unnecessary auto-fix optionHsiangNianian2026-01-161-3/+1
| | | | | | | | Updated the GitHub Actions workflow to remove the 'all_files' option from the prek action, streamlining the process and ensuring that the action runs without additional parameters. This change enhances clarity and maintains the workflow's efficiency.
| * chore: enhance GitHub Actions workflow to check for changes before ↵HsiangNianian2026-01-161-1/+11
| | | | | | | | | | | | committing fixes Updated the GitHub Actions workflow to include a step that checks for changes before committing auto-fixes. This ensures that commits are only made when there are actual changes, improving the efficiency of the workflow.
| * fix: improve Java path normalization logicHsiangNianian2026-01-161-2/+6
| | | | | | | | Enhanced the normalization logic for Java paths by ensuring that the search for "java.exe" in the PATH only occurs for relative paths or the name "java", excluding absolute paths that do not exist. This change improves the reliability of locating the Java executable in various environments.
| * feat: implement instance management features and enhance game launch processHsiangNianian2026-01-166-84/+527
| | | | | | | | 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: add InstancesView component and integrate instance management into the UIHsiangNianian2026-01-166-5/+376
| | | | | | | | Introduced a new InstancesView component for managing game instances, allowing users to create, edit, delete, and duplicate instances. Updated the App.svelte to include the InstancesView and modified various components to ensure instance selection is handled correctly. Enhanced the ModLoaderSelector and VersionsView to check for active instances before performing actions. Updated the Sidebar to include navigation to the new InstancesView.
| * feat: implement instance management functionalityHsiangNianian2026-01-163-3/+137
|/ | | | Added a new InstancesState class to manage game instances, including loading, creating, deleting, updating, and duplicating instances. Integrated instance selection into the game launch process, ensuring an active instance is selected before starting a game. Updated the types to include instance-related data structures.
* feat: enhance Java version management for Minecraft versionsHsiangNianian2026-01-1610-138/+854
| | | | 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.
* Merge pull request #53 from BegoniaHe/fix/windows-java-path简律纯2026-01-163-4/+264
|\
* \ Merge pull request #54 from BegoniaHe/docs/improve-copilot-instructions简律纯2026-01-161-7/+44
|\ \
* | | fix: update logging for Java arguments in game start functionHsiangNianian2026-01-161-1/+1
| | | | | | | | | | | | Modified the logging statement in the start_game function to display all Java arguments instead of just the first ten, improving debugging capabilities.
* | | chore: bump version in tauri configuration to 0.1.25v0.1.25HsiangNianian2026-01-162-2/+2
| | |
* | | chore: update CSP in tauri configuration for enhanced securityHsiangNianian2026-01-161-1/+1
| | | | | | | | | | | | Modified the content security policy (CSP) in tauri.conf.json to define specific sources for scripts, styles, images, fonts, and connections, improving the application's security posture.
* | | chore: update pre-commit configuration to specify language for hooksHsiangNianian2026-01-161-5/+4
| | | | | | | | | | | | Removed the language specification for the ruff hook and added it for the fmt and clippy hooks, ensuring proper configuration for Rust in the pre-commit setup.
* | | chore: refine prek workflow by removing skip ci commentHsiangNianian2026-01-161-2/+1
| | | | | | | | | | | | Removed the commented line that instructed to skip the CI process based on commit messages, streamlining the workflow configuration for clarity and maintainability.
* | | chore: add pre-commit badge to README for enhanced visibilityHsiangNianian2026-01-161-0/+1
| | | | | | | | | | | | Included a badge in the README to indicate pre-commit status, improving project documentation and providing users with immediate feedback on the pre-commit checks.
* | | chore: update pre-commit configuration to skip formatting and clippy checksHsiangNianian2026-01-161-0/+3
| | | | | | | | | | | | Modified the .pre-commit-config.yaml to skip the formatting and clippy checks during the CI process, optimizing the pre-commit workflow. Added Rust as the language for the pre-commit hook to ensure compatibility.
* | | chore: enhance prek workflow with Rust installation and system dependenciesHsiangNianian2026-01-161-0/+16
| | | | | | | | | | | | Added steps to the GitHub Actions workflow for installing Rust and necessary system dependencies on Linux, improving the environment setup for the prek auto-fix action.
* | | chore: update prek workflow bot user detailsHsiangNianian2026-01-161-2/+2
| | | | | | | | | | | | Changed the commit user name and email for the prek auto-fix action in the GitHub Actions workflow to reflect the new bot identity, enhancing clarity in commit history.
* | | chore: apply prek auto-fixes [skip ci]HsiangNianian2026-01-1610-10/+7
| | |
* | | chore: enhance prek workflow to support auto-fixing and commit changesHsiangNianian2026-01-161-6/+21
| | | | | | | | | | | | Updated the GitHub Actions workflow to enable automatic fixes for issues detected by the prek action. Added a conditional step to commit changes made by prek, improving the CI process by ensuring that fixes are applied directly to the repository.
* | | chore: update pre-commit configuration to enable autofix for PRsHsiangNianian2026-01-161-5/+6
| | | | | | | | | | | | Added autofix settings to the pre-commit configuration, allowing automatic fixes for issues detected by hooks. Reorganized the repository structure for clarity and removed redundant entries.
* | | chore: update CI workflow to simplify formatting stepHsiangNianian2026-01-161-1/+1
| | | | | | | | | | | | Modified the GitHub Actions workflow to change the formatting command from a check to a direct format execution, streamlining the process in the CI pipeline.
* | | chore: update pre-commit configuration and remove unnecessary dependenciesHsiangNianian2026-01-163-7/+35
| | | | | | | | | | | | Modified the .pre-commit-config.yaml to include additional hooks and reorganized the repository structure. Updated pyproject.toml to remove the pre-commit dependency, streamlining the project configuration.
* | | chore: add dev dependency for prek in pyproject.toml and uv.lockHsiangNianian2026-01-163-2/+44
| | | | | | | | | | | | Included the 'prek' package as a development dependency in both pyproject.toml and uv.lock, specifying version 0.2.28 to enhance development capabilities.
| | * fix(path): resolve critical java path validation bug on unixBegonia, HE2026-01-161-11/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a critical bug in normalize_java_path where Unix implementation would return Ok(non-existent path) when java_path == "java" and the `which` command failed to find Java in PATH. This caused game launch failures with confusing error messages. Key changes: - Add strip_unc_prefix helper for Windows UNC path handling - Fix Unix bug: explicitly return error when PATH search fails - Apply canonicalize + strip_unc_prefix pattern to both platforms - Enhanced error messages distinguishing PATH vs specific path failures - Add comprehensive unit tests covering edge cases - Update documentation to reflect actual behavior Resolves issue where Windows and Unix users could not launch games when Java path resolution failed silently. Reviewed-by: Claude Sonnet 4.5
* | | chore: update @tauri-apps/plugin-dialog version in pnpm-lock.yamlHsiangNianian2026-01-161-5/+5
| | | | | | | | | | | | Bumped the version of @tauri-apps/plugin-dialog from 2.5.0 to 2.6.0 in pnpm-lock.yaml to align with the latest dependency updates.
* | | chore: update plugin-dialog dependency versions in Cargo.toml and package.jsonHsiangNianian2026-01-162-2/+2
| | | | | | | | | | | | Bumped the version of tauri-plugin-dialog in Cargo.toml and @tauri-apps/plugin-dialog in package.json from 2.5.0 to 2.6.0 to incorporate the latest features and improvements.
| * | docs(copilot): enhance project setup and workflow documentationBegonia, HE2026-01-161-7/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add pre-commit hooks configuration details - Document Rolldown-based Vite fork and frontend tooling - Clarify version management with _version.py - Add frontend workflows (check/lint/format commands) - Document test workflow behavior and store patterns - Specify Node 22 and pnpm 9 requirements Reviewed-by: Claude Sonnet 4.5
| | * Merge branch 'HsiangNianian:main' into fix/windows-java-pathBegonia, HE2026-01-166-19/+118
| | |\ | |_|/ |/| |
* | | chore: refine CI workflow to conditionally execute steps based on event typeHsiangNianian2026-01-161-3/+14
| | | | | | | | | | | | Updated the GitHub Actions workflow to conditionally run installation and build steps only when triggered by a 'workflow_dispatch' event. This change optimizes the workflow by separating build processes for push/PR events and manual triggers, enhancing clarity and efficiency in CI operations.