fix(#1143): let the sandboxed Mac app open the Save dialog

The Mac app is sandboxed but never declared
files.user-selected.read-write, so macOS refused the native Save
dialog and every desktop export (logs, serial captures, config) failed
on the notarized build. Both entitlement files gain the key; the
sandbox stays on by the owner's decision.

build.yml and macos-signed.yml now read the signed app's entitlements
with PlistBuddy and fail if the key is not true, so a regression stops
CI instead of reaching a tester.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix/1140-apple-app-names
diffwireauto 2 weeks ago
parent 96a47f45b8
commit 9c5c136570

@ -271,6 +271,12 @@ jobs:
echo "::error::CFBundleName is '${NAME}', expected 'Offband MeshCore' (#1140)."
exit 1
fi
codesign -d --entitlements - --xml "${APP}" > "${RUNNER_TEMP}/entitlements.plist"
SAVE="$(/usr/libexec/PlistBuddy -c 'Print :com.apple.security.files.user-selected.read-write' "${RUNNER_TEMP}/entitlements.plist" || true)"
if [ "${SAVE}" != "true" ]; then
echo "::error::App lacks files.user-selected.read-write; the sandbox will refuse the Save dialog (#1143)."
exit 1
fi
lipo -archs "${APP}/Contents/MacOS/Offband MeshCore" || true
ditto -c -k --keepParent "${APP}" offband-macos.zip
- name: Upload macOS build

@ -137,6 +137,12 @@ jobs:
done < <(find "${APP}/Contents/Frameworks" -depth -name '*.framework' -type d -print0)
"${SIGN[@]}" --entitlements macos/Runner/Release.entitlements "${APP}"
codesign --verify --deep --strict --verbose=2 "${APP}"
codesign -d --entitlements - --xml "${APP}" > "${RUNNER_TEMP}/entitlements.plist"
SAVE="$(/usr/libexec/PlistBuddy -c 'Print :com.apple.security.files.user-selected.read-write' "${RUNNER_TEMP}/entitlements.plist" || true)"
if [ "${SAVE}" != "true" ]; then
echo "::error::Signed app lacks files.user-selected.read-write; the sandbox will refuse the Save dialog (#1143)."
exit 1
fi
lipo -archs "${APP}/Contents/MacOS/Offband MeshCore"
# ditto, not zip: it preserves the .app bundle's symlinks (#1108). The

@ -22,5 +22,7 @@
</array>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
</plist>

@ -18,5 +18,7 @@
</array>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
</plist>

Loading…
Cancel
Save

Powered by TurnKey Linux.