forked from 1b-agent/opencadstudio-upstream
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>