Uecko_ERP/scripts/build-fastreport-cli.sh

39 lines
1018 B
Bash
Raw Normal View History

2026-01-08 12:09:24 +00:00
#!/usr/bin/env bash
set -e
SCRIPT_VERSION="0.0.1"
# =====================================================
# FASTREPORT CLI Build Script
# -----------------------------------------------------
# Generación de ejecutables .NET para Linux y Windows
# =====================================================
# Uso:
# ./build-fastreport-cli.sh
#
# =====================================================
PROJECT="../tools/fastreport-cli/FastReportCliGenerator.csproj"
OUTPUT="../tools/fastreport-cli/publish"
CONFIG="Release"
echo "🛠️ Build para Linux x64..."
dotnet publish "$PROJECT" \
-c $CONFIG \
-r linux-x64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true \
-o "$OUTPUT/linux"
echo "🛠️ Build para Windows x64..."
dotnet publish "$PROJECT" \
-c $CONFIG \
-r win-x64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true \
-o "$OUTPUT/windows"
echo "✅ Builds generados en $OUTPUT/"