#!/bin/bash

echo "🚀 Generating SIRO Rider App Icons..."
cd /Users/hamzaaleghwairyeen/development/App/Siro/siro_rider
flutter clean
flutter pub get
dart run flutter_launcher_icons:main

echo "🚀 Generating SIRO Driver App Icons..."
cd /Users/hamzaaleghwairyeen/development/App/Siro/siro_driver
flutter clean
flutter pub get
dart run flutter_launcher_icons:main

echo "🎨 Generating Animated GIF for SIRO Rider & Driver..."
cd /Users/hamzaaleghwairyeen/development/App/Siro
python3 -m pip install Pillow --break-system-packages
python3 /Users/hamzaaleghwairyeen/.gemini/antigravity-ide/brain/a5945c2c-de5f-4478-bd3c-d2f1c3aeec6a/scratch/pulse_logo.py /Users/hamzaaleghwairyeen/development/App/Siro/siro_rider/assets/images/logo.png /Users/hamzaaleghwairyeen/development/App/Siro/siro_rider/assets/images/logo.gif
cp /Users/hamzaaleghwairyeen/development/App/Siro/siro_rider/assets/images/logo.gif /Users/hamzaaleghwairyeen/development/App/Siro/siro_driver/assets/images/logo.gif

echo "🍏 Fixing iOS App Icon names to match old format..."
python3 /Users/hamzaaleghwairyeen/.gemini/antigravity-ide/brain/a5945c2c-de5f-4478-bd3c-d2f1c3aeec6a/scratch/fix_ios_icons.py

echo "✅ All Done! Icons and Animated GIFs are ready."
