38 lines
639 B
Bash
Executable File
38 lines
639 B
Bash
Executable File
#!/bin/bash
|
|
# inou-mobile: Pull & Run
|
|
# Usage: ./run.sh [ios|android|web]
|
|
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
TARGET="${1:-ios}"
|
|
|
|
echo "🔄 Pulling latest..."
|
|
git pull --rebase
|
|
|
|
echo "📦 Getting dependencies..."
|
|
flutter pub get
|
|
|
|
case "$TARGET" in
|
|
ios)
|
|
echo "📱 Running on iOS Simulator..."
|
|
flutter run -d iPhone
|
|
;;
|
|
android)
|
|
echo "🤖 Running on Android..."
|
|
flutter run -d android
|
|
;;
|
|
web)
|
|
echo "🌐 Running on Web..."
|
|
flutter run -d chrome
|
|
;;
|
|
devices)
|
|
echo "📋 Available devices:"
|
|
flutter devices
|
|
;;
|
|
*)
|
|
echo "Usage: ./run.sh [ios|android|web|devices]"
|
|
exit 1
|
|
;;
|
|
esac
|