Files
OneCAD-Draft/crates/dwg-thumbnailer/macos/entitlements.plist
T
Kevin GriffinandClaude Fable 5 5488d6c13f fix(macos): declare DWG/DXF UTIs, sandbox the QL appex, add signed-build script (#365)
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>
2026-07-17 10:28:23 +03:00

17 lines
739 B
Plaintext

<?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">
<!-- Entitlements for the DWG QuickLook Thumbnail Extension (.appex).
App Extensions MUST be sandboxed: without com.apple.security.app-sandbox
the extension registers (shows up in System Settings and pluginkit) but
secd/QuickLook refuses to launch it, so Finder simply never renders a
thumbnail — with no error anywhere (#365). The system hands the appex a
read-only security-scoped handle to the file being thumbnailed, so no
other entitlement is needed. -->
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
</dict>
</plist>