mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
scripts: ios: generate .dSYM files and make zip quiet
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user