File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,7 @@ unitypackage:
1212 ./build.sh --apple-sdk-version=${IOS_SDK_VERSION} --android-sdk-version=${ANDROID_SDK_VERSION} --version=${UNITY_VERSION}
1313
1414unitypackage-pre-x :
15- ./build.sh --apple-sdk-version=${IOS_SDK_VERSION} --android-sdk-version=${ANDROID_SDK_VERSION_PRE_X} --version=${UNITY_VERSION_PRE_X}
15+ ./build.sh --apple-sdk-version=${IOS_SDK_VERSION} --android-sdk-version=${ANDROID_SDK_VERSION_PRE_X} --version=${UNITY_VERSION_PRE_X}
16+
17+ unitypackage-without-simulator :
18+ ./build.sh --apple-sdk-version=${IOS_SDK_VERSION} --android-sdk-version=${ANDROID_SDK_VERSION} --version=${UNITY_VERSION} --no-simulator
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ set -o errexit
1010
1111PATH_TO_UNITY_ROOT=" /Applications/Unity/Unity.app"
1212
13+ REMOVE_SIMULATOR_ARCH=false
14+
1315# ######################################
1416# Gets the latest version of specified repo
1517# Globals:
@@ -54,6 +56,15 @@ download_ios_sdk() {
5456 rm -rf " /tmp/Leanplum-${version} .zip"
5557 mv " /tmp/Leanplum.framework" " /tmp/Leanplum-${version} .framework"
5658
59+
60+ if [ " $REMOVE_SIMULATOR_ARCH " = true ] ; then
61+ echo " Removing x86_64 & i386 architecture from iOS library"
62+ cd " /tmp/Leanplum-${version} .framework"
63+ lipo -remove x86_64 Leanplum -o Leanplum
64+ lipo -remove i386 Leanplum -o Leanplum
65+ cd -
66+ fi
67+
5768 echo " Finished downloading iOS SDK."
5869}
5970
@@ -128,6 +139,7 @@ build() {
128139 echo " $PATH_TO_UNITY_ROOT exist"
129140 else
130141 PATH_TO_UNITY_ROOT=$( get_unity_from_hub)
142+ echo " Getting Unity from Unity HUB"
131143 fi
132144
133145 PATH_TO_UNITY=" $PATH_TO_UNITY_ROOT /Contents/MacOS/Unity"
@@ -171,6 +183,10 @@ main() {
171183 set -o xtrace
172184 shift
173185 ;;
186+ --no-simulator)
187+ REMOVE_SIMULATOR_ARCH=true
188+ shift
189+ ;;
174190 esac
175191 done
176192
You can’t perform that action at this time.
0 commit comments