From 9955d0df5d532368393ef97302c0452a1d28557a Mon Sep 17 00:00:00 2001 From: Ali Turki Date: Thu, 23 Jul 2026 16:06:22 +0800 Subject: [PATCH] feat(macos): app document icon for markdown files Add src-tauri/Info.plist so the generated CFBundleDocumentTypes gain CFBundleTypeIconSystemGenerated, which tells macOS 11+ to draw a document icon from the app icon. A .md/.markdown/.mdx then shows the DocsReader mark in Finder for anyone who sets DocsReader as their default app for the type. The entries restate what bundle.fileAssociations already generates, since the CLI merges a user Info.plist by replacing keys wholesale; keep the two in sync. Build-time metadata only - no runtime code, no effect on performance or UX. --- CHANGELOG.md | 12 +++++++++- src-tauri/Info.plist | 57 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 src-tauri/Info.plist diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e8bdde..9d41598 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,15 @@ and DocsReader adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.h Nothing yet. +## [0.11.1] - 2026-07-23 + +### Changed + +- **Markdown files carry a DocsReader icon in Finder.** A `.md`, `.markdown` or + `.mdx` file now shows an app-branded document icon on macOS, drawn from the app + icon, for anyone who sets DocsReader as their default app for the type. This is + build-time metadata only and does not change how the app runs. + ## [0.11.0] - 2026-07-23 ### Added @@ -193,6 +202,7 @@ Nothing yet. workspaces all live in a folder of that name. They are now labelled by the project that contains them. -[Unreleased]: https://github.com/anbturki/docsreader/compare/v0.11.0...HEAD +[Unreleased]: https://github.com/anbturki/docsreader/compare/v0.11.1...HEAD +[0.11.1]: https://github.com/anbturki/docsreader/compare/v0.11.0...v0.11.1 [0.11.0]: https://github.com/anbturki/docsreader/compare/v0.10.0...v0.11.0 [0.10.0]: https://github.com/anbturki/docsreader/compare/v0.9.2...v0.10.0 diff --git a/src-tauri/Info.plist b/src-tauri/Info.plist new file mode 100644 index 0000000..598f9ca --- /dev/null +++ b/src-tauri/Info.plist @@ -0,0 +1,57 @@ + + + + + + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + md + markdown + + CFBundleTypeName + Markdown + CFBundleTypeRole + Editor + LSHandlerRank + Default + CFBundleTypeIconSystemGenerated + + + + CFBundleTypeExtensions + + mdx + + CFBundleTypeName + MDX + CFBundleTypeRole + Editor + LSHandlerRank + Default + LSItemContentTypes + + com.docsreader.app.mdx + + CFBundleTypeIconSystemGenerated + + + + +