Fix the icon filename that broke every desktop build - #22
Merged
Conversation
…3CFZ0Z1S9FB]
`cargo tauri build` has never succeeded in this repo, and this is why:
failed to bundle project: Failed to create app icon:
`The image format could not be determined`
`src-tauri/icons/henry.w@example.net` is a 256x256 PNG — a scrubbing artifact
from `128x128@2x.png`. CLAUDE.md called it "harmless today (file and reference
agree)". The references did agree, and it still broke the build: the bundler
infers image format from the extension, and `.net` is not one.
Renamed the file and updated tauri.conf.json together, which is the only way to
change it. Build now produces both artifacts:
ForgeNotes.app 5.6M
ForgeNotes_0.3.0_aarch64.dmg 3.0M arm64
Verified beyond "it compiled": the app launches and quits cleanly, the icns is
embedded, and `nm` finds zero mcp_bridge symbols in the release binary — which
is the first actual proof that the cargo-feature gating keeps the debug bridge
out of a shipped build.
CLAUDE.md's claim corrected rather than deleted. The generalisable form is worth
keeping: "the references agree" is not "it works". Consistency was checkable by
reading; format inference was not.
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.
The bug
cargo tauri buildhas never succeeded in this repo. This is why:src-tauri/icons/henry.w@example.netis a 256×256 PNG — a scrubbing artifact from128x128@2x.png. The Tauri bundler infers image format from the file extension, and.netis not one.Why it survived this long
CLAUDE.mddocumented it, and got it wrong:The references did agree.
tauri.conf.jsonpointed at a file that existed. Every checkyou can perform by reading passed — which is exactly why it stayed on the "latent,
cosmetic" list across two releases instead of being fixed.
It was never harmless. It was a hard build failure standing between this repo and its
first binary, and the only way to discover that was to run the build.
The fix
Rename the file and update the config together — the only way to change it without
breaking the reference:
Verification — beyond "it compiled"
npm run build:desktop && npm run tauri:buildForgeNotes.appForgeNotes_0.3.0_aarch64.dmgContents/Resources/ForgeNotes.icnspresentnmformcp_bridgesymbols in the release binaryThat last row matters on its own. The MCP bridge is gated behind a cargo feature
specifically so release builds never contain it, and until now that was an untested
claim — there was no release build to test it against. It holds.
Still not done
.dmgwill hit Gatekeeper on any machine but thisone. Signing needs an Apple Developer identity and is a separate decision.
arm64only. No universal binary.com.forgenotes.appends in.app, whichcollides with the macOS bundle extension. Left alone deliberately: changing an
identifier moves the app's data directory, so it is the user's call, not a drive-by.
v0.3.0tag,so attaching this build to it would misrepresent what that tag contains.
Closes
01KZ3Z46SDWDGVD3CFZ0Z1S9FB.🤖 Generated with Claude Code
https://claude.ai/code/session_012o4dVLL1GeMETrCbD8Hgc2