From 851901525085d2e7fa9ff9c2ba851ed7ed624ad7 Mon Sep 17 00:00:00 2001 From: Jon Maddox Date: Mon, 27 May 2013 22:39:21 -0400 Subject: [PATCH 1/2] 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" From 4281f19938f3b9f523c4bef52e04f7ae28b9b2e2 Mon Sep 17 00:00:00 2001 From: Jon Maddox Date: Mon, 27 May 2013 22:43:03 -0400 Subject: [PATCH 2/2] updates to the README to reflect the new build script at libretro/libretro-super --- ios/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ios/README.md b/ios/README.md index 7e52182d5d..a640912b68 100644 --- a/ios/README.md +++ b/ios/README.md @@ -12,7 +12,7 @@ Once you have all of this stuff, getting RetroArch on a non-jailbroken device is RetroArch needs to know a couple things when building the app. You can configure these under `ios/script/build.config` inside the RetroArch repo. Once you initially clone down the repo, go into this file and make the changes. -### CODE_SIGN_IDENTITY +### CODE\_SIGN\_IDENTITY This is the identity that will be used when signing the app after it is built. Under normal circumstance, you shouldn't have to change this. But if you have multiple Apple dev accounts on your computer, you will have to be more specific. @@ -46,13 +46,21 @@ your-repos-dir/libretro-super your-repos-dir/RetroArch ``` +Run the libretro-super fetch script to first get the emulator core repos. + +```sh +./libretro-fetch.sh +``` + Run the libretro-super iOS build script to build the emulator cores. ```sh ./libretro-build-ios.sh ``` -This will clone down their repos, build them, and copy them into the appropriate directory for RetroArch iOS. +This will clone down their repos, build them into the `libretro-super/dist/ios` directory. Once this is complete, you need to copy them into the appropriate directory for RetroArch iOS. The path is: + +`RetroArch/ios/modules` ### Build RetroArch iOS app