Skip to content

feat(windows): embed the MeshLLM icon in mesh-llm.exe - #3076

Merged
Virgile-pct merged 1 commit into
Mesh-LLM:mainfrom
Virgile-pct:feat/windows-exe-icon
Nov 14, 2026
Merged

Virgile-pct merged 1 commit into
Mesh-LLM:mainfrom
Virgile-pct:feat/windows-exe-icon

Conversation

@Virgile-pct

@Virgile-pct Virgile-pct commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Why

mesh-llm.exe has no icon resource, so Explorer, the taskbar and the Start menu entry from #3045 show the generic program icon (screenshot 3 in #3045 (comment)).

What

  • mesh/crates/mesh-llm/assets/mesh-llm.ico: a copy of the console favicon, mesh-llm-ui/public/meshllm-favicon.ico (same SHA-256), with 16, 32, 48, 64 and 128 px images. It lives in the crate so cargo package carries it.
  • build.rs, Windows MSVC only: writes mesh-llm-icon.res into OUT_DIR from that file and passes it with cargo:rustc-link-arg-bins. The MSVC linker takes compiled resources as input, so there is no resource compiler call and no new build dependency. The .ico directory becomes one RT_GROUP_ICON (id 1, the first group, which Windows shows for the executable) pointing at one RT_ICON per image. The GNU target keeps building without an icon, as before.

Validation

Windows 11, cargo build -p mesh-llm --bin mesh-llm --no-default-features --features dynamic-native-runtime on 0deff3c:

  • EnumResourceNames on the built mesh-llm.exe: 1 RT_GROUP_ICON, 5 RT_ICON.
  • System.Drawing.Icon.ExtractAssociatedIcon returns the MeshLLM jellyfish, not the generic icon.
  • mesh-llm.exe --version runs.
  • cargo package -p mesh-llm --list includes assets/mesh-llm.ico.
  • cargo clippy -p mesh-llm --no-deps --no-default-features --features dynamic-native-runtime -- -D warnings: clean.

Summary by CodeRabbit

  • New Features
    • Windows applications built with the MSVC toolchain now include an application icon, making them easier to recognize in places where Windows displays executable icons. Other Windows toolchains are unchanged.
  • Bug Fixes
    • Invalid or incomplete icon data now stops the build with an error instead of producing an unusable resource.

Explorer, the taskbar and the Start menu entry install.ps1 adds showed
the generic program icon. build.rs now writes a .res file from
assets/mesh-llm.ico (the console's favicon: 16 to 128 px) and passes it
to the MSVC linker, which takes compiled resources as input. No resource
compiler and no new build dependency.
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Windows MSVC build now embeds assets/mesh-llm.ico by generating and linking a .res file. The build script validates ICO data and stops with a panic if reading or resource generation fails. Other Windows toolchains retain the existing stack linker argument.

Changes: Windows build resource

Layer / File(s) Summary
Convert and link the icon resource
mesh/crates/mesh-llm/build.rs
The MSVC build script reads and validates assets/mesh-llm.ico, writes a .res file, and passes it to the linker. The non-MSVC Windows stack linker argument remains unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: Minimal · up to 92a3a

This change embeds the MeshLLM icon in the Windows MSVC executable. No concrete merge-blocking risk was identified, and other toolchains keep their existing behavior.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "feat(windows): embed the MeshLLM icon in mesh-llm.exe" matches the main change. The build.rs change embeds assets/mesh-llm.ico into the Windows MSVC executable through a generated .res file…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(windows): embed the MeshLLM icon in mesh-llm.exe" matches the main change. The build.rs change embeds assets/mesh-llm.ico into the Windows MSVC executable through a generated .res file linked by the linker. The title is specific and concise, and it names the platform and the artifact.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5371707a-92ff-40b0-b334-f75a23f58b40
Commits

Reviewing files that changed from the base of the PR and between 0deff3c and 92a3ae5.

Files ignored due to path filters: 1

  • mesh/crates/mesh-llm/assets/mesh-llm.ico is excluded by !**/*.ico
Files selected for processing: 1

  • mesh/crates/mesh-llm/build.rs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

@ndizazzo ndizazzo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resource writer uses target-specific MSVC selection, writes only under OUT_DIR, and preserves the icon's five image entries with matching resource IDs. The icon matches the existing console asset. I found no blocking issue in the build and packaging paths. Static review and binary asset inspection only; Windows linking and Explorer rendering were not independently executed.

@Virgile-pct
Virgile-pct merged commit 5f54a09 into Mesh-LLM:main Nov 14, 2026
68 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants