Merge pull request #211 from maddox/updated-ios-build-script

Updated iOS build script
This commit is contained in:
Squarepusher 2013-05-27 23:13:58 -07:00
commit c46fa5e21d
2 changed files with 20 additions and 6 deletions

View File

@ -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

View File

@ -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"
xcrun -sdk iphoneos PackageApplication "$BUILD_PATH/RetroArch.app" -o "$BUILD_PATH/RetroArch.ipa" --sign "$CODE_SIGN_IDENTITY" --embed "$PROVISIONING"
fi
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"