diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..c13f480 --- /dev/null +++ b/run.sh @@ -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