Files
ehwrj/scripts/publish-win-x64.sh
yeorinhieut f2e8d12434
Some checks failed
build / build-test-publish (push) Has been cancelled
Use framework-dependent Windows release
2026-06-03 01:10:52 +09:00

19 lines
878 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 false \
-p:PublishSingleFile=false
"$ROOT_DIR/scripts/package-win-x64.sh" >/dev/null