diff options
author | Memphiz <memphis@machzwo.de> | 2018-07-12 00:14:42 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2018-07-20 10:39:00 +0200 |
commit | d814dfe86f65118932621ce89a280027cada6aa4 (patch) | |
tree | 8dbb3d0ef24d899b4622ca7e8bbe19881f5049a4 /tools/darwin | |
parent | 86ebd4e30f071aa1efc557887bff9a76540fe1cf (diff) |
[ios/codesign]: - do proper fake sign for ios11 jailbreak
Diffstat (limited to 'tools/darwin')
-rwxr-xr-x | tools/darwin/Support/Codesign.command | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/tools/darwin/Support/Codesign.command b/tools/darwin/Support/Codesign.command index 72be5c99f8..65b823c63a 100755 --- a/tools/darwin/Support/Codesign.command +++ b/tools/darwin/Support/Codesign.command @@ -8,6 +8,7 @@ LIST_BINARY_EXTENSIONS="dylib so" export CODESIGN_ALLOCATE=`xcodebuild -find codesign_allocate` GEN_ENTITLEMENTS="$NATIVEPREFIX/bin/gen_entitlements.py" +IOS11_ENTITLEMENTS="$XBMC_DEPENDS/share/ios11_entitlements.xml" LDID="$NATIVEPREFIX/bin/ldid" if [ ! -f ${GEN_ENTITLEMENTS} ]; then @@ -23,10 +24,21 @@ if [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "appletvos" ] #do fake sign - needed for jailbroken ios5.1 devices for some reason if [ -f ${LDID} ]; then - find ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ -name "*.dylib" | xargs ${LDID} -S - find ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ -name "*.so" | xargs ${LDID} -S - ${LDID} -S ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Kodi - ${LDID} -S ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/PlugIns/TVOSTopShelf.appex/TVOSTopShelf + find ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ -name "*.dylib" | xargs ${LDID} -S${IOS11_ENTITLEMENTS} + find ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ -name "*.so" | xargs ${LDID} -S${IOS11_ENTITLEMENTS} + ${LDID} -S${IOS11_ENTITLEMENTS} ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${APP_NAME} + + #repackage python eggs + EGGS=`find ${CODESIGNING_FOLDER_PATH} -name "*.egg" -type f` + for i in $EGGS; do + echo $i + mkdir del + unzip $i -d del + find ./del/ -name "*.so" -type f | xargs ${LDID} -S${IOS11_ENTITLEMENTS} + rm $i + cd del && zip -r $i ./* && cd .. + rm -r ./del/ + done fi # pull the CFBundleIdentifier out of the built xxx.app |