Repository navigation
Windows: executable, shortcuts and taskbar show the DevNotes icon - #1666
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context — since 1.0.0 (the switch from Tauri, which embedded
icon.icoitself),devnotes.execarries 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 isversion_check, already in the tree) embedsicons/icon.icoand 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 builtdevnotes.exeand asks for an icon and a version. It fails on main (no icon: []) and passes here; CI runs it onwindows-latest.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.desktopentry, the rpm's icon, the AppImage's.DirIcon, the macOS bundle's.icnsand the updater archive's.packages.ymlruns 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.devnotes.exe: ProductName and FileDescription « DevNotes », FileVersion 1.2.0, its icon extracted (image above).packages.ymlbuilds them on this pull request); macOS not seen with my own eyes.ie4uinit.exe -showis run.