archive
/
Sphere
Archived
1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/scripts/bundle

30 lines
579 B
Bash
Executable File

#!/bin/bash
function bundle-android {
echo ""
echo "bundle - Android"
echo ""
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output ./android/app/src/main/assets/main.jsbundle
}
function bundle-ios {
echo ""
echo "bundle - iOS"
echo ""
react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output ./ios/main.jsbundle
}
if [ "$1" == "android" ]; then
bundle-android
elif [ "$1" == "ios" ]; then
bundle-ios
else
echo "Bundling for both platforms."
bundle-ios
bundle-android
fi