Skip to content

Commit 9036e37

Browse files
committed
CoreAudio: set entitements when signing macOS app
1 parent c2c2dc4 commit 9036e37

File tree

3 files changed

+7
-93
lines changed

3 files changed

+7
-93
lines changed
File renamed without changes.

scripts/generate-dmg-with-entitlements.sh

Lines changed: 0 additions & 91 deletions
This file was deleted.

scripts/generate-dmg.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ find $BUILD_FOLDER/app/Moonlight.app/ -name '*.dSYM' | xargs rm -rf
6060

6161
if [ "$SIGNING_IDENTITY" != "" ]; then
6262
echo Signing app bundle
63-
codesign --force --deep --options runtime --timestamp --sign "$SIGNING_IDENTITY" $BUILD_FOLDER/app/Moonlight.app || fail "Signing failed!"
63+
codesign --force --deep --options runtime --timestamp \
64+
--entitlements $SOURCE_ROOT/app/deploy/macos/spatial-audio.entitlements \
65+
--sign "$SIGNING_IDENTITY" \
66+
$BUILD_FOLDER/app/Moonlight.app || fail "Signing failed!"
67+
echo "App signature:"
68+
codesign -d --entitlements - -vvv $BUILD_FOLDER/app/Moonlight.app
6469
fi
6570

6671
echo Creating DMG
@@ -84,4 +89,4 @@ if [ "$NOTARY_KEYCHAIN_PROFILE" != "" ]; then
8489
fi
8590

8691
mv $INSTALLER_FOLDER/Moonlight\ $VERSION.dmg $INSTALLER_FOLDER/Moonlight-$VERSION.dmg
87-
echo Build successful
92+
echo Build successful

0 commit comments

Comments
 (0)