Add run.sh script for easy dev workflow

This commit is contained in:
Johan Jongsma 2026-01-31 19:47:18 +00:00
parent 3979086c10
commit b7f079d9c6
1 changed files with 37 additions and 0 deletions

37
run.sh Executable file
View File

@ -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