mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 17:54:04 +00:00
8519015250
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)
26 lines
686 B
Bash
Executable File
26 lines
686 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
. script/build.config
|
|
|
|
xcodebuild clean
|
|
rm -rf build
|
|
|
|
xcodebuild -verbose -sdk iphoneos -configuration Release
|
|
|
|
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"
|