60 lines
1.8 KiB
Bash
Executable File
60 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Building NFOGuard Emby Plugin - All Versions"
|
|
echo "============================================="
|
|
|
|
# Clean previous builds
|
|
rm -rf bin obj releases-temp
|
|
|
|
# Create temporary releases directory
|
|
mkdir -p releases-temp
|
|
|
|
echo ""
|
|
echo "1. Building Free Tier Version (v1.1.0-free-tier)"
|
|
echo "================================================="
|
|
|
|
# Build free tier version with FREE_TIER define
|
|
dotnet build NFOGuard.Emby.Plugin.csproj -c Release -f net48 -p:DefineConstants="FREE_TIER"
|
|
|
|
if [ $? -eq 0 ]; then
|
|
mkdir -p ../releases/v1.1.0-free-tier
|
|
cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../releases/v1.1.0-free-tier/
|
|
echo "✅ Free tier version built successfully"
|
|
else
|
|
echo "❌ Free tier build failed"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "2. Building Full Version (v1.2.0-production)"
|
|
echo "============================================"
|
|
|
|
# Clean for full version build
|
|
rm -rf bin obj
|
|
|
|
# Build full version without FREE_TIER define
|
|
dotnet build NFOGuard.Emby.Plugin.csproj -c Release -f net48
|
|
|
|
if [ $? -eq 0 ]; then
|
|
mkdir -p ../releases/v1.2.0-production
|
|
cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../releases/v1.2.0-production/
|
|
echo "✅ Production version built successfully"
|
|
else
|
|
echo "❌ Production build failed"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "3. Updating plugin-release with latest production version"
|
|
echo "========================================================"
|
|
cp bin/Release/net48/NFOGuard.Emby.Plugin.dll ../plugin-release/
|
|
|
|
echo ""
|
|
echo "🎉 All versions built successfully!"
|
|
echo ""
|
|
echo "Available versions:"
|
|
echo "📦 v1.0.0-working : Original working version (unlimited)"
|
|
echo "🆓 v1.1.0-free-tier : Free tier (500 items/month, no real-time)"
|
|
echo "💎 v1.2.0-production : Full version (unlimited, all features)"
|
|
echo ""
|
|
echo "Files ready in releases/ directory" |