mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Fix build script for iOS.
This commit is contained in:
parent
b3c36b54d7
commit
f5c9e37201
@ -4,25 +4,22 @@ set -e
|
|||||||
|
|
||||||
. script/build.config
|
. script/build.config
|
||||||
|
|
||||||
xcodebuild clean
|
PROJECT_NAME="RetroArch_iOS.xcodeproj"
|
||||||
rm -rf build
|
|
||||||
|
|
||||||
|
# xcodebuild clean -project $PROJECT_NAME
|
||||||
|
# rm -rf build
|
||||||
|
|
||||||
if [ -z "$NOCODESIGN" ] ; then
|
if [ -z "$NOCODESIGN" ] ; then
|
||||||
|
|
||||||
# Fetch the UUID of the provisioning profile and install the profile
|
# Fetch the UUID of the provisioning profile and install the profile
|
||||||
# https://github.com/sharpland/mobileprovisionParser
|
# https://github.com/sharpland/mobileprovisionParser
|
||||||
# http://idevblog.info/mobileprovision-files-structure-and-reading/
|
# http://idevblog.info/mobileprovision-files-structure-and-reading/
|
||||||
PROVISION_UUID=`script/mobileprovisionParser -f "$PROVISIONING_PROFILE" -o UUID`
|
# PROVISION_UUID=`script/mobileprovisionParser -f "$PROVISIONING" -o UUID`
|
||||||
cp "$PWD/$PROVISIONING_PROFILE" ~/Library/MobileDevice/Provisioning\ Profiles/"$PROVISION_UUID".mobileprovision
|
# cp "$PWD/$PROVISIONING" ~/Library/MobileDevice/Provisioning\ Profiles/"$PROVISION_UUID".mobileprovision
|
||||||
|
|
||||||
xcodebuild -verbose -sdk iphoneos -configuration Release CODE_SIGN_IDENTITY="${CODE_SIGN_IDENTITY}" PROVISIONING_PROFILE="$PROVISION_UUID"
|
# xcodebuild -verbose -sdk iphoneos -configuration Release CODE_SIGN_IDENTITY="${CODE_SIGN_IDENTITY}" PROVISIONING_PROFILE="$PROVISION_UUID" -project $PROJECT_NAME
|
||||||
|
|
||||||
echo "CODESIGNING DYNAMIC LIBRARIES AND BUILDING IPA"
|
# echo "CODESIGNING DYNAMIC LIBRARIES AND BUILDING IPA"
|
||||||
|
# codesign -fs "$CODE_SIGN_IDENTITY" $BUILD_PATH/RetroArch.app/modules/*.dylib
|
||||||
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 "$BUILD_PATH/RetroArch.app/embedded.mobileprovision"
|
xcrun -sdk iphoneos PackageApplication "$BUILD_PATH/RetroArch.app" -o "$BUILD_PATH/RetroArch.ipa" --sign "$CODE_SIGN_IDENTITY" --embed "$BUILD_PATH/RetroArch.app/embedded.mobileprovision"
|
||||||
else
|
else
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
CODE_SIGN_IDENTITY="iPhone Distribution"
|
CODE_SIGN_IDENTITY="iPhone Developer"
|
||||||
PROVISIONING="distribution.mobileprovision"
|
PROVISIONING="distribution.mobileprovision"
|
||||||
BUILD_PATH="$PWD/build/Release-iphoneos"
|
BUILD_PATH="$PWD/build/Release-iphoneos"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user