diff --git a/packaging/macos/Info.plist.in b/packaging/macos/Info.plist.in index fad9c97e..cfc7d2d0 100644 --- a/packaging/macos/Info.plist.in +++ b/packaging/macos/Info.plist.in @@ -59,6 +59,8 @@ Editor LSHandlerRank Alternate + CFBundleTypeIconFile + PdfCraft LSItemContentTypes com.adobe.pdf CFBundleTypeExtensions diff --git a/xtask/src/gates.rs b/xtask/src/gates.rs index 106f0e2c..4406a957 100644 --- a/xtask/src/gates.rs +++ b/xtask/src/gates.rs @@ -295,6 +295,7 @@ mod tests { assert!(pdf.contains("com.adobe.pdf"), "claim PDFs by UTI, not just extension/MIME"); assert!(pdf.contains("Editor"), "PDF role stays Editor"); assert!(pdf.contains("Alternate"), "rank stays Alternate: offered without taking over Preview"); + assert!(pdf.contains("CFBundleTypeIconFile"), "declares document icon file for Finder"); } // The bundle id must match the app id the binary uses; renames change both (#174).