Fensalir/scripts/update-synth-package.ps1

20 lines
643 B
PowerShell
Raw Normal View History

2026-05-13 00:19:02 +01:00
param(
2026-05-17 15:03:45 +01:00
[string]$SynthRepo = "E:\Projects\AquaSynth",
2026-05-13 00:19:02 +01:00
[string]$Configuration = "Release"
)
$ErrorActionPreference = "Stop"
$root = Resolve-Path (Join-Path $PSScriptRoot "..")
$feed = Join-Path $root "packages"
2026-05-17 15:03:45 +01:00
$project = Join-Path $SynthRepo "src\AquaSynth.Dsl\AquaSynth.Dsl.csproj"
2026-05-13 00:19:02 +01:00
if (-not (Test-Path $project)) {
2026-05-17 15:03:45 +01:00
throw "AquaSynth.Dsl project not found at $project"
2026-05-13 00:19:02 +01:00
}
New-Item -ItemType Directory -Force -Path $feed | Out-Null
dotnet pack $project -c $Configuration -o $feed
2026-05-17 15:03:45 +01:00
Write-Host "Packed AquaSynth.Dsl into $feed"
2026-05-13 00:19:02 +01:00
Write-Host "If the package version changed, update src\Aquarium.Engine\Aquarium.Engine.csproj to match."