scripts: ios: generate .dSYM files and make zip quiet

This commit is contained in:
ksagameng
2025-12-10 12:16:53 +03:00
committed by a1batross
parent 324b152307
commit db2c2e685d
2 changed files with 8 additions and 1 deletions

View File

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

View File

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