aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'main' into devdev简律纯2026-02-150-0/+0
|\
* | chore: apply prek auto-fixes [skip ci]HsiangNianian2026-02-151-1/+1
| |
| * chore: apply prek auto-fixes [skip ci]HsiangNianian2026-02-151-1/+1
| |
* | Merge branch 'main' into dev简律纯2026-02-153-0/+10
|\|
| * Fix Windows MinGW linker error with COFF resource compilation (#96)Copilot2026-02-153-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Description MinGW linker fails on `resource.lib` because `tauri-build` generates MSVC-format resources. MinGW requires COFF format. This PR adds conditional resource compilation using `embed-resource` for GNU targets. ## Type of Change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update - [ ] UI/UX improvement - [ ] Performance improvement - [ ] Code refactoring (no functional changes) - [ ] Configuration change - [ ] Test addition or update ## LLM-Generated Code Disclosure - [x] This PR contains LLM-generated code, and I **provide** quality assurance - [ ] This PR contains LLM-generated code, and I **do not provide** quality assurance - [ ] This PR does not contain LLM-generated code ## Related Issues Fixes the Windows x86_64-pc-windows-gnu build failure in CI (Job ID: 63620685213) ## Changes Made ### Backend (Rust) - N/A ### Frontend (Svelte) - N/A ### Configuration - **src-tauri/Cargo.toml**: Added `embed-resource = "2.4"` as target-specific build dependency for `cfg(all(windows, target_env = "gnu"))` - **src-tauri/build.rs**: Added conditional resource compilation - calls `embed_resource::compile()` for MinGW, preserves `tauri_build::build()` for all targets - **src-tauri/icon.rc**: Created Windows resource file referencing `icons/icon.ico` **Key implementation**: ```rust fn main() { #[cfg(all(windows, target_env = "gnu"))] { embed_resource::compile("icon.rc", embed_resource::NONE); } tauri_build::build() } ``` **Impact**: MSVC builds unchanged, Linux/macOS unaffected (dependency not loaded), MinGW builds now generate COFF-compatible resources. ## Testing ### Test Environment - **OS**: Ubuntu 22.04 (Linux validation) - **DropOut Version**: 0.2.0-alpha.1 - **Minecraft Version Tested**: N/A (build-only fix) - **Mod Loader**: N/A ### Test Cases - [ ] Tested on Windows - [ ] Tested on macOS - [x] Tested on Linux - [ ] Tested with vanilla Minecraft - [ ] Tested with Fabric - [ ] Tested with Forge - [ ] Tested game launch - [ ] Tested authentication flow - [ ] Tested Java detection/download ### Steps to Test 1. Run `cargo check` on Linux (verified - passes) 2. CI validation pending: `semifold-ci.yaml` "Windows x86_64 (GNU)" job should complete without linker errors 3. Manual Windows MinGW build verification recommended ## Checklist ### Code Quality - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] My changes generate no new warnings or errors ### Testing Verification - [x] I have tested my changes locally - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] I have tested on at least one target platform ### Documentation - [x] I have updated the documentation accordingly - [ ] I have updated the README if needed - [x] I have added/updated code comments where necessary ### Dependencies - [x] I have checked that no unnecessary dependencies were added - [x] All new dependencies are properly documented - [x] `Cargo.lock` and/or `pnpm-lock.yaml` are updated (if dependencies changed) ## Screenshots / Videos N/A - build configuration change only ## Additional Notes - Target-specific dependency prevents unnecessary bloat on non-Windows platforms - `embed-resource` generates COFF format compatible with `x86_64-w64-mingw32-gcc` - No runtime code changes - purely build-time fix ## Breaking Changes None. Fully backward compatible. --- **For Maintainers:** - [ ] Code review completed - [ ] CI checks passing - [ ] Ready to merge <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > ## Problem > > The Windows x86_64-pc-windows-gnu build is failing in the CI/CD pipeline with a linker error: > > ``` > error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1 > note: D:\a\DropOut\DropOut\target\x86_64-pc-windows-gnu\release\build\dropout-d2b2a5095bbadd51\out\resource.lib: file not recognized: file format not recognized > ``` > > This occurs because `tauri-build` generates `resource.lib` in a format incompatible with the MinGW (GNU) toolchain. The file is likely being created in MSVC format instead of the COFF format required by MinGW. > > **Failing Job:** https://github.com/HydroRoll-Team/DropOut/actions (Job ID: 63620685213) > **Commit:** e6eb1bd0111d40b3b1fd39fafd583ce5dbf30f03 > **Target:** x86_64-pc-windows-gnu > > ## Solution > > Update the `build.rs` file to conditionally use `embed-resource` crate when building for the GNU toolchain, which properly generates MinGW-compatible resource files. > > ### Changes Required > > 1. **Update `src-tauri/Cargo.toml`**: Add `embed-resource` as a build dependency for Windows GNU targets > 2. **Update `src-tauri/build.rs`**: Implement conditional resource compilation: > - Use `embed-resource` for `x86_64-pc-windows-gnu` target > - Continue using default `tauri-build` for MSVC targets > > ### Implementation Details > > **src-tauri/Cargo.toml** - Add to `[build-dependencies]`: > ```toml > [build-dependencies] > tauri-build = { version = "2.0", features = [] } > embed-resource = "2.4" > ``` > > **src-tauri/build.rs** - Replace current content: > ```rust > fn main() { > // For MinGW targets, use embed-resource to generate proper COFF format > #[cfg(all(windows, target_env = "gnu"))] > { > embed_resource::compile("icon.rc", embed_resource::NONE); > } > > tauri_build::build() > } > ``` > > If `icon.rc` doesn't exist, create **src-tauri/icon.rc**: > ```rc > 1 ICON "icons/icon.ico" > ``` > > ### Testing > > After this fix: > - Windows MSVC builds should continue working as before > - Windows GNU (MinGW) builds should successfully link without the "file format not recognized" error > - The generated resource.lib will be in COFF format compatible with `x86_64-w64-mingw32-gcc` > > ### References > > - Tauri issue tracker (similar issues): https://github.com/tauri-apps/tauri/issues > - embed-resource crate: https://crates.io/crates/embed-resource > - MinGW resource compilation: https://sourceforge.net/p/mingw-w64/wiki2/windres/ > </details> <!-- START COPILOT CODING AGENT SUFFIX --> *This pull request was created from Copilot chat.* > <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/HydroRoll-Team/DropOut/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
* | Merge branch 'main' into dev简律纯2026-02-141-6/+6
|\|
| * chore(ci): Disable Musl platform in CI workflow简律纯2026-02-141-6/+6
| | | | | | Comment out the Musl platform configuration for CI.
* | Update .github/workflows/semifold-ci.yaml简律纯2026-02-121-2/+0
| | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* | Update .github/workflows/semifold-ci.yaml简律纯2026-02-121-1/+1
| | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* | Merge branch 'main' into dev简律纯2026-02-100-0/+0
|\|
* | fix(ci): Add Musl tools installation for musl target简律纯2026-02-101-0/+7
| | | | | | Added installation steps for Musl tools in CI workflow.
* | fix(ci): Update CI workflow to remove Musl tools installation简律纯2026-02-101-8/+3
| | | | | | Removed installation of Musl tools for musl target and added installation of OpenSSL dev package.
* | fix(ci): Install pkg-config and libssl-dev in CI workflow简律纯2026-02-101-0/+1
| | | | | | Added installation of pkg-config and libssl-dev for musl target.
* | chore: sync with main [skip ci] (#91)简律纯2026-02-1048-6/+11266
| | | | | | | | | | | | Co-authored-by: NtskwK <natsukawa247@outlook.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| * Merge branch 'dev' into main简律纯2026-02-101-6/+8
| |\ | |/ |/|
* | fix(ci): configure musl cross-compilation for GTK dependencies (#92)Copilot2026-02-101-6/+8
| | | | | | | | | | Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
| * Merge branch 'dev' into main简律纯2026-02-101-9/+18
| |\ | |/ |/|
| * Refine Chinese getting-started docs game launch instruction (#90)Natsuu2026-02-101-1/+1
| |
| * docs: update language links and improve formatting in README files (#88)Natsuu2026-02-094-9/+29
| | | | | | | | | | | | | | | | | | | | | | | | ## Summary by Sourcery Improve bilingual README structure and formatting for clarity and consistency. Documentation: - Add cross-links between English and Chinese READMEs for easier language switching. - Normalize README formatting including roadmap link styling, spacing, and license section presentation in both languages.
| * docs: comprehensive documentation overhaul with i18n support (English & ↵简律纯2026-02-0440-141/+6246
| |\ | | | | | | | | | Chinese) (#78)
| | * docs: restructure documentation filesNtskwK2026-02-0322-11/+0
| | |
| | * feat(i18n): add multi-language support for docsNtskwK2026-02-0310-118/+222
| | |
| | * docs: remove emojis from documentation and home pagecopilot-swe-agent[bot]2026-01-305-62/+56
| | | | | | | | | | | | Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
| | * docs: fix relative links and image paths in documentationNtskwK2026-01-294-29/+26
| | |
| | * feat(docs): enhance error boundary UI and add 404 pageNtskwK2026-01-293-6/+29
| | |
| | * fix: update navigation title from 'React Router' to 'DropOut'HsiangNianian2026-01-221-1/+1
| | |
| | * chore: Update favicon.ico in public directoryHsiangNianian2026-01-221-0/+0
| | |
| | * Update packages/docs/content/docs/en/troubleshooting.mdx简律纯2026-01-221-4/+6
| | | | | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| | * Update packages/docs/content/docs/en/troubleshooting.mdx简律纯2026-01-221-1/+1
| | | | | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| | * Update packages/docs/content/docs/zh/troubleshooting.mdx简律纯2026-01-221-1/+1
| | | | | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| | * Update packages/docs/content/docs/zh/troubleshooting.mdx简律纯2026-01-221-2/+2
| | | | | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| | * Update packages/docs/content/docs/en/features/index.mdx简律纯2026-01-221-6/+6
| | | | | | | | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| | * docs: redesign home page with launcher showcase and fix routingcopilot-swe-agent[bot]2026-01-214-13/+135
| | | | | | | | | | | | Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
| | * docs: fix meta.json structure and build configuration for i18ncopilot-swe-agent[bot]2026-01-214-46/+2
| | | | | | | | | | | | Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
| | * docs: configure i18n support and update documentation READMEcopilot-swe-agent[bot]2026-01-213-13/+64
| | | | | | | | | | | | Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
| | * docs: add Chinese translations for documentationcopilot-swe-agent[bot]2026-01-2124-0/+2896
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add development.mdx (开发指南) - Add troubleshooting.mdx (故障排除) - Add features/index.mdx (功能概览) - Add features/authentication.mdx (身份验证) - Add features/java.mdx (Java 管理) - Add features/mod-loaders.mdx (模组加载器) All translations maintain technical terms in English while translating content to simplified Chinese Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
| | * docs: add comprehensive documentation for DropOut launchercopilot-swe-agent[bot]2026-01-2113-53/+3024
| | | | | | | | | | | | Co-authored-by: HsiangNianian <44714368+HsiangNianian@users.noreply.github.com>
| | * Initial plancopilot-swe-agent[bot]2026-01-210-0/+0
| |/
| * Delete CNAME简律纯2026-01-211-1/+0
| |
| * docs: add chinese readme and docs website (#76)简律纯2026-01-2122-2/+5136
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ## Summary by Sourcery Add a new documentation site package and a Chinese README to improve project documentation and accessibility. New Features: - Introduce a dedicated @dropout/docs React Router application powered by Fumadocs for hosting the project documentation. Documentation: - Add a Chinese README file providing an overview, installation, build instructions, and contribution guidelines for Chinese-speaking users. - Set up initial docs content, navigation, and metadata within the new docs site, including example pages and search endpoint configuration.
| | * Merge branch 'main' into docs/readme简律纯2026-01-211-0/+2
| | |\ | | |/ | |/|
| * | chore(docs): Add roadmap link to README简律纯2026-01-211-0/+2
| | | | | | | | | Added a link to the full roadmap for the project.
| | * feat(docs): add React Router docs with FumadocsNtskwK2026-01-2121-2/+4994
| | |
* | | fix(ci): Enable cross compilation for musl builds and streamline dependency ↵HsiangNianian2026-01-201-4/+7
| | | | | | | | | | | | installation
* | | fix(ci): Add rustflags for Windows builds and install musl-tools for LinuxHsiangNianian2026-01-201-0/+6
| | |
* | | chore: Update CI workflow to include dev branch and platforms简律纯2026-01-201-9/+9
| | |
* | | [Chore] branch: Sync with main (#75)简律纯2026-01-2077-2512/+4548
|\| |
| | * docs: update terminology in READMENtskwK2026-01-201-1/+1
| | |
| | * docs: add Chinese README documentationNtskwK2026-01-201-0/+142
| |/
| * chore(docs): Update README for new description简律纯2026-01-191-7/+32
| |