Files
ehwrj/scripts/publish-win-x64.sh
yeorinhieut d29752a91e
Some checks failed
build / build-test-publish (push) Has been cancelled
Reduce release package false positives
2026-06-03 00:29:20 +09:00

19 lines
877 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
dotnet restore "$ROOT_DIR/Ehwrj.sln"
dotnet format "$ROOT_DIR/Ehwrj.sln" --no-restore --verify-no-changes --verbosity minimal
dotnet build "$ROOT_DIR/Ehwrj.sln" -c Release --no-restore
dotnet run --project "$ROOT_DIR/tests/Ehwrj.Tests/Ehwrj.Tests.csproj" -c Release --no-build
"$ROOT_DIR/scripts/verify-safety.sh"
dotnet run --project "$ROOT_DIR/tools/Ehwrj.Tools.LocalApiStub/Ehwrj.Tools.LocalApiStub.csproj" -c Release --no-build -- --help >/dev/null
dotnet run --project "$ROOT_DIR/tools/Ehwrj.Tools.Capture/Ehwrj.Tools.Capture.csproj" -c Release --no-build -- --help >/dev/null
dotnet publish "$ROOT_DIR/src/Ehwrj.App/Ehwrj.App.csproj" \
-c Release \
-r win-x64 \
--self-contained true \
-p:PublishSingleFile=false
"$ROOT_DIR/scripts/package-win-x64.sh" >/dev/null