#!/bin/bash

# Remove PyInstaller build artifacts
rm -rf build/
rm -rf dist/
rm -f *.spec

# Remove C version build artifacts
if [ -d "wssshtools" ]; then
    cd wssshtools
    make clean 2>/dev/null || true
    rm -f configure.sh.stamp
    rm -f man/*.1.gz 2>/dev/null || true
    cd ..
fi

# Remove Debian packaging artifacts
rm -f ../wsssh-tools*.deb
rm -f ../wsssh-tools*.dsc
rm -f ../wsssh-tools*.tar.gz
rm -f ../wsssh-tools*.changes

# Optionally remove SSL certificates (uncomment if needed)
# rm -f cert.pem key.pem

echo "Clean complete. Build artifacts removed."
echo "Note: SSL certificates (cert.pem, key.pem) preserved. Uncomment lines in clean.sh to remove them."