Fensalir/scripts/update-synth-package.ps1

26 lines
922 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 19:18:13 +01:00
$coreProject = Join-Path $SynthRepo "src\AquaSynth.Core\AquaSynth.Core.csproj"
$faustProject = Join-Path $SynthRepo "src\AquaSynth.Faust\AquaSynth.Faust.csproj"
2026-05-13 00:19:02 +01:00
2026-05-17 19:18:13 +01:00
if (-not (Test-Path $coreProject)) {
throw "AquaSynth.Core project not found at $coreProject"
}
if (-not (Test-Path $faustProject)) {
throw "AquaSynth.Faust project not found at $faustProject"
2026-05-13 00:19:02 +01:00
}
New-Item -ItemType Directory -Force -Path $feed | Out-Null
2026-05-17 19:18:13 +01:00
dotnet pack $coreProject -c $Configuration -o $feed
dotnet pack $faustProject -c $Configuration -o $feed
2026-05-13 00:19:02 +01:00
2026-05-17 19:18:13 +01:00
Write-Host "Packed AquaSynth.Core and AquaSynth.Faust 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."