From 851901525085d2e7fa9ff9c2ba851ed7ed624ad7 Mon Sep 17 00:00:00 2001 From: Jon Maddox Date: Mon, 27 May 2013 22:39:21 -0400 Subject: [PATCH] update iOS build script 1. Provides for better support of passing in the NOCODESIGN env var to NOT codesign the build 2. Will once again codesign all of the dylibs in the modules directory (wildcard paths passed to codesign broke in some update to Xcode) --- ios/script/build | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ios/script/build b/ios/script/build index 19a8bf84c0..c4dde85837 100755 --- a/ios/script/build +++ b/ios/script/build @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e @@ -9,11 +9,17 @@ rm -rf build xcodebuild -verbose -sdk iphoneos -configuration Release -if ! $nocodesign ; then - codesign -fs "$CODE_SIGN_IDENTITY" "$BUILD_PATH/RetroArch.app/modules/*.dylib" +if [ -z "$NOCODESIGN" ] ; then + echo "CODESIGNING DYNAMIC LIBRARIES AND BUILDING IPA" + + for file in $(find "$BUILD_PATH/RetroArch.app/modules/" -name "*.dylib") ; do + codesign -fs "$CODE_SIGN_IDENTITY" "$file" + done + xcrun -sdk iphoneos PackageApplication "$BUILD_PATH/RetroArch.app" -o "$BUILD_PATH/RetroArch.ipa" --sign "$CODE_SIGN_IDENTITY" --embed "$PROVISIONING" +else + echo "Building for Jailbroken system" fi - echo "######### RetroArch build Complete!! #########" echo "You can find the resulting app in the $BUILD_PATH directory.\n"