Finder thumbnails and "Open with" registration fail in the field for three compounding reasons: the app claims com.autodesk.dwg/.dxf but never declares them (UTImportedTypeDeclarations was missing, so on systems with no other declarer Launch Services can't bind the extensions at all); the QuickLook appex only serves com.autodesk.dwg while machines with AutoCAD installed resolve .dwg to its exported com.autodesk.autocad.dwg (BricsCAD etc. likewise win with their own UTIs); and the ad-hoc --deep signature carries no entitlements, but a QuickLook thumbnail extension must be sandboxed (com.apple.security.app-sandbox) before macOS will run it. Import-declare both UTIs, claim and serve the AutoCAD variants too, add the appex sandbox entitlements, and add packaging/build_macos_signed.sh — a local mirror of the CI build-macos job that signs with a Developer ID (hardened runtime, per-component entitlements), notarizes and staples. DEVELOPER_ID=- reproduces the CI ad-hoc build. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
50 lines
2.1 KiB
Text
50 lines
2.1 KiB
Text
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<!-- Info.plist for the DWG QuickLook Thumbnail Extension (.appex). -->
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>en</string>
|
|
<key>CFBundleDisplayName</key>
|
|
<string>DWG Thumbnails</string>
|
|
<key>CFBundleExecutable</key>
|
|
<string>DWGThumbnail</string>
|
|
<!-- Must be prefixed with the host app id so it registers as its extension. -->
|
|
<key>CFBundleIdentifier</key>
|
|
<string>io.github.HakanSeven12.OpenCadStudio.DWGThumbnail</string>
|
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
<string>6.0</string>
|
|
<key>CFBundleName</key>
|
|
<string>DWGThumbnail</string>
|
|
<key>CFBundlePackageType</key>
|
|
<string>XPC!</string>
|
|
<key>CFBundleShortVersionString</key>
|
|
<string>__VERSION__</string>
|
|
<key>CFBundleVersion</key>
|
|
<string>__VERSION__</string>
|
|
<key>NSExtension</key>
|
|
<dict>
|
|
<key>NSExtensionPointIdentifier</key>
|
|
<string>com.apple.quicklook.thumbnail</string>
|
|
<key>NSExtensionPrincipalClass</key>
|
|
<string>DWGThumbnail.ThumbnailProvider</string>
|
|
<key>NSExtensionAttributes</key>
|
|
<dict>
|
|
<key>QLSupportedContentTypes</key>
|
|
<array>
|
|
<string>com.autodesk.dwg</string>
|
|
<!-- QuickLook matches these against the UTI the *system*
|
|
resolves for a .dwg file, which is whatever the
|
|
highest-precedence installed declaration says. With
|
|
AutoCAD installed that is its exported UTI below — list
|
|
it too or thumbnails never render on those machines
|
|
(#365). Other CAD apps' exported UTIs (e.g. BricsCAD's)
|
|
can be appended here as they are identified. -->
|
|
<string>com.autodesk.autocad.dwg</string>
|
|
</array>
|
|
<key>QLThumbnailMinimumDimension</key>
|
|
<integer>0</integer>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
</plist>
|