Skip to content

Commit e0da42a

Browse files
authored
Merge pull request #23 from naithar/fix/macos-editor-entitlements
macOS editor entitlements
2 parents abe22bb + 6499c24 commit e0da42a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

build-macosx/editor.entitlements

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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.device.audio-input</key>
6+
<true/>
7+
<key>com.apple.security.device.camera</key>
8+
<true/>
9+
</dict>
10+
</plist>

build-release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,11 @@ if [ "${build_classical}" == "1" ]; then
152152
osx_tmpdir=$(ssh "${OSX_HOST}" "mktemp -d")
153153

154154
scp "${reldir}/${binname}.zip" "${OSX_HOST}:${osx_tmpdir}"
155+
scp "${basedir}/build-macosx/editor.entitlements" "${OSX_HOST}:${osx_tmpdir}"
155156
ssh "${OSX_HOST}" "
156157
cd ${osx_tmpdir} && \
157158
unzip ${binname}.zip &&\
158-
codesign --timestamp --options=runtime -s ${OSX_KEY_ID} -v Godot.app/Contents/MacOS/Godot && \
159+
codesign --timestamp --options=runtime --entitlements editor.entitlements -s ${OSX_KEY_ID} -v Godot.app/Contents/MacOS/Godot && \
159160
zip -r ${binname}_signed.zip Godot.app"
160161

161162
request_uuid=$(ssh "${OSX_HOST}" "xcrun altool --notarize-app --primary-bundle-id \"${OSX_BUNDLE_ID}\" --username \"${APPLE_ID}\" --password \"${APPLE_ID_PASSWORD}\" --file ${osx_tmpdir}/${binname}_signed.zip")

0 commit comments

Comments
 (0)