diff options
author | Sylvain CECCHETTO <cecchetto.sylvain@me.com> | 2020-08-29 09:06:30 +0200 |
---|---|---|
committer | Sylvain CECCHETTO <cecchetto.sylvain@me.com> | 2020-09-13 15:02:22 +0200 |
commit | e217bd23347a9379b23056c3aafcec37fb11b367 (patch) | |
tree | 194840ac4773e2206b77bceb336d1450328fadf1 /cmake | |
parent | 88bbfb3bc5bd540c864bab0695bb3692cef0f81e (diff) |
[tools/codesign][tvOS] Fake sign kodi-topshelf and other binaries
Fake-signing kodi-topshelf binary is needed to have
Kodi Top Shelf feature working on jailbroken devices.
Fake-signing all other Mach-O files is needed to have
Kodi working on Unc0verTV jailbroken devices.
(But it's not needed on checkra1n devices...)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/scripts/darwin_embedded/ExtraTargets.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/scripts/darwin_embedded/ExtraTargets.cmake b/cmake/scripts/darwin_embedded/ExtraTargets.cmake index 1b984f36b8..01ab6328c5 100644 --- a/cmake/scripts/darwin_embedded/ExtraTargets.cmake +++ b/cmake/scripts/darwin_embedded/ExtraTargets.cmake @@ -23,5 +23,10 @@ if(CORE_PLATFORM_NAME_LC STREQUAL tvos) XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS ${ENTITLEMENTS_OUT_PATH}) target_link_libraries(${TOPSHELF_EXTENSION_NAME} "-framework TVServices" "-framework Foundation") + add_custom_command(TARGET ${TOPSHELF_EXTENSION_NAME} POST_BUILD + COMMAND "NATIVEPREFIX=${NATIVEPREFIX}" + ${CMAKE_SOURCE_DIR}/tools/darwin/Support/Codesign-topshelf.command + ) + add_dependencies(${APP_NAME_LC} ${TOPSHELF_EXTENSION_NAME}) endif() |