#!/bin/bash echo "Building NFOGuard Emby Plugin - Unified Version" echo "===============================================" echo "Single DLL with license key activation system" echo "" # Clean previous builds rm -rf bin obj echo "Building unified version..." # Build unified version without any defines dotnet build NFOGuard.Emby.Plugin.csproj -c Release -f net48 if [ $? -eq 0 ]; then # Create version directory mkdir -p ../releases/v1.3.0-unified cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../releases/v1.3.0-unified/ # Copy to main plugin-release directory cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../plugin-release/ echo "✅ Unified version built successfully" echo "" echo "🎉 NFOGuard v1.3.0-unified ready!" echo "" echo "Features:" echo "🆓 Free Tier: 500 items/month, scheduled processing only" echo "🔑 License Activation: Unlimited processing with valid license key" echo "💳 Payment Integration: Supports PayPal/Patreon transaction IDs" echo "📊 Usage Tracking: Monthly quota with automatic reset" echo "" echo "License Key Formats Supported:" echo "- NFOG-XXXX-XXXX-XXXX (generated keys)" echo "- PAYPAL-[transaction-id] (PayPal payments)" echo "- PATREON-[transaction-id] (Patreon subscriptions)" echo "" echo "File ready: releases/v1.3.0-unified/NFOGuard.Emby.Plugin.dll" else echo "❌ Build failed" exit 1 fi