Add GitHub Actions release workflow

Adds .github/workflows/release.yml that builds the full installer and
publishes a GitHub Release. Triggered manually (Actions tab) or on v* tags.
Updates Build-Installer.ps1 with -RynthSuiteRoot and -Version parameters
so the CI runner can pass paths and version without hardcoded conventions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
tombohar 2026-04-18 13:06:01 -04:00
commit 8d9a3a83af
3 changed files with 128 additions and 6 deletions

View file

@ -23,6 +23,12 @@
param(
[string]$Configuration = "Release",
[string]$IsccPath = "C:\Program Files (x86)\Inno Setup 6\ISCC.exe",
# Explicit path to the RynthSuite repo root. When omitted, defaults to the
# sibling directory of RynthCore (i.e. ..\RynthSuite relative to this repo).
[string]$RynthSuiteRoot = "",
# Version string injected into the installer (e.g. "0.3"). When omitted,
# the version defined in RynthCore.iss is used as-is.
[string]$Version = "",
[switch]$SkipBuild
)
@ -30,16 +36,21 @@ $ErrorActionPreference = "Stop"
Set-StrictMode -Off
$ScriptDir = $PSScriptRoot
$RepoRoot = Split-Path $ScriptDir -Parent # C:\Projects\RynthCore
$ProjectsRoot = Split-Path $RepoRoot -Parent # C:\Projects
$RepoRoot = Split-Path $ScriptDir -Parent # e.g. C:\Projects\RynthCore
$ProjectsRoot = Split-Path $RepoRoot -Parent # e.g. C:\Projects
# RynthSuite root: explicit param takes priority, otherwise sibling convention.
if (-not $RynthSuiteRoot) {
$RynthSuiteRoot = "$ProjectsRoot\RynthSuite"
}
$LauncherProject = "$RepoRoot\src\RynthCore.App.Avalonia\RynthCore.App.Avalonia.csproj"
$EngineProject = "$RepoRoot\src\RynthCore.Engine\RynthCore.Engine.csproj"
$PluginProject = "$ProjectsRoot\RynthSuite\Plugins\RynthCore.Plugin.RynthAi\RynthCore.Plugin.RynthAi.csproj"
$PluginProject = "$RynthSuiteRoot\Plugins\RynthCore.Plugin.RynthAi\RynthCore.Plugin.RynthAi.csproj"
$LauncherPublish = "$RepoRoot\src\RynthCore.App.Avalonia\bin\$Configuration\net9.0-windows7.0\win-x86\publish"
$EnginePublish = "$RepoRoot\src\RynthCore.Engine\bin\$Configuration\net9.0-windows\win-x86\publish"
$PluginPublish = "$ProjectsRoot\RynthSuite\Plugins\RynthCore.Plugin.RynthAi\bin\$Configuration\net9.0-windows\win-x86\publish"
$PluginPublish = "$RynthSuiteRoot\Plugins\RynthCore.Plugin.RynthAi\bin\$Configuration\net9.0-windows\win-x86\publish"
$StagingDir = "$ScriptDir\staging\app"
@ -131,7 +142,13 @@ if (-not (Test-Path $IsccPath)) {
Write-Host ""
Write-Host "Building installer..." -ForegroundColor Cyan
New-Item -ItemType Directory -Path "$ScriptDir\Output" -Force | Out-Null
& $IsccPath "$ScriptDir\RynthCore.iss"
$isccArgs = @("$ScriptDir\RynthCore.iss")
if ($Version) {
$isccArgs += "/DAppVersion=$Version"
Write-Host " Version override: $Version"
}
& $IsccPath @isccArgs
if ($LASTEXITCODE -ne 0) { throw "ISCC build failed (exit $LASTEXITCODE)" }
Write-Host ""

View file

@ -16,7 +16,7 @@ AppId={{A8B4C2D1-E3F5-4678-9ABC-DEF012345678}
AppName={#AppName}
AppVersion={#AppVersion}
AppPublisher={#AppPublisher}
; AppPublisherURL=https://github.com/your-repo-here
AppPublisherURL=https://github.com/tombohar/RynthCore
DefaultDirName=C:\Games\RynthCore
DisableDirPage=no
DefaultGroupName={#AppName}