PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
feat(macos): declare document icon file for PDFs in Info.plist (#910) (#933)
Luis Arayaf22b5d424bfe
diff --git a/packaging/macos/Info.plist.in b/packaging/macos/Info.plist.inindex fad9c97ee..cfc7d2d08 100644--- a/packaging/macos/Info.plist.in+++ b/packaging/macos/Info.plist.in@@ -59,6 +59,8 @@<string>Editor</string><key>LSHandlerRank</key><string>Alternate</string>+ <key>CFBundleTypeIconFile</key>+ <string>PdfCraft</string><key>LSItemContentTypes</key><array><string>com.adobe.pdf</string></array><key>CFBundleTypeExtensions</key>diff --git a/xtask/src/gates.rs b/xtask/src/gates.rsindex 106f0e2c7..4406a957c 100644--- a/xtask/src/gates.rs+++ b/xtask/src/gates.rs@@ -295,6 +295,7 @@ mod tests {assert!(pdf.contains("<string>com.adobe.pdf</string>"), "claim PDFs by UTI, not just extension/MIME");assert!(pdf.contains("<string>Editor</string>"), "PDF role stays Editor");assert!(pdf.contains("<string>Alternate</string>"), "rank stays Alternate: offered without taking over Preview");+ assert!(pdf.contains("<key>CFBundleTypeIconFile</key>"), "declares document icon file for Finder");}// The bundle id must match the app id the binary uses; renames change both (#174).