#!/bin/bash echo "Building DateSync Emby Plugin - Clean Version" echo "=============================================" echo "Completely different plugin name to avoid Emby cache issues" echo "" # Clean previous builds rm -rf bin obj echo "Building clean version with new name..." # Build clean version dotnet build NFOGuard.Emby.Plugin.csproj -c Release -f net48 if [ $? -eq 0 ]; then # Create version directory mkdir -p ../releases/v1.0.4-clean cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../releases/v1.0.4-clean/DateSync.Emby.Plugin.dll # Copy to main plugin-release directory with new name cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../plugin-release/DateSync.Emby.Plugin.dll echo "✅ Clean version built successfully" echo "" echo "🧹 DateSync v1.0.4-clean ready!" echo "" echo "IMPORTANT CHANGES:" echo "• Plugin name: NFOGuard → DateSync" echo "• Config file: nfoguard.xml → datesync.xml" echo "• Task name: NFOGuard Date Sync → DateSync Task" echo "• DLL name: DateSync.Emby.Plugin.dll" echo "• New GUID: Completely different from NFOGuard" echo "" echo "This should avoid ALL cached references!" echo "" echo "Usage:" echo "1. Stop Emby Server" echo "2. DELETE old NFOGuard.Emby.Plugin.dll completely" echo "3. DELETE /config/data/nfoguard.xml if exists" echo "4. Clear browser cache completely" echo "5. Install DateSync.Emby.Plugin.dll" echo "6. Start Emby Server" echo "7. Look for 'DateSync Task' in scheduled tasks" echo "" echo "Files ready:" echo "• releases/v1.0.4-clean/DateSync.Emby.Plugin.dll" echo "• plugin-release/DateSync.Emby.Plugin.dll (for deployment)" else echo "❌ Build failed" exit 1 fi