46 lines
1.8 KiB
Bash
Executable File
46 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Building NFOGuard Emby Plugin - Safe Diagnostic Version"
|
|
echo "======================================================="
|
|
echo "Enhanced logging WITHOUT configuration page (to avoid crashes)"
|
|
echo ""
|
|
|
|
# Disable configuration page temporarily
|
|
mv PluginConfigurationPage.cs PluginConfigurationPage.cs.disabled 2>/dev/null || true
|
|
|
|
# Comment out the config page in project file
|
|
sed -i 's|<EmbeddedResource Include="Configuration\\configPage.html" />|<!-- <EmbeddedResource Include="Configuration\\configPage.html" /> -->|' NFOGuard.Emby.Plugin.csproj
|
|
|
|
# Clean previous builds
|
|
rm -rf bin obj
|
|
|
|
echo "Building safe diagnostic version (no config page)..."
|
|
|
|
# Build diagnostic version
|
|
dotnet build NFOGuard.Emby.Plugin.csproj -c Release -f net48
|
|
|
|
if [ $? -eq 0 ]; then
|
|
# Create version directory
|
|
mkdir -p ../releases/v1.0.1-diagnostic-safe
|
|
cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../releases/v1.0.1-diagnostic-safe/
|
|
|
|
echo "✅ Safe diagnostic version built successfully"
|
|
echo ""
|
|
echo "🔍 NFOGuard v1.0.1-diagnostic-safe ready!"
|
|
echo ""
|
|
echo "This version includes:"
|
|
echo "• Enhanced diagnostic logging"
|
|
echo "• NO configuration page (avoids crashes)"
|
|
echo "• LogVerbose is ENABLED by default"
|
|
echo "• All other settings use defaults"
|
|
echo ""
|
|
echo "Safe to use without risk of configuration crashes!"
|
|
echo ""
|
|
echo "File ready: releases/v1.0.1-diagnostic-safe/NFOGuard.Emby.Plugin.dll"
|
|
else
|
|
echo "❌ Build failed"
|
|
fi
|
|
|
|
# Restore configuration page files
|
|
mv PluginConfigurationPage.cs.disabled PluginConfigurationPage.cs 2>/dev/null || true
|
|
sed -i 's|<!-- <EmbeddedResource Include="Configuration\\configPage.html" /> -->|<EmbeddedResource Include="Configuration\\configPage.html" />|' NFOGuard.Emby.Plugin.csproj |