This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo-updates/bundle-expo-assets.sh
2021-04-02 02:24:13 +03:00

18 lines
462 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
if [[ "$CONFIGURATION" == Debug* ]]; then
if [ -z "$NODE_BINARY" ]; then
export NODE_BINARY=node
fi
../node_modules/react-native/scripts/react-native-xcode.sh
exit 0
fi
pushd "${SRCROOT}/.."
export PATH="$(if [ -f ~/.expo/PATH ]; then echo $PATH:$(cat ~/.expo/PATH); else echo $PATH; fi)"
dest="$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH"
expo bundle-assets --platform ios --dest "$dest"
popd