Merge PR #1055: handle macOS Finder document opens

This commit is contained in:
Hakan Seven committed 2026-09-07 18:53:29 +03:00
commit ceaf9ebe5b
6 files changed
+213 -20

No files matched your search

+7 -2
View File
@@ -337,6 +337,9 @@ jobs:
run: |
cargo build --locked --release --target aarch64-apple-darwin
cargo build --locked --release --target aarch64-apple-darwin -p dwg-thumbnailer
# The launcher shim is the .app's actual CFBundleExecutable (#1039)
# — see src/bin/ocs_launcher.rs for why.
cargo build --locked --release --target aarch64-apple-darwin --bin ocs_launcher
- name: Build .icns from SVG
run: |
@@ -395,8 +398,10 @@ jobs:
APP=OpenCADStudio.app
rm -rf "$APP"
mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources" "$APP/Contents/PlugIns"
cp target/aarch64-apple-darwin/release/OpenCADStudio "$APP/Contents/MacOS/OpenCADStudio"
chmod +x "$APP/Contents/MacOS/OpenCADStudio"
# Finder opens the launcher, which relays files to the sibling GUI.
cp target/aarch64-apple-darwin/release/ocs_launcher "$APP/Contents/MacOS/OpenCADStudio"
cp target/aarch64-apple-darwin/release/OpenCADStudio "$APP/Contents/MacOS/OpenCADStudio-App"
chmod +x "$APP/Contents/MacOS/OpenCADStudio" "$APP/Contents/MacOS/OpenCADStudio-App"
cp AppIcon.icns "$APP/Contents/Resources/AppIcon.icns"
cp DWG.icns DXF.icns "$APP/Contents/Resources/"
# QuickLook thumbnail extension.