mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 11:35:05 +08:00
* initial commit * initial commit * add port files * ios: Changes to allow creating app bundle without xcode projects * ios: Added mic perms request * ios: Very basic app bundle creation script * ios: Fix -log parameter * ios: Sdk no longer hardcoded and option to compile for simulator * general: Update gitignore * ios: Enable game mode for the app * ios: Compile instructions and updated ipa creation script * ios: Code cleanup * ios: Remove dylibs * general: Remove extra submodules * ios: Remove dylibs again * ios: Implement suggested changes * ios: Fix building as dylib instead of binary * ios: Scripts for building mods * ios: Move 'ios' contents to engine/platform/ios/bundle and modify scripts * ios: Update createipa.sh to use waf install * ios: Clean script and updated README * general: Fix spelling mistake and outdated instructions * ios: Clean up in xcompile.py * ios: Fix createipa.sh generating an invalid ipa * ios: Temporary fix for launch dialog textfield colors in dark mode
39 lines
995 B
Bash
Executable File
39 lines
995 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#cd into script directory
|
|
cd "${0%/*}"
|
|
BUILDDIR=$(realpath ../../build)
|
|
echo $BUILDDIR
|
|
cd "../../engine/platform/ios/bundle"
|
|
|
|
if [ -d $BUILDDIR ]; then
|
|
mkdir -p "$BUILDDIR/ios/xash3d.app"
|
|
|
|
cp -r "$BUILDDIR/ios/dlls" "$BUILDDIR/ios/xash3d.app"
|
|
cp -r "$BUILDDIR/ios/cl_dlls" "$BUILDDIR/ios/xash3d.app"
|
|
cp *.plist "$BUILDDIR/ios/xash3d.app"
|
|
if [ ! -d $BUILDDIR/SDL2.framework ]; then
|
|
echo "Couldn't find SDL2.framework, place it in the build directory"
|
|
exit 1
|
|
fi
|
|
cp -r $BUILDDIR/SDL2.framework "$BUILDDIR/ios/xash3d.app"
|
|
|
|
cd ../../../../
|
|
|
|
./waf install --destdir="$BUILDDIR/ios/xash3d.app"
|
|
|
|
cd $BUILDDIR
|
|
|
|
rm -r "$BUILDDIR/ios/Payload/"
|
|
mkdir "$BUILDDIR/ios/Payload"
|
|
|
|
cp -r "$BUILDDIR/ios/xash3d.app" ios/Payload/
|
|
rm -r "$BUILDDIR/ios/xash3d.app"
|
|
cd ios
|
|
zip -r ../xash3d.ipa Payload
|
|
else
|
|
echo "Couldn't find the build directory, compile the engine before running this script!"
|
|
exit 1
|
|
fi
|
|
exit 0
|