финал

This commit is contained in:
2026-09-14 22:34:33 +02:00
parent 45e8e4873a
commit fc91250663
6 changed files with 343 additions and 120 deletions
+54
View File
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
set -e
APP_NAME="SpotXInstaller"
RID="win-x64"
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
OUTPUT_DIR="$ROOT/bin/Release/net10.0/$RID/publish"
OUTPUT_EXE="$OUTPUT_DIR/$APP_NAME.exe"
echo
echo "========================================"
echo " Building SpotXInstaller Windows"
echo "========================================"
echo
echo "[1/3] Cleaning..."
rm -rf "$OUTPUT_DIR"
echo
echo "[2/3] Publishing Windows x64..."
dotnet publish "$ROOT/SpotXInstaller.csproj" \
-c Release \
-r "$RID" \
--self-contained true \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true \
-p:DebugType=None \
-p:DebugSymbols=false \
-o "$OUTPUT_DIR"
echo
echo "[3/3] Checking output..."
if [ ! -f "$OUTPUT_EXE" ]; then
echo
echo "ERROR: Windows executable was not created."
exit 1
fi
echo
echo "========================================"
echo " WINDOWS BUILD COMPLETE"
echo "========================================"
echo
echo "EXE:"
echo "$OUTPUT_EXE"
echo
ls -lh "$OUTPUT_EXE"
echo