From c2c68da015208d472458aea29946d1cd7c20cd24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 21 Oct 2021 13:33:02 +0200 Subject: [PATCH] macOS: Source entitlements from Git repo `misc/dist/osx` Now both the standard and the mono build need the same entitlements, so we use the same file. --- build-macosx/editor.entitlements | 12 ------------ build-macosx/editor_mono.entitlements | 18 ------------------ build-release.sh | 6 ++---- 3 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 build-macosx/editor.entitlements delete mode 100644 build-macosx/editor_mono.entitlements diff --git a/build-macosx/editor.entitlements b/build-macosx/editor.entitlements deleted file mode 100644 index 5496f65..0000000 --- a/build-macosx/editor.entitlements +++ /dev/null @@ -1,12 +0,0 @@ - - - - - com.apple.security.device.audio-input - - com.apple.security.device.camera - - com.apple.security.cs.disable-library-validation - - - diff --git a/build-macosx/editor_mono.entitlements b/build-macosx/editor_mono.entitlements deleted file mode 100644 index c61c287..0000000 --- a/build-macosx/editor_mono.entitlements +++ /dev/null @@ -1,18 +0,0 @@ - - - - - com.apple.security.cs.allow-dyld-environment-variables - - com.apple.security.cs.allow-jit - - com.apple.security.cs.allow-unsigned-executable-memory - - com.apple.security.cs.disable-library-validation - - com.apple.security.device.audio-input - - com.apple.security.device.camera - - - diff --git a/build-release.sh b/build-release.sh index 16e882f..0494877 100755 --- a/build-release.sh +++ b/build-release.sh @@ -33,21 +33,19 @@ sign_macos() { if [[ "${_is_mono}" == "1" ]]; then _appname="Godot_mono.app" - _entitlements=editor_mono.entitlements _sharpdir="${_appname}/Contents/Resources/GodotSharp" _extra_files="${_sharpdir}/Mono/lib/*.dylib ${_sharpdir}/Tools/aot-compilers/*/*" else _appname="Godot.app" - _entitlements=editor.entitlements fi scp "${_reldir}/${_binname}.zip" "${OSX_HOST}:${_osx_tmpdir}" - scp "${basedir}/build-macosx/${_entitlements}" "${OSX_HOST}:${_osx_tmpdir}" + scp "${basedir}/git/misc/dist/osx/editor.entitlements" "${OSX_HOST}:${_osx_tmpdir}" ssh "${OSX_HOST}" " cd ${_osx_tmpdir} && \ unzip ${_binname}.zip && \ codesign --force --timestamp \ - --options=runtime --entitlements ${_entitlements} \ + --options=runtime --entitlements editor.entitlements \ -s ${OSX_KEY_ID} -v ${_extra_files} ${_appname} && \ zip -r ${_binname}_signed.zip ${_appname}"