Skip to content

Commit

Permalink
update build-ios.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
3ddelano committed Feb 11, 2025
1 parent 221a713 commit 955c048
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ if [ "$1" = "build=n" ] || [ "$1" = "build=N" ] || [ "$1" = "build=no" ] || [ "$
build=no
fi

dev_build=no
if [ "$2" = "dev_build=y" ] || [ "$2" = "dev_build=Y" ] || [ "$2" = "dev_build=yes" ] || [ "$2" = "dev_build=1" ]; then
dev_build=yes
fi

if [ "$build" = "yes" ]; then
echo "Building for iOS targets"
# Debug builds
scons arch=arm64 ios_simulator=yes platform=ios target=template_debug dev_build=yes
scons arch=arm64 ios_simulator=no platform=ios target=template_debug dev_build=yes
scons arch=arm64 ios_simulator=yes platform=ios target=template_debug dev_build=${dev_build}
scons arch=arm64 ios_simulator=no platform=ios target=template_debug dev_build=${dev_build}

# Release builds
scons arch=arm64 ios_simulator=yes platform=ios target=template_release dev_build=no
Expand Down

0 comments on commit 955c048

Please sign in to comment.