aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | chore: update CI workflow to improve dependency installationHsiangNianian2026-01-161-2/+2
| | | | | | | | | | | | Modified the GitHub Actions workflow to ensure the 'apt-get update' command does not fail and added 'libfuse2' to the list of installed dependencies for Ubuntu, enhancing the reliability of the CI process.
* | | chore: update Node.js and pnpm versions in CI workflowHsiangNianian2026-01-161-2/+2
| | | | | | | | | | | | Modified the GitHub Actions workflow to upgrade Node.js from version 20 to 22 and pnpm from version 8 to 9, ensuring compatibility with the latest features and improvements.
* | | feat: enhance CI workflow by adding Node.js, pnpm, and Tauri CLI installationHsiangNianian2026-01-161-3/+55
| | | | | | | | | | | | Updated the GitHub Actions workflow to include steps for installing Node.js and pnpm, as well as the Tauri CLI. Added commands to install frontend dependencies and build the application for different operating systems, ensuring a more robust and comprehensive CI process.
* | | 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.
* | | fix: update project name formatting in README.mdHsiangNianian2026-01-161-1/+1
| | | | | | | | | | | | Changed the project name from "DropOut" to "Drop*O*ut" in the README file for improved branding consistency.
| | * fix(windows): resolve Java executable path issues on WindowsBegonia, HE2026-01-163-4/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | chore: update version to 0.1.24 in Cargo.toml and tauri.conf.jsonv0.1.24HsiangNianian2026-01-162-2/+2
| | | | | | | | | | | | Bumped the version number in both Cargo.toml and tauri.conf.json to reflect the new release version 0.1.24.
* | | 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.
* | | Merge pull request #52 from BegoniaHe/main简律纯2026-01-161-84/+0
|\ \ \ | | |/ | |/|
| * | ci(workflows): remove issue-checker due to incorrect PR labelingBegonia, HE2026-01-161-84/+0
|/ /
* | feat: integrate AI assistant functionality and configuration managementHsiangNianian2026-01-1614-105/+998
| | | | | | | | 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: add prismjs dependency and update TypeScript configurationHsiangNianian2026-01-163-1/+41
| | | | | | | | Added the prismjs library for syntax highlighting and its corresponding type definitions. Updated the TypeScript configuration to use "bundler" for module resolution, enhancing compatibility with modern module systems. This update improves the development experience and supports better code presentation.
* | feat: enhance settings view with AI assistant configuration optionsHsiangNianian2026-01-161-0/+386
| | | | | | | | Expanded the SettingsView component to include new features for managing the AI assistant, such as selecting language models, configuring response settings, and applying preset personas. Added a button to open the configuration editor for JSON settings. This update improves user interaction with the assistant and provides more control over its behavior and settings.
* | feat: add assistant view and configuration editor componentsHsiangNianian2026-01-165-16/+853
| | | | | | | | Introduced a new AssistantView component for enhanced interaction with the AI assistant, allowing users to send messages and receive responses. Implemented a ConfigEditorModal for editing configuration files with JSON validation and history management. Updated the App component to integrate these new features, improving user experience and functionality in managing AI settings.
* | feat: enhance settings state with AI model management and configuration editorHsiangNianian2026-01-161-0/+167
| | | | | | | | Added functionality for managing AI model settings, including loading and selecting models from Ollama and OpenAI. Implemented a configuration editor for raw settings, allowing users to open, edit, and save configuration files. This update improves the assistant's integration and user experience by providing more control over AI model options and settings management.