Files
nfoguard/NFOGuard.Emby.Plugin/build-automatic.sh
T
2025-09-12 10:30:12 -04:00

58 lines
2.2 KiB
Bash
Executable File

#!/bin/bash
echo "Building NFOGuard Emby Plugin - Automatic Subscription System"
echo "============================================================"
echo "🔥 Like TimeLord - No manual keys, automatic activation!"
echo ""
# Clean previous builds
rm -rf bin obj
echo "Building automatic subscription version..."
# Build unified version with automatic licensing
dotnet build NFOGuard.Emby.Plugin.csproj -c Release -f net48
if [ $? -eq 0 ]; then
# Create version directory
mkdir -p ../releases/v2.0.0-automatic
cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../releases/v2.0.0-automatic/
# Copy to main plugin-release directory
cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../plugin-release/
echo "✅ Automatic subscription version built successfully"
echo ""
echo "🎉 NFOGuard v2.0.0-automatic ready!"
echo ""
echo "🔧 How It Works:"
echo "1. Plugin installs with percentage-based free tier:"
echo " • 2% of your TV episodes per month"
echo " • 5% of your movies per month"
echo " • Scheduled processing only (no real-time)"
echo ""
echo "2. Users register with email (optional but recommended)"
echo "3. Subscribe via Patreon or PayPal recurring"
echo "4. Plugin automatically detects subscription within 24hrs"
echo "5. Unlimited processing + real-time sync unlocked"
echo ""
echo "💳 Payment Options:"
echo "• Patreon: https://patreon.com/nfoguard (recommended)"
echo "• PayPal Recurring: https://nfoguard.com/paypal"
echo ""
echo "🔒 Security Features:"
echo "• Machine ID based activation (harder to crack)"
echo "• Server-side subscription validation"
echo "• Automatic deactivation if subscription expires"
echo "• Offline mode graceful fallback to free tier"
echo ""
echo "📊 API Endpoints Needed (nfoguard.com):"
echo "• POST /api/register - Machine registration"
echo "• GET /api/patreon/check?machine_id=XXX - Patreon validation"
echo "• GET /api/paypal/check?machine_id=XXX - PayPal validation"
echo ""
echo "File ready: releases/v2.0.0-automatic/NFOGuard.Emby.Plugin.dll"
else
echo "❌ Build failed"
exit 1
fi