diff --git a/scripts/ios/buildhlsdk.sh b/scripts/ios/buildhlsdk.sh index 32ec49c1..92405aba 100755 --- a/scripts/ios/buildhlsdk.sh +++ b/scripts/ios/buildhlsdk.sh @@ -21,7 +21,10 @@ cmake -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DGAMEDIR=$IOSD cmake --build build --target install cd ../../ +./createipa.sh + if [ -d mod-build ]; then rm -rf mod-build/ fi + exit 0 \ No newline at end of file diff --git a/scripts/ios/createipa.sh b/scripts/ios/createipa.sh index 2f464b82..76b71ed4 100755 --- a/scripts/ios/createipa.sh +++ b/scripts/ios/createipa.sh @@ -11,6 +11,8 @@ if [ -d $BUILDDIR ]; then cp -r "$BUILDDIR/ios/dlls" "$BUILDDIR/ios/xash3d.app" cp -r "$BUILDDIR/ios/cl_dlls" "$BUILDDIR/ios/xash3d.app" + find "$BUILDDIR/ios/xash3d.app/cl_dlls" -name "*.dylib" -type f -exec dsymutil {} \; + find "$BUILDDIR/ios/xash3d.app/dlls" -name "*.dylib" -type f -exec dsymutil {} \; cp *.plist "$BUILDDIR/ios/xash3d.app" if [ ! -d $BUILDDIR/SDL2.framework ]; then echo "Couldn't find SDL2.framework, place it in the build directory" @@ -21,6 +23,8 @@ if [ -d $BUILDDIR ]; then cd ../../../../ ./waf install --destdir="$BUILDDIR/ios/xash3d.app" + find "$BUILDDIR/ios/xash3d.app" -name "*.dylib" -type f -exec dsymutil {} \; + dsymutil "$BUILDDIR/ios/xash3d.app/xash" cd $BUILDDIR @@ -30,7 +34,7 @@ if [ -d $BUILDDIR ]; then cp -r "$BUILDDIR/ios/xash3d.app" ios/Payload/ rm -r "$BUILDDIR/ios/xash3d.app" cd ios - zip -r ../xash3d.ipa Payload + zip -q -r ../xash3d.ipa Payload else echo "Couldn't find the build directory, compile the engine before running this script!" exit 1