various NFOguard versions
This commit is contained in:
Executable
+60
@@ -0,0 +1,60 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user