2013-03-25 11:44:00 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. script/build.config
|
|
|
|
|
|
|
|
xcodebuild clean
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
xcodebuild -verbose -sdk iphoneos -configuration Release
|
|
|
|
|
2013-03-25 12:29:46 -04:00
|
|
|
if ! $nocodesign ; then
|
|
|
|
codesign -fs "$CODE_SIGN_IDENTITY" "$BUILD_PATH/RetroArch.app/modules/snes9x_next_libretro.dylib"
|
|
|
|
codesign -fs "$CODE_SIGN_IDENTITY" "$BUILD_PATH/RetroArch.app/modules/nestopia_libretro.dylib"
|
2013-03-25 11:44:00 -04:00
|
|
|
|
2013-03-25 12:29:46 -04:00
|
|
|
xcrun -sdk iphoneos PackageApplication "$BUILD_PATH/RetroArch.app" -o "$BUILD_PATH/RetroArch.ipa" --sign "$CODE_SIGN_IDENTITY" --embed "$PROVISIONING"
|
|
|
|
fi
|
2013-03-25 12:34:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
echo "######### RetroArch build Complete!! #########"
|
|
|
|
echo "You can find the resulting app in the $BUILD_PATH directory.\n"
|