Add run.sh script for easy dev workflow
This commit is contained in:
parent
3979086c10
commit
b7f079d9c6
|
|
@ -0,0 +1,37 @@
|
|||
#!/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
|
||||
Loading…
Reference in New Issue