chore(ios) fix release step bundle location

This commit is contained in:
Bartol Karuza 2019-03-03 15:55:21 +08:00
parent d4a7ab7194
commit e062a47853
1 changed files with 1 additions and 1 deletions

View File

@ -938,7 +938,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "export NODE_BINARY=node\n../../node_modules/react-native/scripts/react-native-xcode.sh";
shellScript = "if [ \"$CONFIGURATION\" == \"Debug\" ]; then\n echo \"Debug Configuration\"\n export NODE_BINARY=node\n ../../node_modules/react-native/scripts/react-native-xcode.sh\nelse\n echo \"Tests: Release Configuration\"\n RESOURCE_PATH=$SRCROOT/../../.tmp\n FILENAME_IN_BUNDLE=main.jsbundle\n BUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app\n cp $RESOURCE_PATH/ios-bundle.js $BUILD_APP_DIR/$FILENAME_IN_BUNDLE\n echo \"Tests: Copied main.jsbundle from ./.tmp\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */