46 lines
1.4 KiB
Bash
Executable File
46 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Building NFOGuard Emby Plugin - Debug Version"
|
|
echo "============================================="
|
|
echo "Clean diagnostic version with debug enabled by default"
|
|
echo ""
|
|
|
|
# Clean previous builds
|
|
rm -rf bin obj
|
|
|
|
echo "Building debug version..."
|
|
|
|
# Build debug version
|
|
dotnet build NFOGuard.Emby.Plugin.csproj -c Release -f net48
|
|
|
|
if [ $? -eq 0 ]; then
|
|
# Create version directory
|
|
mkdir -p ../releases/v1.0.2-debug
|
|
cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../releases/v1.0.2-debug/
|
|
|
|
# Copy to main plugin-release directory for easy deployment
|
|
cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../plugin-release/
|
|
|
|
echo "✅ Debug version built successfully"
|
|
echo ""
|
|
echo "🔍 NFOGuard v1.0.2-debug ready!"
|
|
echo ""
|
|
echo "Features:"
|
|
echo "• Debug logging ENABLED by default"
|
|
echo "• No configuration page (no crashes)"
|
|
echo "• Enhanced episode/movie date diagnostics"
|
|
echo "• Shows PremiereDate vs DateCreated for every item"
|
|
echo "• Explains why episodes are skipped"
|
|
echo ""
|
|
echo "Usage:"
|
|
echo "1. Replace plugin DLL and restart Emby"
|
|
echo "2. Run 'NFOGuard Date Sync' scheduled task"
|
|
echo "3. Check Emby logs for detailed output"
|
|
echo ""
|
|
echo "Files ready:"
|
|
echo "• releases/v1.0.2-debug/NFOGuard.Emby.Plugin.dll"
|
|
echo "• plugin-release/NFOGuard.Emby.Plugin.dll (for deployment)"
|
|
else
|
|
echo "❌ Build failed"
|
|
exit 1
|
|
fi |