From 238711aabc8f7a329d8f0747db9eb225a30de705 Mon Sep 17 00:00:00 2001 From: Alex Pawlowski Date: Fri, 24 Nov 2017 13:45:13 +0200 Subject: [PATCH] Added tvOS support --- isign/bundle.py | 2 +- isign/macho.py | 2 ++ version.sh | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/isign/bundle.py b/isign/bundle.py index c8ba8b9d..888fc1c9 100644 --- a/isign/bundle.py +++ b/isign/bundle.py @@ -29,7 +29,7 @@ def is_info_plist_native(plist): """ If an bundle is for native iOS, it has these properties in the Info.plist """ return ( 'CFBundleSupportedPlatforms' in plist and - 'iPhoneOS' in plist['CFBundleSupportedPlatforms'] + any(c in plist['CFBundleSupportedPlatforms'] for c in ('iPhoneOS', 'AppleTVOS')) ) diff --git a/isign/macho.py b/isign/macho.py index 9368fe3d..9e87bcac 100644 --- a/isign/macho.py +++ b/isign/macho.py @@ -123,6 +123,8 @@ LC_ENCRYPTION_INFO_64=0x2c, LC_LINKER_OPTION=0x2d, LC_LINKER_OPTIMIZATION_HINT=0x2e, + LC_VERSION_MIN_TVOS=0x2f, + LC_VERSION_MIN_WATCHOS = 0x30 ), UInt32("cmdsize"), diff --git a/version.sh b/version.sh index 6f34a3d1..1cf8cbe9 100755 --- a/version.sh +++ b/version.sh @@ -10,8 +10,7 @@ pushd $(dirname $0) >/dev/null working_dir=$PWD name=$(basename $PWD) popd >/dev/null -package=$(echo $name | sed 's/-/_/g') -version_json="${working_dir}/${package}/version.json" +version_json="${working_dir}/isign/version.json" version_suffix="" # official version