aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/darwin/Support/Codesign.command7
-rw-r--r--tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in1
-rw-r--r--tools/depends/native/Makefile2
-rw-r--r--tools/depends/native/gen_entitlements/Makefile14
-rwxr-xr-xtools/depends/native/gen_entitlements/gen_entitlements.py36
5 files changed, 1 insertions, 59 deletions
diff --git a/tools/darwin/Support/Codesign.command b/tools/darwin/Support/Codesign.command
index 44486e6956..0fafe17ba1 100755
--- a/tools/darwin/Support/Codesign.command
+++ b/tools/darwin/Support/Codesign.command
@@ -5,7 +5,6 @@ set -x
#this is the list of binaries we have to sign for being able to run un-jailbroken
LIST_BINARY_EXTENSIONS="dylib so app"
-GEN_ENTITLEMENTS="$NATIVEPREFIX/bin/gen_entitlements.py"
DARWIN_EMBEDDED_ENTITLEMENTS="$XBMC_DEPENDS/share/darwin_embedded_entitlements.xml"
LDID="$NATIVEPREFIX/bin/ldid"
@@ -13,11 +12,6 @@ if [ "${PLATFORM_NAME}" == "macosx" ]; then
MACOS=1
fi
-if [[ ! "$MACOS" && ! -f ${GEN_ENTITLEMENTS} ]]; then
- echo "error: $GEN_ENTITLEMENTS not found. Codesign won't work."
- exit -1
-fi
-
if [ "$MACOS" ]; then
CONTENTS_PATH="${CODESIGNING_FOLDER_PATH}/Contents"
else
@@ -43,7 +37,6 @@ fi
echo "${CODE_SIGN_IDENTITY_FOR_ITEMS}"
if [ ! "$MACOS" ]; then
- ${GEN_ENTITLEMENTS} "${BUNDLEID}" "${BUILT_PRODUCTS_DIR}/${EXECUTABLE_FOLDER_PATH}/${EXECUTABLE_NAME}.xcent"
if [ -f "${CONTENTS_PATH}/embedded.mobileprovision" ]; then
rm -f "${CONTENTS_PATH}/embedded.mobileprovision"
fi
diff --git a/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in b/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in
index a1d1121199..78cb87aada 100644
--- a/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in
+++ b/tools/darwin/packaging/darwin_embedded/mkdeb-darwin_embedded.sh.in
@@ -109,7 +109,6 @@ cp -r $APP $DIRNAME/$PACKAGE/Applications/
find $DIRNAME/$PACKAGE/Applications/ -name '.svn' -exec rm -rf {} \;
find $DIRNAME/$PACKAGE/Applications/ -name '.git*' -exec rm -rf {} \;
find $DIRNAME/$PACKAGE/Applications/ -name '.DS_Store' -exec rm -rf {} \;
-find $DIRNAME/$PACKAGE/Applications/ -name '*.xcent' -exec rm -rf {} \;
echo Packaging $PACKAGE
# Tell tar, pax, etc. on Mac OS X 10.4+ not to archive
diff --git a/tools/depends/native/Makefile b/tools/depends/native/Makefile
index 4e012d9b22..7b3701bdd7 100644
--- a/tools/depends/native/Makefile
+++ b/tools/depends/native/Makefile
@@ -15,7 +15,7 @@ NATIVE= m4 gettext heimdal autoconf automake \
ifeq ($(OS),darwin_embedded)
- NATIVE += dpkg xz tar gen_entitlements ldid
+ NATIVE += dpkg xz tar ldid
endif
ifeq ($(TARGET_PLATFORM),wayland)
diff --git a/tools/depends/native/gen_entitlements/Makefile b/tools/depends/native/gen_entitlements/Makefile
deleted file mode 100644
index a16b4549f6..0000000000
--- a/tools/depends/native/gen_entitlements/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-include ../../Makefile.include
-
-GEBIN=$(NATIVEPREFIX)/bin/gen_entitlements.py
-
-all: $(GEBIN)
-
-$(GEBIN):
- mkdir -p $(NATIVEPREFIX)/bin
- cp gen_entitlements.py $(GEBIN)
- chmod 755 $(GEBIN)
-
-clean:
-distclean::
- rm -f $(GEBIN)
diff --git a/tools/depends/native/gen_entitlements/gen_entitlements.py b/tools/depends/native/gen_entitlements/gen_entitlements.py
deleted file mode 100755
index d8ae6af3ee..0000000000
--- a/tools/depends/native/gen_entitlements/gen_entitlements.py
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-import struct
-
-if len(sys.argv) != 3:
- print "Usage: %s appname dest_file.xcent" % sys.argv[0]
- sys.exit(-1)
-
-APPNAME = sys.argv[1]
-DEST = sys.argv[2]
-
-if not DEST.endswith('.xml') and not DEST.endswith('.xcent'):
- print "Dest must be .xml (for ldid) or .xcent (for codesign)"
- sys.exit(-1)
-
-entitlements = """
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>application-identifier</key>
- <string>%s</string>
- <key>get-task-allow</key>
- <true/>
-</dict>
-</plist>
-""" % APPNAME
-
-f = open(DEST,'w')
-if DEST.endswith('.xcent'):
- f.write("\xfa\xde\x71\x71")
- f.write(struct.pack('>L', len(entitlements) + 8))
-f.write(entitlements)
-f.close()
-