Skip to content

Commit 7682d7b

Browse files
committed
feat(mac): re-add MediaRemote entitlements to bypass macOS 14 restrictions
Users must run 'xattr -cr' to bypass Gatekeeper's 'damaged' warning when downloading the app, but this enables the app to read browser media playback state natively via MediaRemote.
1 parent cbfe8c9 commit 7682d7b

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
6+
<array>
7+
<string>com.apple.mediaremoted.xpc</string>
8+
</array>
9+
<key>com.apple.security.automation.apple-events</key>
10+
<true/>
11+
</dict>
12+
</plist>

Mac/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ cp "$SRC_DIR/Info.plist" "$APP_BUNDLE/Contents/Info.plist"
3434
# Create PkgInfo
3535
echo -n "APPL????" > "$APP_BUNDLE/Contents/PkgInfo"
3636

37+
# Code sign the app with ad-hoc signature and MediaRemote entitlements
38+
echo "Codesigning app with entitlements..."
39+
codesign --force --deep --sign - --entitlements "$SRC_DIR/CarpeCast.entitlements" "$APP_BUNDLE"
40+
3741
echo "Build complete! App bundle created at $APP_BUNDLE"

0 commit comments

Comments
 (0)