10 lines
487 B
PowerShell
10 lines
487 B
PowerShell
# Publishes both .NET tools as self-contained win-x64 EXEs into tools/publish.
|
|
$ErrorActionPreference = "Stop"
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
$out = Join-Path $root "tools\publish"
|
|
dotnet publish "$root\tools\JournalBot.Service\JournalBot.Service.csproj" `
|
|
-c Release -r win-x64 --self-contained -o "$out\Service"
|
|
dotnet publish "$root\tools\JournalBot.Tray\JournalBot.Tray.csproj" `
|
|
-c Release -r win-x64 --self-contained -o "$out\Tray"
|
|
Write-Host "Published to $out"
|