iOS: fix handling of version option to build.sh

This makes it much more consistent and avoids a silly warning.

Also some small README updates.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-11-03 05:51:57 -08:00
parent 3a7b8d73d8
commit 6eca1b3ead
2 changed files with 10 additions and 6 deletions

View file

@ -4,7 +4,6 @@
set -x
set -e
doVersion=$1
DEBUGRELEASE="Release"
ARCHS="armv7 arm64 x86_64"
TARGET="iphoneos"
@ -13,6 +12,11 @@ TARGET2="Device"
while [[ $# -gt 0 ]] ; do
arg="$1"
case $arg in
-version)
# only update the version info without rebuilding
# this is useful when working with Xcode
versionOnly="1"
;;
-debug)
# build for debugging
DEBUGRELEASE="Debug"
@ -68,7 +72,7 @@ fi
# create Info.plist with the correct versions
cat Info.plist.in | sed "s/@MOBILE_VERSION@/$MOBILEVERSION/;s/@CANONICAL_VERSION@/$CANONICALVERSION/;s/@PRODUCT_BUNDLE_IDENTIFIER@/$BUNDLE/" > Info.plist
if [ "$doVersion" = "version" ] ; then
if [ "$versionOnly" = "1" ] ; then
exit 0
fi