mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-25 08:22:07 +00:00
25 lines
1.0 KiB
PowerShell
25 lines
1.0 KiB
PowerShell
# Publishes the Daybreak.Injector (x86) and Daybreak.API (x86) for Windows.
|
|
# These are x86 components that can only be built on Windows.
|
|
|
|
Param(
|
|
[string]$Configuration = "Release"
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
$RepoRoot = Resolve-Path "$PSScriptRoot/.."
|
|
|
|
$InjectorOutput = Join-Path $RepoRoot "Publish/Injector"
|
|
$ApiOutput = Join-Path $RepoRoot "Publish/Api"
|
|
|
|
Write-Host "=== Publishing Daybreak.Injector (win-x86) ===" -ForegroundColor Cyan
|
|
dotnet publish "$RepoRoot/Daybreak.Injector/Daybreak.Injector.csproj" -c $Configuration -r win-x86 -o $InjectorOutput
|
|
if ($LASTEXITCODE -ne 0) { throw "Daybreak.Injector publish failed" }
|
|
|
|
Write-Host "=== Publishing Daybreak.API (win-x86) ===" -ForegroundColor Cyan
|
|
dotnet publish "$RepoRoot/Daybreak.API/Daybreak.API.csproj" -c $Configuration -r win-x86 -o $ApiOutput
|
|
if ($LASTEXITCODE -ne 0) { throw "Daybreak.API publish failed" }
|
|
|
|
Write-Host "=== Windows x86 publish complete ===" -ForegroundColor Green
|
|
Write-Host "Injector: $InjectorOutput"
|
|
Write-Host "API: $ApiOutput"
|