scripts: ios: Modify script to work with dylib loading changes

This commit is contained in:
ksagameng
2026-04-08 18:11:22 +03:00
committed by a1batross
parent a82221e3df
commit 0ac5e78040
3 changed files with 61 additions and 40 deletions

View File

@@ -5,41 +5,37 @@ SCRIPTDIR=${0%/*}
cd "$SCRIPTDIR" || exit 1 cd "$SCRIPTDIR" || exit 1
#shouldn't build any mods that are supported by mobile_hacks #shouldn't build any mods that are supported by mobile_hacks
./buildhlsdk.sh aghl _ag ./buildhlsdk.sh aghl
./buildhlsdk.sh aomdc _AoMDC ./buildhlsdk.sh aomdc
./buildhlsdk.sh asheep _asheep ./buildhlsdk.sh asheep
./buildhlsdk.sh blackops _blackops ./buildhlsdk.sh blackops
./buildhlsdk.sh bubblemod _bubblemod ./buildhlsdk.sh bubblemod
./buildhlsdk.sh CAd _CAd ./buildhlsdk.sh CAd
./buildhlsdk.sh cracklife _cracklife ./buildhlsdk.sh cracklife
./buildhlsdk.sh clcampaign _clcampaign ./buildhlsdk.sh clcampaign
./buildhlsdk.sh dmc _dmc ./buildhlsdk.sh dmc
./buildhlsdk.sh eftd _eftd ./buildhlsdk.sh eftd
#linux only?? ./buildhlsdk.sh decay-pc
./buildhlsdk.sh decay-pc _decay ./buildhlsdk.sh echoes
./buildhlsdk.sh echoes _echoes ./buildhlsdk.sh gravgun
./buildhlsdk.sh gravgun _gravgun ./buildhlsdk.sh opfor
./buildhlsdk.sh opfor _opfor ./buildhlsdk.sh sci
./buildhlsdk.sh sci _sci ./buildhlsdk.sh topdown
./buildhlsdk.sh topdown _topdown ./buildhlsdk.sh half-screwed
./buildhlsdk.sh half-screwed _half-screwed ./buildhlsdk.sh noffice
./buildhlsdk.sh noffice _noffice ./buildhlsdk.sh poke646
./buildhlsdk.sh poke646 _poke646 ./buildhlsdk.sh poke646_vendetta
./buildhlsdk.sh poke646_vendetta _poke646_vendetta ./buildhlsdk.sh rebellion
./buildhlsdk.sh rebellion _rebellion ./buildhlsdk.sh residual_point
./buildhlsdk.sh residual_point _rl ./buildhlsdk.sh sohl1.2
./buildhlsdk.sh residual_point _rp_v1_pub_final1 ./buildhlsdk.sh halloween
./buildhlsdk.sh sohl1.2 _Spirit ./buildhlsdk.sh thegate
./buildhlsdk.sh halloween _shall1 ./buildhlsdk.sh theyhunger
./buildhlsdk.sh thegate _thegate ./buildhlsdk.sh zombie-x
./buildhlsdk.sh theyhunger _hunger ./buildhlsdk.sh delta_particles
./buildhlsdk.sh zombie-x _Zombie-X-DLE
#untested if this works #untested if this works
export XENWARRIOR=ON export XENWARRIOR=ON
./buildhlsdk.sh sohl1.2 _xenwar ./buildhlsdk.sh sohl1.2 xenwar
./buildhlsdk.sh ./buildhlsdk.sh
cd ../../
./createipa.sh ./createipa.sh

25
scripts/ios/buildcs16.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
#cd into script directory
SCRIPTDIR=${0%/*}
cd $SCRIPTDIR
MODPATH=mod-build/cs16-client
git clone --recursive https://github.com/Velaron/cs16-client mod-build/cs16-client
mkdir -p ../../build/ios/libs
LIBSDIR=$(realpath ../../build/ios/libs)
cd $MODPATH
cmake -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -DCMAKE_DEVELOPER_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DMAC=0 -DDEBUG=1 -DXASH_COMPAT=1 -DMAINUI_USE_STB=1 -DCMAKE_BUILD_TYPE=Debug -B build -S .
cmake --build build --config Debug
cmake --install build --prefix $LIBSDIR
cd ../../
./createipa.sh
if [ -d mod-build ]; then
rm -rf mod-build/
fi
exit 0

View File

@@ -12,20 +12,20 @@ else
git clone --recursive https://github.com/FWGS/hlsdk-portable -b "$1" "$MODPATH" git clone --recursive https://github.com/FWGS/hlsdk-portable -b "$1" "$MODPATH"
fi fi
if [ ! -d ../../build/ios/libs ]; then mkdir -p ../../build/ios/libs || exit 1
mkdir ../../build/ios/libs || exit 1
fi
LIBSDIR=$(realpath ../../build/ios/libs) LIBSDIR=$(realpath ../../build/ios/libs)
cd "$MODPATH" || exit 1 cd "$MODPATH" || exit 1
#compiling hlsdk for ios release is broken, so just build for debug #compiling hlsdk for ios release is broken, so just build for debug
cmake -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DCMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT=0 -DCMAKE_INSTALL_PREFIX="$LIBSDIR" -DCMAKE_BUILD_TYPE=Debug -B build -S . if [ ! -z $2 ]; then
cmake -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DCMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT=0 -DCMAKE_INSTALL_PREFIX="$LIBSDIR" -DGAMEDIR="$2" -DCMAKE_BUILD_TYPE=Debug -B build -S .
else
cmake -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DCMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT=0 -DCMAKE_INSTALL_PREFIX="$LIBSDIR" -DCMAKE_BUILD_TYPE=Debug -B build -S .
fi
cmake --build build --target install cmake --build build --target install
cd ../../
./createipa.sh
if [ -d mod-build ]; then if [ -d mod-build ]; then
rm -rf mod-build/ rm -rf mod-build/
fi fi