Stop single-arch binary build before extracting dSYM

This commit is contained in:
Cameron Gutman 2021-02-28 16:02:50 -06:00
parent ab25a9b8ee
commit 088c9b9e4e

View File

@ -50,6 +50,11 @@ pushd $BUILD_FOLDER
make -j$(sysctl -n hw.logicalcpu) $(echo "$BUILD_CONFIG" | tr '[:upper:]' '[:lower:]') || fail "Make failed!"
popd
if [ "$ARCH" != "" ]; then
echo Single arch binary build successful
exit 0
fi
if [ "$MOONLIGHT_ALT_ARCH" != "" ]; then
echo Creating Universal binary with alternate arch
lipo $BUILD_FOLDER/app/Moonlight.app/Contents/MacOS/Moonlight $BUILD_FOLDER-$MOONLIGHT_ALT_ARCH/app/Moonlight.app/Contents/MacOS/Moonlight -create -o $BUILD_FOLDER/app/Moonlight.app/Contents/MacOS/Moonlight
@ -61,11 +66,6 @@ dsymutil app/Moonlight.app/Contents/MacOS/Moonlight -o Moonlight-$VERSION.dsym |
cp -R Moonlight-$VERSION.dsym $INSTALLER_FOLDER || fail "dSYM copy failed!"
popd
if [ "$ARCH" != "" ]; then
echo Single arch binary build successful
exit 0
fi
echo Creating app bundle
EXTRA_ARGS=
if [ "$BUILD_CONFIG" == "Debug" ]; then EXTRA_ARGS="$EXTRA_ARGS -use-debug-libs"; fi