#!/bin/bash

echo ""
echo "╔═══════════════════════════════════════╗"
echo "║   CompareKit - Prepare for Upload     ║"
echo "╚═══════════════════════════════════════╝"
echo ""

# Create upload directory
echo "📦 Creating upload package..."
mkdir -p CompareKit-upload

# Copy files, excluding problematic ones
echo "📂 Copying files..."
rsync -av \
  --exclude '.git' \
  --exclude 'node_modules' \
  --exclude '.htaccess' \
  --exclude 'test-output.png' \
  --exclude 'CompareKit-upload' \
  --exclude '.DS_Store' \
  ./ CompareKit-upload/

echo ""
echo "✅ Files ready for upload!"
echo ""
echo "📁 Location: ./CompareKit-upload/"
echo ""
echo "Next steps:"
echo "  1. Zip the CompareKit-upload folder"
echo "  2. Upload to cPanel File Manager"
echo "  3. Extract in public_html/"
echo "  4. Follow UPLOAD-INSTRUCTIONS.md"
echo ""
