#!/bin/bash
# Build the serverless_comfy wheel from source
set -e
cd "$(dirname "$0")"

# Clean previous builds
rm -rf build/ *.egg-info/ serverless_comfy/

# Copy source into properly-named package directory
cp -r src serverless_comfy

# Build wheel
python3 setup.py bdist_wheel --dist-dir dist/

# Clean up build artifacts
rm -rf build/ *.egg-info/ serverless_comfy/

echo ""
echo "Built:"
ls dist/*.whl
