- Build-Installer.ps1 -Version now assembles Output\Release-<v>\ (installer, release-manifest.json, RELEASE-NOTES.md from both repos' Changelogs, SHA256SUMS.txt) and RynthCore-<v>-deploy.zip, re-verified after zipping. - Release builds refuse uncommitted tracked changes (-AllowDirty overrides); -NoPackage skips the package. - Fix: previous-release archive only takes RynthCore-Setup.exe when its ProductVersion matches the previous version. - Fix: Publish-Update.ps1 reads RynthAi from staging\suite\RynthAi and uses the versioned installer. Co-authored-by: Cursor <cursoragent@cursor.com>
54 lines
2.1 KiB
PowerShell
54 lines
2.1 KiB
PowerShell
#Requires -Version 5.1
|
|
<#
|
|
.SYNOPSIS
|
|
Builds a full Release of RynthCore + RynthSuite and produces the Windows installer.
|
|
|
|
.DESCRIPTION
|
|
1. Compiles RynthCore.sln in Release (validates all SDK projects before the slow publishes).
|
|
2. Invokes installer\Build-Installer.ps1, which publishes the launcher, engine, loader,
|
|
RynthAi, the Loot/Monster editors and the experimental plugins (incl. ub-Rythai), stages
|
|
them, archives the previous installer when -Version changes, and compiles RynthCore.iss
|
|
into installer\Output\RynthCore-Setup-<version>.exe (requires Inno Setup 6).
|
|
3. With -Version, Build-Installer.ps1 also assembles the deployment package
|
|
installer\Output\Release-<version>\ and installer\Output\RynthCore-<version>-deploy.zip
|
|
(installer + SHA256SUMS.txt + release-manifest.json + RELEASE-NOTES.md, hash-verified).
|
|
|
|
.PARAMETER Version
|
|
Installer version (e.g. 2026.10.4.7). Passed through to Build-Installer.ps1.
|
|
|
|
.PARAMETER RynthSuiteRoot
|
|
RynthSuite checkout. Default (empty): the sibling ..\RynthSuite folder.
|
|
|
|
.PARAMETER IsccPath
|
|
ISCC.exe location. Default (empty): Build-Installer.ps1 searches the usual Inno Setup paths.
|
|
|
|
.EXAMPLE
|
|
.\Build-Release-All.ps1 -Version 2026.10.4.7
|
|
#>
|
|
param(
|
|
[string]$Version = "",
|
|
[string]$RynthSuiteRoot = "",
|
|
[string]$IsccPath = ""
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
# This script lives at the RynthCore repository root.
|
|
$RepoRoot = $PSScriptRoot
|
|
|
|
$sln = Join-Path $RepoRoot "RynthCore.sln"
|
|
if (-not (Test-Path $sln)) {
|
|
throw "RynthCore.sln not found at: $sln"
|
|
}
|
|
|
|
Write-Host "Building solution: $sln" -ForegroundColor Cyan
|
|
dotnet build $sln -c Release
|
|
if ($LASTEXITCODE -ne 0) { throw "Solution build failed (exit $LASTEXITCODE)" }
|
|
|
|
# Only forward parameters Build-Installer.ps1 actually declares.
|
|
$invokeArgs = @{ Configuration = "Release" }
|
|
if ($Version) { $invokeArgs.Version = $Version }
|
|
if ($RynthSuiteRoot) { $invokeArgs.RynthSuiteRoot = $RynthSuiteRoot }
|
|
if ($IsccPath) { $invokeArgs.IsccPath = $IsccPath }
|
|
|
|
& (Join-Path $RepoRoot "installer\Build-Installer.ps1") @invokeArgs
|
|
if ($LASTEXITCODE -ne 0) { throw "Build-Installer.ps1 failed (exit $LASTEXITCODE)" }
|