Skip to content

Windows: executable, shortcuts and taskbar show the DevNotes icon - #1666

Merged
vmillet-dev merged 1 commit into
mainfrom
windows-exe-icon
Nov 27, 2026
Merged

vmillet-dev merged 1 commit into
mainfrom
windows-exe-icon

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Context — since 1.0.0 (the switch from Tauri, which embedded icon.ico itself), devnotes.exe carries no Windows resource at all: no icon, no version. The desktop and Start menu shortcuts made by the installer, the uninstall entry and the running taskbar button showed Windows' generic icons, though the window itself sets its icon (the taskbar takes the file's).

Change — the executable carries the DevNotes icon and a version block; the other systems are checked to carry theirs.

What changes

  • crates/app/build.rs: on a Windows target only, winresource (MIT, build dependency, default features off: its one dependency is version_check, already in the tree) embeds icons/icon.ico and a version block. ProductName and FileDescription are [package.metadata.packager] product-name, the version the workspace's: nothing written twice. Task Manager and the file's properties say « DevNotes 1.2.0 ».
  • crates/app/tests/windows_resources.rs: reads the PE resource directory of the built devnotes.exe and asks for an icon and a version. It fails on main (no icon: []) and passes here; CI runs it on windows-latest.
  • Linux: the deb and the AppImage already carried the 32, 128 and 512 px icons and Icon=devnotes; the rpm carried 128 px alone and now carries the same three.
  • .github/actions/package: each package is checked to carry the icon — the deb's 512 px icon and .desktop entry, the rpm's icon, the AppImage's .DirIcon, the macOS bundle's .icns and the updater archive's. packages.yml runs it on this pull request.
  • docs/releasing.md, docs/architecture.md.

Checked

  • cargo test -p app (23, the new one included), cargo clippy -p app --all-targets --all-features -- -D warnings, cargo fmt --all --check, Prettier 3.9.10 on the changed files.
  • The debug build's devnotes.exe: ProductName and FileDescription « DevNotes », FileVersion 1.2.0, its icon extracted (image above).
  • Not run here: the release build and the packages (packages.yml builds them on this pull request); macOS not seen with my own eyes.
  • Windows keeps icons in a cache: a shortcut made by 1.2.0 can show the old icon until the update rewrites it or ie4uinit.exe -show is run.

devnotes.exe carries icon.ico and a version block (winresource, from Cargo.toml); the rpm installs
the 32 and 512 px icons as the deb does; each package is checked to carry the icon.
@vmillet-dev vmillet-dev added the bug Something isn't working label Nov 27, 2026
@vmillet-dev
vmillet-dev merged commit f9a9605 into main Nov 27, 2026
16 checks passed
@vmillet-dev
vmillet-dev deleted the windows-exe-icon branch November 27, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant